diff --git a/pkgs/development/python-modules/boltztrap2/default.nix b/pkgs/development/python-modules/boltztrap2/default.nix index e697d97fea78..ad28d461faff 100644 --- a/pkgs/development/python-modules/boltztrap2/default.nix +++ b/pkgs/development/python-modules/boltztrap2/default.nix @@ -14,32 +14,45 @@ }: buildPythonPackage rec { - version = "22.3.2"; - pname = "BoltzTraP2"; + pname = "boltztrap2"; + version = "22.4.1"; + format = "setuptools"; + disabled = pythonOlder "3.5"; src = fetchPypi { - inherit pname version; - sha256 = "sha256-Yo37xdXxCQKkA+lrFEZp1DxjJy216Q6aYYT68PEx9JU="; + pname = "BoltzTraP2"; + inherit version; + hash = "sha256-lGwKHWAslCmb9bVQELHD6kAay+dnieiNsSAfAyNFLPM="; }; dontUseCmakeConfigure = true; - nativeBuildInputs = [ cmake cython ]; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ spglib numpy scipy matplotlib ase netcdf4 ]; + nativeBuildInputs = [ + cmake + cython + ]; + + propagatedBuildInputs = [ + spglib + numpy + scipy + matplotlib + ase + netcdf4 + ]; # pypi release does no include files for tests doCheck = false; - checkPhase = '' - py.test - ''; + pythonImportsCheck = [ + "BoltzTraP2" + ]; meta = with lib; { - homepage = "http://www.boltztrap.org/"; description = "Band-structure interpolator and transport coefficient calculator"; - license = licenses.gpl3; - maintainers = [ maintainers.costrouc ]; + homepage = "http://www.boltztrap.org/"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ costrouc ]; }; }