mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
python3Packages.rustworkx: init at 0.12.1
This commit is contained in:
parent
22ce075f1c
commit
db18f3498e
47
pkgs/development/python-modules/rustworkx/default.nix
Normal file
47
pkgs/development/python-modules/rustworkx/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, rustPlatform
|
||||
, setuptools-rust
|
||||
, numpy
|
||||
, fixtures
|
||||
, networkx
|
||||
, libiconv
|
||||
, stdenv
|
||||
, lib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rustworkx";
|
||||
version = "0.12.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Qiskit";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-d/KCxhJdyzhTjwJZ+GsXJE4ww30iPaXcPngpCi4hBZw=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
hash = "sha256-imhiPj763iumRQb+oeBOpICD1nCvzZx+3yQWu1QRRQQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-rust ] ++ (with rustPlatform; [
|
||||
cargoSetupHook
|
||||
rust.cargo
|
||||
rust.rustc
|
||||
]);
|
||||
|
||||
buildInputs = [ numpy ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
|
||||
|
||||
checkInputs = [ fixtures networkx ];
|
||||
|
||||
pythonImportsCheck = [ "rustworkx" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A high performance Python graph library implemented in Rust.";
|
||||
homepage = "https://github.com/Qiskit/rustworkx";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ raitobezarius ];
|
||||
};
|
||||
}
|
@ -12071,6 +12071,8 @@ self: super: with self; {
|
||||
|
||||
tzlocal = callPackage ../development/python-modules/tzlocal { };
|
||||
|
||||
rustworkx = callPackage ../development/python-modules/rustworkx { };
|
||||
|
||||
uamqp = callPackage ../development/python-modules/uamqp {
|
||||
openssl = pkgs.openssl_1_1;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) CFNetwork CoreFoundation Security;
|
||||
|
Loading…
Reference in New Issue
Block a user