2019-06-05 19:14:49 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, numpy, nose, pyyaml }:
|
2018-06-11 20:34:09 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spglib";
|
2019-02-14 07:37:30 +00:00
|
|
|
version = "1.12.2.post0";
|
2018-06-11 20:34:09 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:30 +00:00
|
|
|
sha256 = "15b02b74c0f06179bc3650c43a710a5200abbba387c6eda3105bfd9236041443";
|
2018-06-11 20:34:09 +00:00
|
|
|
};
|
|
|
|
|
2019-06-05 19:14:49 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-assertions.patch";
|
|
|
|
url = https://github.com/atztogo/spglib/commit/d57070831585a6f02dec0a31d25b375ba347798c.patch;
|
|
|
|
stripLen = 1;
|
|
|
|
sha256 = "0crmkc498rbrawiy9zbl39qis2nmsbfr4s6kk6k3zhdy8z2ppxw7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-06-11 20:34:09 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2019-03-02 13:37:01 +00:00
|
|
|
checkInputs = [ nose pyyaml ];
|
2018-06-11 20:34:09 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python bindings for C library for finding and handling crystal symmetries";
|
|
|
|
homepage = https://atztogo.github.io/spglib;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|