Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / qiskit-optimization / default.nix
blob3e1d6b3e49e0884196f4aa324da741b6cb1de0d6
1 { lib
2 , pythonOlder
3 , buildPythonPackage
4 , fetchFromGitHub
6 # build-system
7 , setuptools
9   # Python Inputs
10 , decorator
11 , docplex
12 , networkx
13 , numpy
14 , qiskit-terra
15 , scipy
16   # Check Inputs
17 , pytestCheckHook
18 , ddt
19 , pylatexenc
20 , qiskit-aer
23 buildPythonPackage rec {
24   pname = "qiskit-optimization";
25   version = "0.6.1";
26   pyproject = true;
28   disabled = pythonOlder "3.6";
30   src = fetchFromGitHub {
31     owner = "qiskit";
32     repo = pname;
33     rev = "refs/tags/${version}";
34     hash = "sha256-kzEuICajlV8mgD0YLhwFJaDQVxYZo9jv3sr/r/P0VG0=";
35   };
37   postPatch = ''
38     substituteInPlace requirements.txt --replace "networkx>=2.2,<2.6" "networkx"
39   '';
41   nativeBuildInputs = [
42     setuptools
43   ];
45   propagatedBuildInputs = [
46     docplex
47     decorator
48     networkx
49     numpy
50     qiskit-terra
51     scipy
52   ];
54   nativeCheckInputs = [
55     pytestCheckHook
56     ddt
57     pylatexenc
58     qiskit-aer
59   ];
61   pythonImportsCheck = [ "qiskit_optimization" ];
62   pytestFlagsArray = [ "--durations=10" ];
64   meta = with lib; {
65     description = "Software for developing quantum computing programs";
66     homepage = "https://qiskit.org";
67     downloadPage = "https://github.com/QISKit/qiskit-optimization/releases";
68     changelog = "https://qiskit.org/documentation/release_notes.html";
69     license = licenses.asl20;
70     maintainers = with maintainers; [ drewrisinger ];
71   };