Merge pull request #313648 from Moraxyc/fix-boltztrap2

python3Packages.boltztrap2: fix build

authored by Robert Scott and committed by GitHub a5f588f8 5a414f74

+10 -3
+10 -3
pkgs/development/python-modules/boltztrap2/default.nix
··· 8 8 matplotlib, 9 9 ase, 10 10 netcdf4, 11 - pytest, 12 11 pythonOlder, 13 12 cython, 14 13 cmake, 14 + setuptools, 15 15 }: 16 16 17 17 buildPythonPackage rec { 18 18 pname = "boltztrap2"; 19 19 version = "24.1.1"; 20 - format = "setuptools"; 20 + 21 + pyproject = true; 22 + build-system = [ setuptools ]; 21 23 22 24 disabled = pythonOlder "3.5"; 23 25 ··· 27 29 hash = "sha256-kgv4lPBxcBmRKihaTwPRz8bHTWAWUOGZADtJUb3y+C4="; 28 30 }; 29 31 32 + postPatch = '' 33 + substituteInPlace setup.py \ 34 + --replace-fail "USE_CYTHON = False" "USE_CYTHON = True" 35 + ''; 36 + 30 37 dontUseCmakeConfigure = true; 31 38 32 39 nativeBuildInputs = [ ··· 34 41 cython 35 42 ]; 36 43 37 - propagatedBuildInputs = [ 44 + dependencies = [ 38 45 spglib 39 46 numpy 40 47 scipy