push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
{
lib,
buildPythonPackage,
fetchPypi,
spglib,
numpy,
scipy,
matplotlib,
ase,
netcdf4,
pythonOlder,
cython,
cmake,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "boltztrap2";
version = "25.3.1";
pyproject = true;
build-system = [
setuptools
setuptools-scm
];
disabled = pythonOlder "3.5";
src = fetchPypi {
pname = "boltztrap2";
inherit version;
hash = "sha256-JUIGh/6AF+xYLmF3QN47/A5E9zPKdhO2lhn97giZJ48=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0" "numpy"
'';
dontUseCmakeConfigure = true;
nativeBuildInputs = [
cmake
cython
];
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 = [ ];
};
}