@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchPypi, numpy, nose, pyyaml }:
1+{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, numpy, nose, pyyaml }:
22
33buildPythonPackage rec {
44 pname = "spglib";
@@ -9,6 +9,15 @@ buildPythonPackage rec {
99 sha256 = "15b02b74c0f06179bc3650c43a710a5200abbba387c6eda3105bfd9236041443";
1010 };
1111
12+ patches = [
13+ (fetchpatch {
14+ name = "fix-assertions.patch";
15+ url = https://github.com/atztogo/spglib/commit/d57070831585a6f02dec0a31d25b375ba347798c.patch;
16+ stripLen = 1;
17+ sha256 = "0crmkc498rbrawiy9zbl39qis2nmsbfr4s6kk6k3zhdy8z2ppxw7";
18+ })
19+ ];
20+
1221 propagatedBuildInputs = [ numpy ];
1322
1423 checkInputs = [ nose pyyaml ];