diff --git a/pkgs/development/python-modules/typish/default.nix b/pkgs/development/python-modules/typish/default.nix index 08b39edf9677..f0eb2e85e5cc 100644 --- a/pkgs/development/python-modules/typish/default.nix +++ b/pkgs/development/python-modules/typish/default.nix @@ -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 ]; }; -} +})