depot/third_party/nixpkgs/pkgs/development/python-modules/boltztrap2/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

58 lines
948 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, spglib
, numpy
, scipy
, matplotlib
, ase
, netcdf4
, pytest
, pythonOlder
, cython
, cmake
}:
buildPythonPackage rec {
pname = "boltztrap2";
version = "22.6.1";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchPypi {
pname = "BoltzTraP2";
inherit version;
hash = "sha256-zEKRsNg5P+KKQCeB49TiiSXRmusvr1zwssHhppZdkfA=";
};
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; [ costrouc ];
};
}