2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
docutils,
|
|
|
|
fetchPypi,
|
|
|
|
od,
|
|
|
|
pygments,
|
|
|
|
python-dateutil,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
2024-06-05 15:53:02 +00:00
|
|
|
repeated-test,
|
|
|
|
setuptools-scm,
|
|
|
|
sigtools,
|
2024-09-19 14:19:46 +00:00
|
|
|
unittestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clize";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "5.0.2";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-BH9aRHNgJxirG4VnKn4VMDOHF41agcJ13EKd+sHstRA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
attrs
|
|
|
|
docutils
|
|
|
|
od
|
|
|
|
sigtools
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
datetime = [ python-dateutil ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pygments
|
2024-09-19 14:19:46 +00:00
|
|
|
unittestCheckHook
|
|
|
|
python-dateutil
|
2022-11-21 17:40:18 +00:00
|
|
|
repeated-test
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "clize" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line argument parsing for Python";
|
|
|
|
homepage = "https://github.com/epsy/clize";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/epsy/clize/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|