nixpkgs/pkgs/development/python-modules/boltztrap2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
spglib,
numpy,
scipy,
matplotlib,
ase,
netcdf4,
pythonOlder,
cython,
cmake,
2024-05-22 18:24:47 +00:00
setuptools,
}:
buildPythonPackage rec {
pname = "boltztrap2";
version = "24.9.4";
2024-05-22 18:24:47 +00:00
pyproject = true;
build-system = [ setuptools ];
disabled = pythonOlder "3.5";
src = fetchPypi {
pname = "BoltzTraP2";
inherit version;
hash = "sha256-BfGR7sY0E9r+RXA1fC9uy1GXC+EFV1RKOvMyvGcf+aE=";
};
2024-05-22 18:24:47 +00:00
postPatch = ''
substituteInPlace setup.py \
--replace-fail "USE_CYTHON = False" "USE_CYTHON = True"
'';
2019-09-16 19:49:23 +00:00
dontUseCmakeConfigure = true;
nativeBuildInputs = [
cmake
cython
];
2024-05-22 18:24:47 +00:00
dependencies = [
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";
mainProgram = "btp2";
homepage = "http://www.boltztrap.org/";
license = licenses.gpl3Plus;
maintainers = [ ];
};
}