python310Packages.cirq-*: disable version test

main
Fabian Affolter 2 years ago
parent a51c8f91da
commit 651e154b43
  1. 5
      pkgs/development/python-modules/cirq-aqt/default.nix
  2. 2
      pkgs/development/python-modules/cirq-core/default.nix
  3. 10
      pkgs/development/python-modules/cirq-google/default.nix
  4. 5
      pkgs/development/python-modules/cirq-ionq/default.nix
  5. 5
      pkgs/development/python-modules/cirq-pasqal/default.nix
  6. 5
      pkgs/development/python-modules/cirq-rigetti/default.nix
  7. 5
      pkgs/development/python-modules/cirq-web/default.nix

@ -26,4 +26,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_aqt" ];
disabledTestPaths = [
# No need to test the version number
"cirq_aqt/_version_test.py"
];
}

@ -87,7 +87,7 @@ buildPythonPackage rec {
];
disabledTests = [
# tries to import flynt, which isn't in Nixpkgs
# Tries to import flynt, which isn't in Nixpkgs
"test_metadata_search_path"
# Fails due pandas MultiIndex. Maybe issue with pandas version in nix?
"test_benchmark_2q_xeb_fidelities"

@ -2,7 +2,6 @@
, cirq-core
, google-api-core
, protobuf
# test inputs
, pytestCheckHook
, freezegun
}:
@ -15,7 +14,8 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace requirements.txt \
--replace "google-api-core[grpc] >= 1.14.0, < 2.0.0dev" "google-api-core[grpc] >= 1.14.0, < 3.0.0dev"
--replace "google-api-core[grpc] >= 1.14.0, < 2.0.0dev" "google-api-core[grpc] >= 1.14.0, < 3.0.0dev" \
--replace "protobuf >= 3.15.0, < 4" "protobuf >= 3.15.0"
'';
propagatedBuildInputs = [
@ -29,9 +29,15 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTestPaths = [
# No need to test the version number
"cirq_google/_version_test.py"
];
disabledTests = [
# unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient'
"test_get_engine_sampler_explicit_project_id"
"test_get_engine_sampler"
];
}

@ -26,4 +26,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_ionq" ];
disabledTestPaths = [
# No need to test the version number
"cirq_ionq/_version_test.py"
];
}

@ -26,4 +26,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_pasqal" ];
disabledTestPaths = [
# No need to test the version number
"cirq_pasqal/_version_test.py"
];
}

@ -75,6 +75,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTestPaths = [
# No need to test the version number
"cirq_rigetti/_version_test.py"
];
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_rigetti" ];
}

@ -19,4 +19,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_web" ];
disabledTestPaths = [
# No need to test the version number
"cirq_web/_version_test.py"
];
}

Loading…
Cancel
Save