From 612abc0c6783081fa97050ca3835a80037d434ad Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Dec 2024 00:27:05 +0100 Subject: [PATCH] python312Packages.autoslot: refactor --- pkgs/development/python-modules/autoslot/default.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/autoslot/default.nix b/pkgs/development/python-modules/autoslot/default.nix index 0df019c1c46d..84c504bed8ca 100644 --- a/pkgs/development/python-modules/autoslot/default.nix +++ b/pkgs/development/python-modules/autoslot/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "autoslot"; version = "2024.12.1"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -21,13 +21,7 @@ buildPythonPackage rec { hash = "sha256-wYjsBrjvSZFHDt0HLrnS9Xwk8EHVQupfPSkQnUFmMAk="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'requires = ["flit"]' 'requires = ["flit_core"]' \ - --replace 'build-backend = "flit.buildapi"' 'build-backend = "flit_core.buildapi"' - ''; - - nativeBuildInputs = [ flit-core ]; + build-system = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook ];