diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index 68f76e9a9d59..45b8e3d68d91 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -2,19 +2,33 @@ lib, fetchPypi, buildPythonPackage, + setuptools, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pygtrie"; version = "2.5.0"; - format = "setuptools"; + + pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + pname = "pygtrie"; + inherit (finalAttrs) version; hash = "sha256-IDUUrYJutAPasdLi3dA04NFTS75NvgITuwWT9mvrpOI="; }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + enabledTestPaths = [ "test.py" ]; + meta = { homepage = "https://github.com/mina86/pygtrie"; description = "Trie data structure implementation"; + changelog = "https://github.com/mina86/pygtrie/blob/v${finalAttrs.version}/version-history.rst"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ kmein ]; }; -} +})