From 292a9bce10f59a46378d99eefbdb079bd92e4159 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Aug 2024 18:50:30 +0200 Subject: [PATCH] python312Packages.webdav4: modernize --- pkgs/development/python-modules/webdav4/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/webdav4/default.nix b/pkgs/development/python-modules/webdav4/default.nix index 8083b080e44d..9a6459fa375e 100644 --- a/pkgs/development/python-modules/webdav4/default.nix +++ b/pkgs/development/python-modules/webdav4/default.nix @@ -10,6 +10,7 @@ httpx, pytest-xdist, pytestCheckHook, + pytest-cov-stub, python-dateutil, pythonOlder, wsgidav, @@ -29,17 +30,12 @@ buildPythonPackage rec { hash = "sha256-LgWYgERRuUODFzUnC08kDJTVRx9vanJ+OU8sREEMVwM="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov" "" - ''; - - nativeBuildInputs = [ + build-system = [ hatch-vcs hatchling ]; - propagatedBuildInputs = [ + dependencies = [ httpx python-dateutil ]; @@ -49,6 +45,7 @@ buildPythonPackage rec { colorama pytest-xdist pytestCheckHook + pytest-cov-stub wsgidav ] ++ passthru.optional-dependencies.fsspec;