python3Packages.typish: migrate to pyproject (#545643)

This commit is contained in:
Nikolay Korotkiy
2026-07-26 12:12:26 +00:00
committed by GitHub
@@ -2,23 +2,28 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "typish";
version = "1.9.3";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ramonhagenaars";
repo = "typish";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-LnOg1dVs6lXgPTwRYg7uJ3LCdExYrCxS47UEJxKHhVU=";
};
build-system = [ setuptools ];
# Tests fail on Python 3.14
# TypeError: 'member_descriptor' object is not iterable
disabled = pythonAtLeast "3.14";
@@ -44,8 +49,8 @@ buildPythonPackage rec {
meta = {
description = "Python module for checking types of objects";
homepage = "https://github.com/ramonhagenaars/typish";
changelog = "https://github.com/ramonhagenaars/typish/releases/tag/v${version}";
changelog = "https://github.com/ramonhagenaars/typish/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fmoda3 ];
};
}
})