nixpkgs/pkgs/development/python-modules/seekpath/default.nix
2019-07-04 07:33:29 -07:00

32 lines
834 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, numpy, future, spglib, glibcLocales, pytest }:
buildPythonPackage rec {
pname = "seekpath";
version = "1.8.4";
src = fetchPypi {
inherit pname version;
sha256 = "b61dadba82acc0838402981b7944155adc092b114ca81f53f61b1d498a512e3a";
};
LC_ALL = "en_US.utf-8";
propagatedBuildInputs = [ numpy spglib future ];
nativeBuildInputs = [ glibcLocales ];
checkInputs = [ pytest ];
# I don't know enough about crystal structures to fix
checkPhase = ''
pytest . -k 'not oI2Y'
'';
meta = with stdenv.lib; {
description = "A module to obtain and visualize band paths in the Brillouin zone of crystal structures.";
homepage = "https://github.com/giovannipizzi/seekpath";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}