python312Packages.rustworkx: 0.14.2 -> 0.15.1 (#353123)

This commit is contained in:
OTABI Tomoya 2024-11-03 11:32:57 +09:00 committed by GitHub
commit bde506b75f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@
cargo,
rustPlatform,
rustc,
setuptools,
setuptools-rust,
numpy,
fixtures,
@ -12,40 +13,50 @@
libiconv,
stdenv,
lib,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "rustworkx";
version = "0.14.2";
format = "setuptools";
version = "0.15.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Qiskit";
repo = pname;
repo = "rustworkx";
rev = version;
hash = "sha256-gck5X6J4Yg5it/YCBsk/yZ5qXg/iwCEbyDIKfBTRxHM=";
hash = "sha256-0WYgShihTBM0e+MIhON0dnhZug6l280tZcVp3KF1Jq0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
hash = "sha256-FNCa5pshcnsYpjlz6yDITe2k0cHLTybj3rF34qrsRVU=";
hash = "sha256-AgHfCKLna30WERAFGEs8yRxxZHwvLzR+/S+ivwKHXXE=";
};
nativeBuildInputs = [
setuptools-rust
rustPlatform.cargoSetupHook
cargo
rustc
];
build-system = [
setuptools
setuptools-rust
];
buildInputs = [ numpy ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
checkInputs = [
nativeCheckInputs = [
fixtures
networkx
pytestCheckHook
testtools
];
preCheck = ''
rm -r rustworkx
'';
pythonImportsCheck = [ "rustworkx" ];
meta = with lib; {