2018-06-11 21:34:09 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, numpy, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "spglib";
|
2018-07-22 11:21:34 +01:00
|
|
|
version = "1.10.3.75";
|
2018-06-11 21:34:09 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:21:34 +01:00
|
|
|
sha256 = "347fea7c87f7d2162fabb780560665d21a43cbd7a0af08328130ba26e6422143";
|
2018-06-11 21:34:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd test
|
|
|
|
${python.interpreter} -m unittest discover -bv
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|