2018-10-10 22:52:12 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, spglib
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, ase
|
|
|
|
, netcdf4
|
|
|
|
, pytest
|
|
|
|
, pythonOlder
|
|
|
|
, cython
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-06-06 07:46:59 +01:00
|
|
|
version = "20.2.1";
|
2018-10-10 22:52:12 +01:00
|
|
|
pname = "BoltzTraP2";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:46:59 +01:00
|
|
|
sha256 = "1cbf17c5479eec82efd1e8a26202c3320b1986597a08706cafa46bfb80cc3001";
|
2018-10-10 22:52:12 +01:00
|
|
|
};
|
|
|
|
|
2019-09-16 20:49:23 +01:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-08-05 09:21:19 +01:00
|
|
|
nativeBuildInputs = [ cmake cython ];
|
2018-10-10 22:52:12 +01: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; {
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "http://www.boltztrap.org/";
|
2018-10-10 22:52:12 +01:00
|
|
|
description = "Band-structure interpolator and transport coefficient calculator";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|