diff --git a/pkgs/development/python-modules/webdav4/default.nix b/pkgs/development/python-modules/webdav4/default.nix index ab5c85a062a1..f2d462868c32 100644 --- a/pkgs/development/python-modules/webdav4/default.nix +++ b/pkgs/development/python-modules/webdav4/default.nix @@ -15,16 +15,16 @@ wsgidav, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "webdav4"; - version = "0.10.0"; + version = "0.11.0"; pyproject = true; src = fetchFromGitHub { owner = "skshetry"; repo = "webdav4"; - tag = "v${version}"; - hash = "sha256-LgWYgERRuUODFzUnC08kDJTVRx9vanJ+OU8sREEMVwM="; + tag = "v${finalAttrs.version}"; + hash = "sha256-vWOxFoPxXFf5hmzbu9Ik3Mqg/70eFehqMF46gC6aDzQ="; }; build-system = [ @@ -37,16 +37,6 @@ buildPythonPackage rec { python-dateutil ]; - nativeCheckInputs = [ - cheroot - colorama - pytest-xdist - pytestCheckHook - pytest-cov-stub - wsgidav - ] - ++ optional-dependencies.fsspec; - optional-dependencies = { fsspec = [ fsspec ]; http2 = [ httpx.optional-dependencies.http2 ]; @@ -56,6 +46,16 @@ buildPythonPackage rec { ]; }; + nativeCheckInputs = [ + cheroot + colorama + pytest-xdist + pytestCheckHook + pytest-cov-stub + wsgidav + ] + ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); + pythonImportsCheck = [ "webdav4" ]; disabledTests = [ @@ -81,8 +81,8 @@ buildPythonPackage rec { description = "Library for interacting with WebDAV"; mainProgram = "dav"; homepage = "https://skshetry.github.io/webdav4/"; - changelog = "https://github.com/skshetry/webdav4/releases/tag/v${version}"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/skshetry/webdav4/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})