23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
58 lines
939 B
Nix
58 lines
939 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, spglib
|
|
, numpy
|
|
, scipy
|
|
, matplotlib
|
|
, ase
|
|
, netcdf4
|
|
, pytest
|
|
, pythonOlder
|
|
, cython
|
|
, cmake
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boltztrap2";
|
|
version = "24.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
pname = "BoltzTraP2";
|
|
inherit version;
|
|
hash = "sha256-kgv4lPBxcBmRKihaTwPRz8bHTWAWUOGZADtJUb3y+C4=";
|
|
};
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
spglib
|
|
numpy
|
|
scipy
|
|
matplotlib
|
|
ase
|
|
netcdf4
|
|
];
|
|
|
|
# pypi release does no include files for tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"BoltzTraP2"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Band-structure interpolator and transport coefficient calculator";
|
|
homepage = "http://www.boltztrap.org/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|