evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cirq-rigetti / default.nix
blob5791950fc13684916498e8e495068bd6e7ae24d9
2   lib,
3   buildPythonPackage,
4   cirq-core,
5   fetchpatch2,
6   pyquil,
7   pytestCheckHook,
8   pythonOlder,
9   qcs-sdk-python,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "cirq-rigetti";
15   pyproject = true;
16   inherit (cirq-core) version src;
18   disabled = pythonOlder "3.10";
20   patches = [
21     # https://github.com/quantumlib/Cirq/pull/6734
22     (fetchpatch2 {
23       name = "fix-rigetti-check-for-aspen-family-device-kind.patch";
24       url = "https://github.com/quantumlib/Cirq/commit/dd395fb71fb7f92cfd34f008bf2a98fc70b57fae.patch";
25       stripLen = 1;
26       hash = "sha256-EWB2CfMS2+M3zNFX5PwFNtEBdgJkNVUVNd+I/E6n9kI=";
27     })
28   ];
30   sourceRoot = "${src.name}/${pname}";
32   pythonRelaxDeps = [ "pyquil" ];
34   postPatch = ''
35     # Remove outdated test
36     rm cirq_rigetti/service_test.py
37   '';
39   build-system = [ setuptools ];
41   dependencies = [
42     cirq-core
43     pyquil
44     qcs-sdk-python
45   ];
47   nativeCheckInputs = [ pytestCheckHook ];
49   disabledTestPaths = [
50     # No need to test the version number
51     "cirq_rigetti/_version_test.py"
52   ];
54   # cirq's importlib hook doesn't work here
55   #pythonImportsCheck = [ "cirq_rigetti" ];