nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 51 lines 1.0 kB view raw
1{ buildPythonPackage 2, fetchpatch 3, cirq-aqt 4, cirq-core 5, cirq-google 6, cirq-ionq 7, cirq-pasqal 8, cirq-rigetti 9, cirq-web 10 # test inputs 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "cirq"; 16 inherit (cirq-core) version src meta; 17 18 patches = [ 19 (fetchpatch { 20 url = "https://github.com/quantumlib/Cirq/commit/b832db606e5f1850b1eda168a6d4a8e77d8ec711.patch"; 21 name = "pr-5330-prevent-implicit-packages.patch"; 22 sha256 = "sha256-HTEH3fFxPiBedaz5GxZjXayvoiazwHysKZIOzqwZmbg="; 23 }) 24 ]; 25 26 propagatedBuildInputs = [ 27 cirq-aqt 28 cirq-core 29 cirq-ionq 30 cirq-google 31 cirq-rigetti 32 cirq-pasqal 33 cirq-web 34 ]; 35 36 # pythonImportsCheck = [ "cirq" "cirq.Circuit" ]; # cirq's importlib hook doesn't work here 37 checkInputs = [ pytestCheckHook ]; 38 39 # Don't run submodule or development tool tests 40 disabledTestPaths = [ 41 "cirq-aqt" 42 "cirq-core" 43 "cirq-google" 44 "cirq-ionq" 45 "cirq-pasqal" 46 "cirq-rigetti" 47 "cirq-web" 48 "dev_tools" 49 ]; 50 51}