diff --git a/pkgs/development/python-modules/palace/default.nix b/pkgs/development/python-modules/palace/default.nix index 09aa409a42c1..5529d344dfff 100644 --- a/pkgs/development/python-modules/palace/default.nix +++ b/pkgs/development/python-modules/palace/default.nix @@ -1,11 +1,19 @@ -{ lib, buildPythonPackage, fetchFromSourcehut, pythonOlder -, cmake, cython, alure2, typing-extensions +{ lib +, buildPythonPackage +, fetchFromSourcehut +, pythonOlder +, cmake +, cython_0 +, setuptools +, alure2 +, typing-extensions }: buildPythonPackage rec { pname = "palace"; version = "0.2.5"; - format = "setuptools"; + pyproject = true; + disabled = pythonOlder "3.6"; src = fetchFromSourcehut { @@ -21,15 +29,20 @@ buildPythonPackage rec { --replace IMPORTED_LOCATION_NOCONFIG IMPORTED_LOCATION_RELEASE ''; + build-system = [ + cmake + cython_0 + setuptools + ]; + dontUseCmakeConfigure = true; - nativeBuildInputs = [ cmake ]; - buildInputs = [ cython ]; - propagatedBuildInputs = [ alure2 ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions + propagatedBuildInputs = [ + alure2 ]; doCheck = false; # FIXME: tests need an audio device + pythonImportsCheck = [ "palace" ]; meta = with lib; {