From 3b4d9199edfa503509060e2529128f198b8f0197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 12 Jul 2026 09:59:26 -0700 Subject: [PATCH 1/2] python3Packages.trove-classifiers: 2026.5.20.19 -> 2026.6.1.19 Changelog: https://github.com/pypa/trove-classifiers/releases/tag/2026.6.1.19 --- pkgs/development/python-modules/trove-classifiers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/trove-classifiers/default.nix b/pkgs/development/python-modules/trove-classifiers/default.nix index 898180da3cd0..96094ed0074b 100644 --- a/pkgs/development/python-modules/trove-classifiers/default.nix +++ b/pkgs/development/python-modules/trove-classifiers/default.nix @@ -10,13 +10,13 @@ let self = buildPythonPackage rec { pname = "trove-classifiers"; - version = "2026.5.20.19"; + version = "2026.6.1.19"; pyproject = true; src = fetchPypi { pname = "trove_classifiers"; inherit version; - hash = "sha256-bmEZk5h8qTJpaK1wRScz2t0xRxWZ05iWBFsolwqbuB4="; + hash = "sha256-xRMrS2GoKdEc+9LXLpfyCkXtbtuV5Fxe/eteAINrJ0U="; }; postPatch = '' From 7b1cb1ff899744ec4823c740a616569009e2a959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 12 Jul 2026 10:02:27 -0700 Subject: [PATCH 2/2] python3Packages.trove-classifiers: use finalAttrs --- .../trove-classifiers/default.nix | 75 +++++++++---------- 1 file changed, 36 insertions(+), 39 deletions(-) diff --git a/pkgs/development/python-modules/trove-classifiers/default.nix b/pkgs/development/python-modules/trove-classifiers/default.nix index 96094ed0074b..083bb90e8fcd 100644 --- a/pkgs/development/python-modules/trove-classifiers/default.nix +++ b/pkgs/development/python-modules/trove-classifiers/default.nix @@ -7,44 +7,41 @@ setuptools, }: -let - self = buildPythonPackage rec { - pname = "trove-classifiers"; - version = "2026.6.1.19"; - pyproject = true; +buildPythonPackage (finalAttrs: { + pname = "trove-classifiers"; + version = "2026.6.1.19"; + pyproject = true; - src = fetchPypi { - pname = "trove_classifiers"; - inherit version; - hash = "sha256-xRMrS2GoKdEc+9LXLpfyCkXtbtuV5Fxe/eteAINrJ0U="; - }; - - postPatch = '' - substituteInPlace tests/test_cli.py \ - --replace-fail "BINDIR = Path(sys.executable).parent" "BINDIR = '$out/bin'" - ''; - - build-system = [ - calver - setuptools - ]; - - doCheck = false; # avoid infinite recursion with hatchling - - nativeCheckInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ "trove_classifiers" ]; - - passthru.tests.trove-classifiers = self.overridePythonAttrs { doCheck = true; }; - - meta = { - description = "Canonical source for classifiers on PyPI"; - homepage = "https://github.com/pypa/trove-classifiers"; - changelog = "https://github.com/pypa/trove-classifiers/releases/tag/${version}"; - license = lib.licenses.asl20; - mainProgram = "trove-classifiers"; - maintainers = with lib.maintainers; [ dotlambda ]; - }; + src = fetchPypi { + pname = "trove_classifiers"; + inherit (finalAttrs) version; + hash = "sha256-xRMrS2GoKdEc+9LXLpfyCkXtbtuV5Fxe/eteAINrJ0U="; }; -in -self + + postPatch = '' + substituteInPlace tests/test_cli.py \ + --replace-fail "BINDIR = Path(sys.executable).parent" "BINDIR = '$out/bin'" + ''; + + build-system = [ + calver + setuptools + ]; + + doCheck = false; # avoid infinite recursion with hatchling + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "trove_classifiers" ]; + + passthru.tests.trove-classifiers = finalAttrs.finalPackage.overrideAttrs { doInstallCheck = true; }; + + meta = { + description = "Canonical source for classifiers on PyPI"; + homepage = "https://github.com/pypa/trove-classifiers"; + changelog = "https://github.com/pypa/trove-classifiers/releases/tag/${finalAttrs.version}"; + license = lib.licenses.asl20; + mainProgram = "trove-classifiers"; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +})