diff --git a/pkgs/development/python-modules/construct-classes/default.nix b/pkgs/development/python-modules/construct-classes/default.nix index a89f8f030a0e..189729fb9bd7 100644 --- a/pkgs/development/python-modules/construct-classes/default.nix +++ b/pkgs/development/python-modules/construct-classes/default.nix @@ -1,28 +1,27 @@ { lib, buildPythonPackage, - fetchFromGitHub, - poetry-core, construct, + fetchFromGitHub, pytestCheckHook, + uv-build, }: buildPythonPackage rec { pname = "construct-classes"; - version = "0.1.2"; - format = "pyproject"; + version = "0.2.2"; + pyproject = true; - # no tests in PyPI tarball src = fetchFromGitHub { owner = "matejcik"; repo = "construct-classes"; - rev = "v${version}"; - hash = "sha256-l4sVacKTuQbhXCw2lVHCl1OzpCiKmEAm9nSQ8pxFuTo="; + tag = "v${version}"; + hash = "sha256-goOQMt/nVjWXYltpnKHtJaLOhR+gRTmtoUh7zVb7go4="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ uv-build ]; - propagatedBuildInputs = [ construct ]; + dependencies = [ construct ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -31,6 +30,7 @@ buildPythonPackage rec { meta = with lib; { description = "Parse your binary data into dataclasses"; homepage = "https://github.com/matejcik/construct-classes"; + changelog = "https://github.com/matejcik/construct-classes/blob/${src.tag}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ prusnak ]; };