diff --git a/pkgs/development/python-modules/peblar/default.nix b/pkgs/development/python-modules/peblar/default.nix index e0443c9e40a7..e7f0ad548361 100644 --- a/pkgs/development/python-modules/peblar/default.nix +++ b/pkgs/development/python-modules/peblar/default.nix @@ -1,18 +1,19 @@ { lib, aiohttp, - aresponses, + aioresponses, awesomeversion, - backoff, buildPythonPackage, fetchFromGitHub, - hatchling, mashumaro, orjson, + poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, + rich, syrupy, + tenacity, typer, yarl, zeroconf, @@ -20,14 +21,14 @@ buildPythonPackage rec { pname = "peblar"; - version = "0.4.0"; + version = "0.5.1"; pyproject = true; src = fetchFromGitHub { owner = "frenck"; repo = "python-peblar"; tag = "v${version}"; - hash = "sha256-cHb/VTaa7tkePqV7eLpDSxrnY8hAnjshwtwyWmJnt/4="; + hash = "sha256-58PIvbl0QqOrvEc2rIieImWSnGZVIrhVAwsN+fZcWT4="; }; postPatch = '' @@ -36,31 +37,33 @@ buildPythonPackage rec { --replace-fail 'version = "0.0.0"' 'version = "${version}"' ''; - build-system = [ hatchling ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp awesomeversion - backoff mashumaro orjson + tenacity yarl ]; optional-dependencies = { cli = [ + rich typer zeroconf ]; }; nativeCheckInputs = [ - aresponses + aioresponses pytest-asyncio pytest-cov-stub pytestCheckHook syrupy - ]; + ] + ++ lib.concatAttrValues optional-dependencies; pythonImportsCheck = [ "peblar" ]; @@ -69,6 +72,7 @@ buildPythonPackage rec { homepage = "https://github.com/frenck/python-peblar"; changelog = "https://github.com/frenck/python-peblar/releases/tag/v${version}"; license = lib.licenses.mit; + mainProgram = "peblar"; maintainers = with lib.maintainers; [ fab ]; }; }