13 buildPythonPackage rec {
17 disabled = pythonOlder "3.6";
19 src = fetchFromGitHub {
23 sha256 = "0plpri6a3d6f1000kmcah9066vq2i37d14bdf8sm96493fhpqhrd";
26 cargoDeps = rustPlatform.fetchCargoTarball {
28 name = "${pname}-${version}";
29 hash = "sha256-+k779gmge8wDdoZrWn9ND47kUqt7pqe75Zuj2Byfefo=";
32 nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
34 # Needed b/c need to check AFTER python wheel is installed (using Rust Build, not buildPythonPackage)
36 doInstallCheck = true;
38 installCheckInputs = [ pytestCheckHook networkx numpy ];
41 export TESTDIR=$(mktemp -d)
48 description = "A python graph library implemented in Rust.";
49 homepage = "https://retworkx.readthedocs.io/en/latest/index.html";
50 downloadPage = "https://github.com/Qiskit/retworkx/releases";
51 changelog = "https://github.com/Qiskit/retworkx/releases/tag/${version}";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ drewrisinger ];