Skip to content

Commit

Permalink
python312Packages.boltztrap2: fix build (#359697)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Dec 1, 2024
2 parents ca98816 + 3ed3828 commit 1b9db3a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pkgs/development/python-modules/boltztrap2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,31 @@
cython,
cmake,
setuptools,
setuptools-scm,
}:

buildPythonPackage rec {
pname = "boltztrap2";
version = "24.9.4";

pyproject = true;
build-system = [ setuptools ];

build-system = [
setuptools
setuptools-scm
];

disabled = pythonOlder "3.5";

src = fetchPypi {
pname = "BoltzTraP2";
pname = "boltztrap2";
inherit version;
hash = "sha256-BfGR7sY0E9r+RXA1fC9uy1GXC+EFV1RKOvMyvGcf+aE=";
};

postPatch = ''
substituteInPlace setup.py \
--replace-fail "USE_CYTHON = False" "USE_CYTHON = True"
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0" "numpy"
'';

dontUseCmakeConfigure = true;
Expand Down

0 comments on commit 1b9db3a

Please sign in to comment.