pythonPackages.spglib: add patch fixing darwin/py27 build, enabling assertions on all platforms

This commit is contained in:
Robert Scott 2019-06-05 20:14:49 +01:00
parent 57507ca0b1
commit b8c8bfa9f4

View file

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, numpy, nose, pyyaml }:
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, numpy, nose, pyyaml }:
buildPythonPackage rec {
pname = "spglib";
@ -9,6 +9,15 @@ buildPythonPackage rec {
sha256 = "15b02b74c0f06179bc3650c43a710a5200abbba387c6eda3105bfd9236041443";
};
patches = [
(fetchpatch {
name = "fix-assertions.patch";
url = https://github.com/atztogo/spglib/commit/d57070831585a6f02dec0a31d25b375ba347798c.patch;
stripLen = 1;
sha256 = "0crmkc498rbrawiy9zbl39qis2nmsbfr4s6kk6k3zhdy8z2ppxw7";
})
];
propagatedBuildInputs = [ numpy ];
checkInputs = [ nose pyyaml ];