504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, calver
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
let
|
|
self = buildPythonPackage rec {
|
|
pname = "trove-classifiers";
|
|
version = "2023.11.22";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wxp+kvll8GCiRLV9jtXub1P8tBPuF855DgBXfLNprZk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace '"calver"' ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
calver
|
|
];
|
|
|
|
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;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
};
|
|
in
|
|
self
|