File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed
pkgs/development/python-modules/rustworkx Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 44 cargo ,
55 rustPlatform ,
66 rustc ,
7+ setuptools ,
78 setuptools-rust ,
89 numpy ,
910 fixtures ,
1213 libiconv ,
1314 stdenv ,
1415 lib ,
16+ pytestCheckHook ,
1517} :
1618
1719buildPythonPackage rec {
1820 pname = "rustworkx" ;
19- version = "0.14.2 " ;
20- format = "setuptools" ;
21+ version = "0.15.1 " ;
22+ pyproject = true ;
2123
2224 src = fetchFromGitHub {
2325 owner = "Qiskit" ;
24- repo = pname ;
26+ repo = "rustworkx" ;
2527 rev = version ;
26- hash = "sha256-gck5X6J4Yg5it/YCBsk/yZ5qXg/iwCEbyDIKfBTRxHM =" ;
28+ hash = "sha256-0WYgShihTBM0e+MIhON0dnhZug6l280tZcVp3KF1Jq0 =" ;
2729 } ;
2830
2931 cargoDeps = rustPlatform . fetchCargoTarball {
3032 inherit src ;
31- hash = "sha256-FNCa5pshcnsYpjlz6yDITe2k0cHLTybj3rF34qrsRVU =" ;
33+ hash = "sha256-AgHfCKLna30WERAFGEs8yRxxZHwvLzR+/S+ivwKHXXE =" ;
3234 } ;
3335
3436 nativeBuildInputs = [
35- setuptools-rust
3637 rustPlatform . cargoSetupHook
3738 cargo
3839 rustc
3940 ] ;
4041
42+ build-system = [
43+ setuptools
44+ setuptools-rust
45+ ] ;
46+
4147 buildInputs = [ numpy ] ++ lib . optionals stdenv . hostPlatform . isDarwin [ libiconv ] ;
4248
43- checkInputs = [
49+ nativeCheckInputs = [
4450 fixtures
4551 networkx
52+ pytestCheckHook
4653 testtools
4754 ] ;
4855
56+ preCheck = ''
57+ rm -r rustworkx
58+ '' ;
59+
4960 pythonImportsCheck = [ "rustworkx" ] ;
5061
5162 meta = with lib ; {
You can’t perform that action at this time.
0 commit comments