nixpkgs/pkgs/development/python-modules/seekpath/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

37 lines
1,022 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, future, spglib, glibcLocales, pytest, scipy }:
buildPythonPackage rec {
pname = "seekpath";
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "giovannipizzi";
repo = pname;
rev = "v${version}";
sha256 = "0x592650ynacmx5n5bilj5lja4iw0gf1nfypy82cmy5z363qhqxn";
};
LC_ALL = "en_US.utf-8";
# scipy isn't listed in install_requires, but used in package
propagatedBuildInputs = [ numpy spglib future scipy ];
nativeBuildInputs = [ glibcLocales ];
nativeCheckInputs = [ pytest ];
# I don't know enough about crystal structures to fix
checkPhase = ''
pytest . -k 'not oI2Y'
'';
meta = with 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 ];
};
}