16 buildPythonPackage rec {
20 src = fetchFromGitHub {
24 hash = "sha256-WwQuvRMDGiY9VrWPfxL0OotPCUhCsvbXoVSCNhmIF/g=";
27 cargoDeps = rustPlatform.fetchCargoTarball {
29 hash = "sha256-QuzBJyM83VtB6CJ7i9/SFE8h6JbxkX/LQ9lOFSQIidU=";
34 rustPlatform.cargoSetupHook
39 buildInputs = [ numpy ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
41 checkInputs = [ fixtures networkx testtools ];
43 pythonImportsCheck = [ "rustworkx" ];
46 description = "A high performance Python graph library implemented in Rust";
47 homepage = "https://github.com/Qiskit/rustworkx";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ raitobezarius ];