2020-08-29 19:07:21 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, future, spglib, glibcLocales, pytest, scipy }:
|
2018-06-21 18:18:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "seekpath";
|
2020-06-06 07:47:31 +01:00
|
|
|
version = "2.0.1";
|
2020-08-29 19:07:21 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-06-21 18:18:17 +01:00
|
|
|
|
2020-06-12 21:57:27 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "giovannipizzi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0x592650ynacmx5n5bilj5lja4iw0gf1nfypy82cmy5z363qhqxn";
|
2019-07-04 14:49:26 +01:00
|
|
|
};
|
2018-06-21 18:18:17 +01:00
|
|
|
|
|
|
|
LC_ALL = "en_US.utf-8";
|
|
|
|
|
2020-06-12 21:57:27 +01:00
|
|
|
# scipy isn't listed in install_requires, but used in package
|
|
|
|
propagatedBuildInputs = [ numpy spglib future scipy ];
|
2018-06-21 18:18:17 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ glibcLocales ];
|
|
|
|
|
2019-07-04 14:49:26 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
# I don't know enough about crystal structures to fix
|
|
|
|
checkPhase = ''
|
|
|
|
pytest . -k 'not oI2Y'
|
|
|
|
'';
|
|
|
|
|
2018-06-21 18:18:17 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A module to obtain and visualize band paths in the Brillouin zone of crystal structures.";
|
2019-07-04 14:49:26 +01:00
|
|
|
homepage = "https://github.com/giovannipizzi/seekpath";
|
2018-06-21 18:18:17 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|