1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, future, spglib, glibcLocales, pytest, scipy }: 2 3buildPythonPackage rec { 4 pname = "seekpath"; 5 version = "2.0.1"; 6 disabled = pythonOlder "3.5"; 7 8 src = fetchFromGitHub { 9 owner = "giovannipizzi"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "0x592650ynacmx5n5bilj5lja4iw0gf1nfypy82cmy5z363qhqxn"; 13 }; 14 15 LC_ALL = "en_US.utf-8"; 16 17 # scipy isn't listed in install_requires, but used in package 18 propagatedBuildInputs = [ numpy spglib future scipy ]; 19 20 nativeBuildInputs = [ glibcLocales ]; 21 22 nativeCheckInputs = [ pytest ]; 23 24 # I don't know enough about crystal structures to fix 25 checkPhase = '' 26 pytest . -k 'not oI2Y' 27 ''; 28 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 }; 35} 36