diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-18 20:50:21 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-18 20:50:21 +0200 |
commit | aab20f64b1298138fc365d73f0186e4e9a1a5d4c (patch) | |
tree | 4a122adb21f73c779d496f522384126f4cc10463 /pkgs/development/python-modules/cirq-pasqal | |
parent | 1b87824b948749ce9cf7d1c67a56c025ffded52f (diff) | |
download | nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.tar nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.tar.gz nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.tar.bz2 nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.tar.lz nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.tar.xz nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.tar.zst nixpkgs-aab20f64b1298138fc365d73f0186e4e9a1a5d4c.zip |
python3Packages.cirq-pasqal: init at 0.12.0
Diffstat (limited to 'pkgs/development/python-modules/cirq-pasqal')
-rw-r--r-- | pkgs/development/python-modules/cirq-pasqal/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cirq-pasqal/default.nix b/pkgs/development/python-modules/cirq-pasqal/default.nix new file mode 100644 index 00000000000..d51cd21ff1e --- /dev/null +++ b/pkgs/development/python-modules/cirq-pasqal/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, cirq-core +, pythonOlder +, fetchFromGitHub +, requests +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "cirq-pasqal"; + inherit (cirq-core) version src meta; + + sourceRoot = "source/${pname}"; + + postPatch = '' + substituteInPlace requirements.txt \ + --replace "requests~=2.18" "requests" + ''; + + propagatedBuildInputs = [ + cirq-core + requests + ]; + + checkInputs = [ + pytestCheckHook + ]; + + # cirq's importlib hook doesn't work here + #pythonImportsCheck = [ "cirq_pasqal" ]; +} |