python3Packages.qiskit-aer: 0.8.0 -> 0.8.2
Use a patch submitted via PR instead of custom substitute. Remove pybind11 install requirement, as requested by @dotlambda
This commit is contained in:
parent
bf1bad9263
commit
2d90781e4d
@ -2,6 +2,7 @@
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
# C Inputs
|
||||
, blas
|
||||
, catch2
|
||||
@ -27,7 +28,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qiskit-aer";
|
||||
version = "0.8.0";
|
||||
version = "0.8.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
@ -36,13 +37,30 @@ buildPythonPackage rec {
|
||||
owner = "Qiskit";
|
||||
repo = "qiskit-aer";
|
||||
rev = version;
|
||||
hash = "sha256-CWF3ehLs0HBXnYH11r+2CQwIcxddAfQm3ulAf1agl/o=";
|
||||
hash = "sha256-7NWM7qpMQ3vA6p0dhEPnkBjsPMdhceYTYcAD4tsClf0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/Qiskit/qiskit-aer/pull/1250
|
||||
name = "qiskit-aer-pr-1250-native-cmake_dl_libs.patch";
|
||||
url = "https://github.com/Qiskit/qiskit-aer/commit/2bf04ade3e5411776817706cf82cc67a3b3866f6.patch";
|
||||
sha256 = "0ldwzxxfgaad7ifpci03zfdaj0kqj0p3h94qgshrd2953mf27p6z";
|
||||
})
|
||||
];
|
||||
# Remove need for cmake python package
|
||||
# pybind11 shouldn't be an install requirement, just build requirement.
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'cmake!=3.17,!=3.17.0'," "" \
|
||||
--replace "'pybind11>=2.6'" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
ninja
|
||||
scikit-build
|
||||
pybind11
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -58,14 +76,8 @@ buildPythonPackage rec {
|
||||
cvxpy
|
||||
cython # generates some cython files at runtime that need to be cython-ized
|
||||
numpy
|
||||
pybind11
|
||||
];
|
||||
|
||||
# tries to install pypi cmake package, not needed
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "'cmake!=3.17,!=3.17.0'," ""
|
||||
'';
|
||||
|
||||
# Disable using conan for build
|
||||
preBuild = ''
|
||||
export DISABLE_CONAN=1
|
||||
|
Loading…
Reference in New Issue
Block a user