python3Packages.pygtrie: migrate to pyproject (#548942)

This commit is contained in:
Sandro
2026-08-04 13:08:33 +00:00
committed by GitHub
@@ -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 ];
};
}
})