Skip to content

Commit b685ddd

Browse files
committed
python312Packages.rustworkx: switch to pypa builder
1 parent 1488b3e commit b685ddd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 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,
@@ -17,11 +18,11 @@
1718
buildPythonPackage rec {
1819
pname = "rustworkx";
1920
version = "0.15.1";
20-
format = "setuptools";
21+
pyproject = true;
2122

2223
src = fetchFromGitHub {
2324
owner = "Qiskit";
24-
repo = pname;
25+
repo = "rustworkx";
2526
rev = version;
2627
hash = "sha256-0WYgShihTBM0e+MIhON0dnhZug6l280tZcVp3KF1Jq0=";
2728
};
@@ -32,12 +33,16 @@ buildPythonPackage rec {
3233
};
3334

3435
nativeBuildInputs = [
35-
setuptools-rust
3636
rustPlatform.cargoSetupHook
3737
cargo
3838
rustc
3939
];
4040

41+
build-system = [
42+
setuptools
43+
setuptools-rust
44+
];
45+
4146
buildInputs = [ numpy ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
4247

4348
checkInputs = [

0 commit comments

Comments
 (0)