@@ -1,39 +1,41 @@
11{ lib
22, buildPythonPackage
3+, pythonOlder
34, rustPlatform
45, fetchFromGitHub
56
67 # Check inputs
78, pytestCheckHook
9+, networkx
810, numpy
911}:
1012
1113buildPythonPackage rec {
1214 pname = "retworkx";
13− version = "0.6.0";
15+ version = "0.8.0";
16+ format = "pyproject";
17+ disabled = pythonOlder "3.6";
1418
1519 src = fetchFromGitHub {
1620 owner = "Qiskit";
1721 repo = "retworkx";
1822 rev = version;
19− sha256 = "11n30ldg3y3y6qxg3hbj837pnbwjkqw3nxq6frds647mmmprrd20";
23+ sha256 = "0plpri6a3d6f1000kmcah9066vq2i37d14bdf8sm96493fhpqhrd";
2024 };
2125
2226 cargoDeps = rustPlatform.fetchCargoTarball {
2327 inherit src;
2428 name = "${pname}-${version}";
25− hash = "sha256-heOBK8qi2nuc/Ib+I/vLzZ1fUUD/G/KTw9d7M4Hz5O0=";
29+ hash = "sha256-+k779gmge8wDdoZrWn9ND47kUqt7pqe75Zuj2Byfefo=";
2630 };
2731
28− format = "pyproject";
29−
3032 nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
3133
3234 # Needed b/c need to check AFTER python wheel is installed (using Rust Build, not buildPythonPackage)
3335 doCheck = false;
3436 doInstallCheck = true;
3537
36− installCheckInputs = [ pytestCheckHook numpy ];
38+ installCheckInputs = [ pytestCheckHook networkx numpy ];
3739
3840 preCheck = ''
3941 export TESTDIR=$(mktemp -d)