Merge pull request #313648 from Moraxyc/fix-boltztrap2
python3Packages.boltztrap2: fix build
This commit is contained in:
@@ -8,16 +8,18 @@
|
||||
matplotlib,
|
||||
ase,
|
||||
netcdf4,
|
||||
pytest,
|
||||
pythonOlder,
|
||||
cython,
|
||||
cmake,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boltztrap2";
|
||||
version = "24.1.1";
|
||||
format = "setuptools";
|
||||
|
||||
pyproject = true;
|
||||
build-system = [ setuptools ];
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
@@ -27,6 +29,11 @@ buildPythonPackage rec {
|
||||
hash = "sha256-kgv4lPBxcBmRKihaTwPRz8bHTWAWUOGZADtJUb3y+C4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "USE_CYTHON = False" "USE_CYTHON = True"
|
||||
'';
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -34,7 +41,7 @@ buildPythonPackage rec {
|
||||
cython
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
spglib
|
||||
numpy
|
||||
scipy
|
||||
|
||||
Reference in New Issue
Block a user