python312Packages.rustworkx: 0.14.2 -> 0.15.1 (#353123)
This commit is contained in:
commit
bde506b75f
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user