Skip to content

Commit bde506b

Browse files
authored
python312Packages.rustworkx: 0.14.2 -> 0.15.1 (#353123)
2 parents ff7219b + 897f4ea commit bde506b

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

pkgs/development/python-modules/rustworkx/default.nix

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
cargo,
55
rustPlatform,
66
rustc,
7+
setuptools,
78
setuptools-rust,
89
numpy,
910
fixtures,
@@ -12,40 +13,50 @@
1213
libiconv,
1314
stdenv,
1415
lib,
16+
pytestCheckHook,
1517
}:
1618

1719
buildPythonPackage 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; {

0 commit comments

Comments
 (0)