2021-05-19 18:43:52 -04:00
|
|
|
{ lib
|
2020-01-16 21:28:43 -05:00
|
|
|
, buildPythonPackage
|
2021-05-19 18:43:52 -04:00
|
|
|
, cirq-core
|
|
|
|
, cirq-google
|
2020-01-16 21:28:43 -05:00
|
|
|
# test inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq";
|
2021-05-19 18:43:52 -04:00
|
|
|
inherit (cirq-core) version src meta;
|
2020-08-31 21:56:40 -04:00
|
|
|
|
2020-01-16 21:28:43 -05:00
|
|
|
propagatedBuildInputs = [
|
2021-05-19 18:43:52 -04:00
|
|
|
cirq-core
|
|
|
|
cirq-google
|
2020-01-16 21:28:43 -05:00
|
|
|
];
|
|
|
|
|
2020-08-31 21:56:40 -04:00
|
|
|
# pythonImportsCheck = [ "cirq" "cirq.Circuit" ]; # cirq's importlib hook doesn't work here
|
2021-05-19 18:43:52 -04:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-05-11 19:00:17 -04:00
|
|
|
|
2021-05-19 18:43:52 -04:00
|
|
|
# Don't run submodule or development tool tests
|
|
|
|
disabledTestPaths = [
|
|
|
|
"cirq-google"
|
|
|
|
"cirq-core"
|
|
|
|
"dev_tools"
|
2020-04-16 19:18:12 -04:00
|
|
|
];
|
2020-01-16 21:28:43 -05:00
|
|
|
|
|
|
|
}
|