git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.cirq: 0.9.1 -> 0.10.0
commit6864b3192e9407ea9638e52d53fdcd562b974545 authorDrew Risinger <drewrisinger@users.noreply.github.com> dateFri 2 Apr 2021, 15:14 (6 years ago) parentd69c3d1
1 file changed+9−16
pkgs/development/python-modules/cirq/default.nix+9−16
pkgs/development/python-modules/cirq/default.nix+9−16
@@ -3,7 +3,6 @@
33, buildPythonPackage
44, pythonOlder
55, fetchFromGitHub
6−, freezegun
76, google-api-core
87, matplotlib
98, networkx
@@ -14,8 +13,10 @@
1413, scipy
1514, sortedcontainers
1615, sympy
16+, tqdm
1717, typing-extensions
1818 # test inputs
19+, freezegun
1920, pytestCheckHook
2021, pytest-asyncio
2122, pytest-benchmark
@@ -27,7 +28,7 @@
2728
2829buildPythonPackage rec {
2930 pname = "cirq";
30− version = "0.9.1";
31+ version = "0.10.0";
3132
3233 disabled = pythonOlder "3.6";
3334
@@ -35,42 +36,36 @@ buildPythonPackage rec {
3536 owner = "quantumlib";
3637 repo = "cirq";
3738 rev = "v${version}";
38− sha256 = "0mygvpq7kzga8l1w2jvwv9a2n3akpss45hrx250gdrnqjp6xrw64";
39+ sha256 = "0xinml44n2lfl0q2lb2apmn69gsszlwim83082f66vyk0gpwd4lr";
3940 };
4041
4142 postPatch = ''
4243 substituteInPlace requirements.txt \
43− --replace "freezegun~=0.3.15" "freezegun" \
4444 --replace "matplotlib~=3.0" "matplotlib" \
4545 --replace "networkx~=2.4" "networkx" \
4646 --replace "numpy~=1.16" "numpy" \
47− --replace "protobuf~=3.12.0" "protobuf"
48−
49− # Fix serialize_sympy_constants test by allowing small errors in pi
50− substituteInPlace cirq/google/arg_func_langs_test.py \
51− --replace "'float_value': float(str(np.float32(sympy.pi)))" "'float_value': pytest.approx(float(str(np.float32(sympy.pi))))"
47+ --replace "protobuf~=3.13.0" "protobuf"
5248 '';
5349
5450 propagatedBuildInputs = [
55− freezegun
5651 google-api-core
57− numpy
5852 matplotlib
5953 networkx
54+ numpy
6055 pandas
6156 protobuf
6257 requests
6358 scipy
6459 sortedcontainers
6560 sympy
61+ tqdm
6662 typing-extensions
6763 ];
6864
69− doCheck = true;
7065 # pythonImportsCheck = [ "cirq" "cirq.Circuit" ]; # cirq's importlib hook doesn't work here
71− dontUseSetuptoolsCheck = true;
7266 checkInputs = [
7367 pytestCheckHook
68+ freezegun
7469 pytest-asyncio
7570 pytest-benchmark
7671 ply
@@ -84,9 +79,7 @@ buildPythonPackage rec {
8479 "--ignore=cirq/contrib/" # requires external (unpackaged) python packages, so untested.
8580 "--benchmark-disable" # Don't need to run benchmarks when packaging.
8681 ];
87− disabledTests = [
88− "test_convert_to_ion_gates" # fails on some systems due to rounding error, 0.75 != 0.750...2
89− ] ++ lib.optionals stdenv.isAarch64 [
82+ disabledTests = lib.optionals stdenv.isAarch64 [
9083 # Seem to fail due to math issues on aarch64?
9184 "expectation_from_wavefunction"
9285 "test_single_qubit_op_to_framed_phase_form_output_on_example_case"