pythonPackages.BoltzTraP2: init at 18.9.1
This commit is contained in:
parent
874894b397
commit
4bb06d7be7
43
pkgs/development/python-modules/boltztrap2/default.nix
Normal file
43
pkgs/development/python-modules/boltztrap2/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, spglib
|
||||
, numpy
|
||||
, scipy
|
||||
, matplotlib
|
||||
, ase
|
||||
, netcdf4
|
||||
, pytest
|
||||
, pythonOlder
|
||||
, cython
|
||||
, cmake
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "18.9.1";
|
||||
pname = "BoltzTraP2";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b828ad2b3b3a40956ef866e462e4c82faf83be79348af3945d4e7cede8a53913";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -897,6 +897,8 @@ in {
|
||||
enablePython = true;
|
||||
});
|
||||
|
||||
boltztrap2 = callPackage ../development/python-modules/boltztrap2 { };
|
||||
|
||||
bumps = callPackage ../development/python-modules/bumps {};
|
||||
|
||||
cached-property = callPackage ../development/python-modules/cached-property { };
|
||||
|
Loading…
Reference in New Issue
Block a user