From b8c8bfa9f43b71619c4c0aa48ef74c75c5be6bf3 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Wed, 5 Jun 2019 20:14:49 +0100 Subject: [PATCH] pythonPackages.spglib: add patch fixing darwin/py27 build, enabling assertions on all platforms --- pkgs/development/python-modules/spglib/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix index 7428e6e9e915..73af5d7b00c6 100644 --- a/pkgs/development/python-modules/spglib/default.nix +++ b/pkgs/development/python-modules/spglib/default.nix @@ -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 ];