2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-05-20 23:08:51 +00:00
|
|
|
, cirq-core
|
|
|
|
, cirq-google
|
2020-04-24 23:36:52 +00:00
|
|
|
# test inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cirq";
|
2021-05-20 23:08:51 +00:00
|
|
|
inherit (cirq-core) version src meta;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
cirq-core
|
|
|
|
cirq-google
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# pythonImportsCheck = [ "cirq" "cirq.Circuit" ]; # cirq's importlib hook doesn't work here
|
2021-05-20 23:08:51 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# Don't run submodule or development tool tests
|
|
|
|
disabledTestPaths = [
|
|
|
|
"cirq-google"
|
|
|
|
"cirq-core"
|
|
|
|
"dev_tools"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
}
|