diff --git a/pkgs/development/python-modules/awesomeversion/default.nix b/pkgs/development/python-modules/awesomeversion/default.nix index 001ddf58a9a1..70e9f56b430e 100644 --- a/pkgs/development/python-modules/awesomeversion/default.nix +++ b/pkgs/development/python-modules/awesomeversion/default.nix @@ -3,14 +3,15 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, - poetry-core, + hatchling, + pytest-codspeed, pytest-snapshot, pytestCheckHook, }: buildPythonPackage rec { pname = "awesomeversion"; - version = "24.6.0"; + version = "25.8.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -19,7 +20,7 @@ buildPythonPackage rec { owner = "ludeeus"; repo = "awesomeversion"; tag = version; - hash = "sha256-lpG42Be0MVinWX5MyDvBPdoZFx66l6tpUxpAJRqEf88="; + hash = "sha256-2CEuJagUkYwtjzpQLYLlz+V5e2feEU6di3wI0+uWuy4="; }; postPatch = '' @@ -28,11 +29,12 @@ buildPythonPackage rec { --replace-fail 'version = "0"' 'version = "${version}"' ''; - nativeBuildInputs = [ poetry-core ]; + nativeBuildInputs = [ hatchling ]; pythonImportsCheck = [ "awesomeversion" ]; nativeCheckInputs = [ + pytest-codspeed pytest-snapshot pytestCheckHook ]; @@ -40,7 +42,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python module to deal with versions"; homepage = "https://github.com/ludeeus/awesomeversion"; - changelog = "https://github.com/ludeeus/awesomeversion/releases/tag/${version}"; + changelog = "https://github.com/ludeeus/awesomeversion/releases/tag/${src.tag}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };