nixpkgs/pkgs/development/python-modules/boltztrap2/default.nix
c0bw3b 69b393ace5 Treewide: update some problematic homepages
These URLs are reported as problematic by Repology.
It could be a permanent redirection
or the page does not exist anymore
2019-12-08 10:21:29 -08:00

45 lines
885 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, spglib
, numpy
, scipy
, matplotlib
, ase
, netcdf4
, pytest
, pythonOlder
, cython
, cmake
}:
buildPythonPackage rec {
version = "19.7.3";
pname = "BoltzTraP2";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1hambr925ml2v2zcxnmnpi39395gl2928yac4p2kghk9xicymraw";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake cython ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ spglib numpy scipy matplotlib ase netcdf4 ];
# pypi release does no include files for tests
doCheck = false;
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
homepage = "http://www.boltztrap.org/";
description = "Band-structure interpolator and transport coefficient calculator";
license = licenses.gpl3;
maintainers = [ maintainers.costrouc ];
};
}