diff --git a/pkgs/development/python-modules/cirq-aqt/default.nix b/pkgs/development/python-modules/cirq-aqt/default.nix index a240ce47d7e..4357abe0ac8 100644 --- a/pkgs/development/python-modules/cirq-aqt/default.nix +++ b/pkgs/development/python-modules/cirq-aqt/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" + ]; } diff --git a/pkgs/development/python-modules/cirq-core/default.nix b/pkgs/development/python-modules/cirq-core/default.nix index bcd4f25a679..e9328079b71 100644 --- a/pkgs/development/python-modules/cirq-core/default.nix +++ b/pkgs/development/python-modules/cirq-core/default.nix @@ -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" diff --git a/pkgs/development/python-modules/cirq-google/default.nix b/pkgs/development/python-modules/cirq-google/default.nix index 4aa20a23711..ebd420244e4 100644 --- a/pkgs/development/python-modules/cirq-google/default.nix +++ b/pkgs/development/python-modules/cirq-google/default.nix @@ -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" ]; + } diff --git a/pkgs/development/python-modules/cirq-ionq/default.nix b/pkgs/development/python-modules/cirq-ionq/default.nix index 24ced185958..78f52de89a8 100644 --- a/pkgs/development/python-modules/cirq-ionq/default.nix +++ b/pkgs/development/python-modules/cirq-ionq/default.nix @@ -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" + ]; } diff --git a/pkgs/development/python-modules/cirq-pasqal/default.nix b/pkgs/development/python-modules/cirq-pasqal/default.nix index 0743ee02dc7..3fe2e52f7db 100644 --- a/pkgs/development/python-modules/cirq-pasqal/default.nix +++ b/pkgs/development/python-modules/cirq-pasqal/default.nix @@ -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" + ]; } diff --git a/pkgs/development/python-modules/cirq-rigetti/default.nix b/pkgs/development/python-modules/cirq-rigetti/default.nix index f33ce69fc55..2345c7ce4d0 100644 --- a/pkgs/development/python-modules/cirq-rigetti/default.nix +++ b/pkgs/development/python-modules/cirq-rigetti/default.nix @@ -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" ]; } diff --git a/pkgs/development/python-modules/cirq-web/default.nix b/pkgs/development/python-modules/cirq-web/default.nix index aa61157fe0d..5531716fc64 100644 --- a/pkgs/development/python-modules/cirq-web/default.nix +++ b/pkgs/development/python-modules/cirq-web/default.nix @@ -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" + ]; }