about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cirq-ft/default.nix
blob: a0fbbc40da1f25d4ca2b4c466f6b7cbfbf5a1b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ attrs
, buildPythonPackage
, cachetools
, cirq-core
, ipython
, ipywidgets
, nbconvert
, nbformat
, pytestCheckHook
, setuptools
}:

buildPythonPackage rec {
  pname = "cirq-ft";
  pyproject = true;
  inherit (cirq-core) version src meta;

  sourceRoot = "${src.name}/${pname}";

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    attrs
    cachetools
    cirq-core
    ipython
    ipywidgets
    nbconvert
    nbformat
  ];

  nativeCheckInputs = [
    ipython
    pytestCheckHook
  ];

  disabledTests = [
    # Upstream doesn't always adjust the version
    "test_version"
  ];

  # cirq's importlib hook doesn't work here
  #pythonImportsCheck = [ "cirq_ft" ];

}