3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.scipy: 1.3.3 -> 1.4.1

This commit is contained in:
Frederik Rietdijk 2019-12-19 19:31:15 +01:00
parent 9b0b85345c
commit 9099c7e456

View file

@ -1,17 +1,24 @@
{lib, fetchPypi, python, buildPythonPackage, gfortran, nose, pytest, numpy}:
{lib, fetchPypi, python, buildPythonPackage, gfortran, nose, pytest, numpy, pybind11}:
buildPythonPackage rec {
let
pybind = pybind11.overridePythonAttrs(oldAttrs: {
cmakeFlags = oldAttrs.cmakeFlags ++ [
"-DPYBIND11_TEST=off"
];
doCheck = false; # Circular test dependency
});
in buildPythonPackage rec {
pname = "scipy";
version = "1.3.3";
version = "1.4.1";
src = fetchPypi {
inherit pname version;
sha256 = "64bf4e8ae0db2d42b58477817f648d81e77f0b381d0ea4427385bba3f959380a";
sha256 = "dee1bbf3a6c8f73b6b218cb28eed8dd13347ea2f87d572ce19b289d6fd3fbc59";
};
checkInputs = [ nose pytest ];
nativeBuildInputs = [ gfortran ];
buildInputs = [ numpy.blas ];
buildInputs = [ numpy.blas pybind ];
propagatedBuildInputs = [ numpy ];
# Remove tests because of broken wrapper
@ -19,9 +26,7 @@ buildPythonPackage rec {
rm scipy/linalg/tests/test_lapack.py
'';
# INTERNALERROR, solved with https://github.com/scipy/scipy/pull/8871
# however, it does not apply cleanly.
doCheck = false;
doCheck = true;
preConfigure = ''
sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py