python3Packages.boltztrap2: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-04-16 00:17:51 +02:00 committed by GitHub
parent d1559c59c2
commit dcf937e9e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,32 +14,45 @@
}:
buildPythonPackage rec {
pname = "boltztrap2";
version = "22.4.1";
pname = "BoltzTraP2";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-lGwKHWAslCmb9bVQELHD6kAay+dnieiNsSAfAyNFLPM=";
pname = "BoltzTraP2";
inherit version;
hash = "sha256-lGwKHWAslCmb9bVQELHD6kAay+dnieiNsSAfAyNFLPM=";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = [ cmake cython ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ spglib numpy scipy matplotlib ase netcdf4 ];
nativeBuildInputs = [
cmake
cython
];
propagatedBuildInputs = [
spglib
numpy
scipy
matplotlib
ase
netcdf4
];
# pypi release does no include files for tests
doCheck = false;
checkPhase = ''
py.test
'';
pythonImportsCheck = [
"BoltzTraP2"
];
meta = with lib; {
homepage = "http://www.boltztrap.org/";
description = "Band-structure interpolator and transport coefficient calculator";
license = licenses.gpl3;
maintainers = [ maintainers.costrouc ];
homepage = "http://www.boltztrap.org/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ costrouc ];
};
}