Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, fetchFromGitHub, buildPythonPackage, numpy, scipy, matplotlib, setuptools, setuptools-scm, cvxopt, pytest-timeout, pytestCheckHook,}:
buildPythonPackage rec { pname = "control"; version = "0.10.1"; pyproject = true;
src = fetchFromGitHub { owner = "python-control"; repo = "python-control"; tag = version; hash = "sha256-wLDYPuLnsZ2+cXf7j3BxUbn4IjHPt09LE9cjQGXWrO0="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ numpy scipy matplotlib ];
optional-dependencies = { # slycot is not in nixpkgs # slycot = [ slycot ]; cvxopt = [ cvxopt ]; };
pythonImportsCheck = [ "control" ];
nativeCheckInputs = [ cvxopt pytest-timeout pytestCheckHook ];
meta = { changelog = "https://github.com/python-control/python-control/releases/tag/${src.tag}"; description = "Python Control Systems Library"; homepage = "https://github.com/python-control/python-control"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ Peter3579 ]; };}