2018-10-10 21:52:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, spglib
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, ase
|
|
|
|
, netcdf4
|
|
|
|
, pytest
|
|
|
|
, pythonOlder
|
|
|
|
, cython
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-05 08:21:19 +00:00
|
|
|
version = "19.7.3";
|
2018-10-10 21:52:12 +00:00
|
|
|
pname = "BoltzTraP2";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-05 08:21:19 +00:00
|
|
|
sha256 = "1hambr925ml2v2zcxnmnpi39395gl2928yac4p2kghk9xicymraw";
|
2018-10-10 21:52:12 +00:00
|
|
|
};
|
|
|
|
|
2019-08-05 08:21:19 +00:00
|
|
|
nativeBuildInputs = [ cmake cython ];
|
2018-10-10 21:52:12 +00:00
|
|
|
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 = https://www.boltztrap.org/;
|
|
|
|
description = "Band-structure interpolator and transport coefficient calculator";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|