2018-10-10 22:52:12 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, spglib
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, ase
|
|
|
|
, netcdf4
|
|
|
|
, pytest
|
|
|
|
, pythonOlder
|
|
|
|
, cython
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-02-14 07:37:12 +00:00
|
|
|
version = "19.1.1";
|
2018-10-10 22:52:12 +01:00
|
|
|
pname = "BoltzTraP2";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:12 +00:00
|
|
|
sha256 = "81e8a5ef8240c6a2205463fa7bc643b8033125237927f5492dab0b5d1aadb35a";
|
2018-10-10 22:52:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cython cmake ];
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|