emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / pyquil / default.nix
blob0e2d63d80c50c6fa31c8fd43a9262d07abbbaef0
2   lib,
3   buildPythonPackage,
4   deprecated,
5   fetchFromGitHub,
6   ipython,
7   matplotlib-inline,
8   nest-asyncio,
9   networkx,
10   numpy,
11   packaging,
12   poetry-core,
13   pytest-asyncio,
14   pytest-mock,
15   pytestCheckHook,
16   pythonOlder,
17   qcs-sdk-python,
18   respx,
19   rpcq,
20   scipy,
21   syrupy,
22   types-deprecated,
23   typing-extensions,
26 buildPythonPackage rec {
27   pname = "pyquil";
28   version = "4.15.0";
29   pyproject = true;
31   disabled = pythonOlder "3.9";
33   src = fetchFromGitHub {
34     owner = "rigetti";
35     repo = "pyquil";
36     tag = "v${version}";
37     hash = "sha256-zRXIMSgcFlTZQ5Y/1pSC30ZhvKj1Pn1+7SbTetEdzio=";
38   };
40   pythonRelaxDeps = [
41     "lark"
42     "networkx"
43     "packaging"
44     "qcs-sdk-python"
45     "rpcq"
46   ];
48   build-system = [ poetry-core ];
50   dependencies = [
51     deprecated
52     matplotlib-inline
53     networkx
54     numpy
55     packaging
56     qcs-sdk-python
57     rpcq
58     scipy
59     types-deprecated
60     typing-extensions
61   ];
63   nativeCheckInputs = [
64     nest-asyncio
65     pytest-asyncio
66     pytest-mock
67     pytestCheckHook
68     respx
69     syrupy
70     ipython
71   ];
73   # tests hang
74   doCheck = false;
76   pythonImportsCheck = [ "pyquil" ];
78   meta = with lib; {
79     description = "Python library for creating Quantum Instruction Language (Quil) programs";
80     homepage = "https://github.com/rigetti/pyquil";
81     changelog = "https://github.com/rigetti/pyquil/blob/v${version}/CHANGELOG.md";
82     license = licenses.asl20;
83     maintainers = with maintainers; [ fab ];
84   };