ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / seekpath / default.nix
blobdbfe451077691525baa96233adb7b19991f2a323
1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, future, spglib, glibcLocales, pytest, scipy }:
3 buildPythonPackage rec {
4   pname = "seekpath";
5   version = "2.0.1";
6   disabled = pythonOlder "3.5";
8   src = fetchFromGitHub {
9     owner = "giovannipizzi";
10     repo = pname;
11     rev = "v${version}";
12     sha256 = "0x592650ynacmx5n5bilj5lja4iw0gf1nfypy82cmy5z363qhqxn";
13   };
15   LC_ALL = "en_US.utf-8";
17   # scipy isn't listed in install_requires, but used in package
18   propagatedBuildInputs = [ numpy spglib future scipy ];
20   nativeBuildInputs = [ glibcLocales ];
22   checkInputs = [ pytest ];
24   # I don't know enough about crystal structures to fix
25   checkPhase = ''
26     pytest . -k 'not oI2Y'
27   '';
29   meta = with lib; {
30     description = "A module to obtain and visualize band paths in the Brillouin zone of crystal structures.";
31     homepage = "https://github.com/giovannipizzi/seekpath";
32     license = licenses.mit;
33     maintainers = with maintainers; [ psyanticy ];
34   };