mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +00:00
Merge pull request #269188 from delroth/qiskit-terra-cargo-deps
python3Packages.qiskit-terra: fix cargo deps hash
This commit is contained in:
commit
9a36592ee6
@ -147,7 +147,7 @@ buildPythonPackage rec {
|
||||
postCheck = "popd";
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
||||
broken = true;
|
||||
description = "High performance simulators for Qiskit";
|
||||
homepage = "https://qiskit.org/aer";
|
||||
downloadPage = "https://github.com/QISKit/qiskit-aer/releases";
|
||||
|
@ -1,11 +1,13 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cargo
|
||||
, rustPlatform
|
||||
, rustc
|
||||
, libiconv
|
||||
# Python requirements
|
||||
, dill
|
||||
, numpy
|
||||
@ -61,7 +63,7 @@ buildPythonPackage rec {
|
||||
version = "0.25.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.7" || pythonAtLeast "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "qiskit";
|
||||
@ -72,10 +74,12 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ setuptools-rust rustc cargo rustPlatform.cargoSetupHook ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
hash = "sha256-SXC0UqWjWqLlZvKCRBylSX73r4Vale130KzS0zM8gjQ=";
|
||||
hash = "sha256-f5VLNxv9DKwfRy5zacydfz4Zrkbiee7JecOAbVelSto=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -117,6 +121,8 @@ buildPythonPackage rec {
|
||||
"test/randomized/"
|
||||
# These tests consistently fail on GitHub Actions build
|
||||
"test/python/quantum_info/operators/test_random.py"
|
||||
# Too many floating point arithmetic errors
|
||||
"test/visual/mpl/circuit/test_circuit_matplotlib_drawer.py"
|
||||
];
|
||||
pytestFlagsArray = [ "--durations=10" ];
|
||||
disabledTests = [
|
||||
@ -126,6 +132,11 @@ buildPythonPackage rec {
|
||||
"TestGraphMatplotlibDrawer"
|
||||
"test_copy" # assertNotIn doesn't seem to work as expected w/ pytest vs unittest
|
||||
|
||||
"test_bound_pass_manager" # AssertionError: 0 != 2
|
||||
"test_complex_parameter_bound_to_real" # qiskit.circuit.exceptions.CircuitError: "Invalid param type <class 'complex'> for gate rx."
|
||||
"test_expressions_of_parameter_with_constant" # Floating point arithmetic error
|
||||
"test_handle_measurement" # AssertionError: The two circuits are not equal
|
||||
|
||||
# Flaky tests
|
||||
"test_pulse_limits" # Fails on GitHub Actions, probably due to minor floating point arithmetic error.
|
||||
"test_cx_equivalence" # Fails due to flaky test
|
||||
@ -196,7 +207,6 @@ buildPythonPackage rec {
|
||||
|
||||
|
||||
meta = with lib; {
|
||||
broken = true; # tests segfault python
|
||||
description = "Provides the foundations for Qiskit.";
|
||||
longDescription = ''
|
||||
Allows the user to write quantum circuits easily, and takes care of the constraints of real hardware.
|
||||
|
Loading…
Reference in New Issue
Block a user