1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 calver,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11let
12 self = buildPythonPackage rec {
13 pname = "trove-classifiers";
14 version = "2025.3.19.19";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 pname = "trove_classifiers";
21 inherit version;
22 hash = "sha256-mOnTlv6QjV9Dt0VPpMQ9F80P2t8Eb0X7OKXjr42Vns0=";
23 };
24
25 build-system = [
26 calver
27 setuptools
28 ];
29
30 doCheck = false; # avoid infinite recursion with hatchling
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "trove_classifiers" ];
35
36 passthru.tests.trove-classifiers = self.overridePythonAttrs { doCheck = true; };
37
38 meta = {
39 description = "Canonical source for classifiers on PyPI";
40 homepage = "https://github.com/pypa/trove-classifiers";
41 changelog = "https://github.com/pypa/trove-classifiers/releases/tag/${version}";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 };
45 };
46in
47self