anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / cirq-pasqal / default.nix
blob62d946ea4617af78c0b09eec102b153ad2e40f17
2   buildPythonPackage,
3   cirq-core,
4   requests,
5   pytestCheckHook,
6   setuptools,
7 }:
9 buildPythonPackage rec {
10   pname = "cirq-pasqal";
11   pyproject = true;
12   inherit (cirq-core) version src meta;
14   sourceRoot = "${src.name}/${pname}";
16   postPatch = ''
17     substituteInPlace requirements.txt \
18       --replace-fail "requests~=2.18" "requests"
19   '';
21   build-system = [ setuptools ];
23   dependencies = [
24     cirq-core
25     requests
26   ];
28   nativeCheckInputs = [ pytestCheckHook ];
30   # cirq's importlib hook doesn't work here
31   #pythonImportsCheck = [ "cirq_pasqal" ];
33   disabledTestPaths = [
34     # No need to test the version number
35     "cirq_pasqal/_version_test.py"
36   ];