git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62740 from risicle/ris-spglib-assert-fix

pythonPackages.spglib: add patch fixing darwin/py27 build

commit8ca59e0a39a28e4170af0d1f6d0a91b947e17d05 authorMatthew Bauer <mjbauer95@gmail.com> dateSun 9 Jun 2019, 17:56 (7 years ago) parenta592a90b8c8bfa
1 file changed+10−1
pkgs/development/python-modules/spglib/default.nix+10−1
pkgs/development/python-modules/spglib/default.nix+10−1
@@ -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 ];