2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, calver
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
let
|
|
|
|
self = buildPythonPackage rec {
|
|
|
|
pname = "trove-classifiers";
|
|
|
|
version = "2023.7.6";
|
|
|
|
format = "setuptools";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-io4Wi1HSD+1gcEODHTdjK7UJGdHICmTg8Tk3RGkaiyI=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"calver"' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
calver
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # avoid infinite recursion with hatchling
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
pythonImportsCheck = [ "trove_classifiers" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.tests.trove-classifiers = self.overridePythonAttrs { doCheck = true; };
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
in
|
|
|
|
self
|