2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
unittestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
mock,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2022-07-14 12:49:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-09-19 14:19:46 +00:00
|
|
|
pname = "cron-descriptor";
|
|
|
|
version = "1.4.4";
|
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Salamek";
|
|
|
|
repo = "cron-descriptor";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-NKAfNwIRnND4ume27CSPJoib9DysbpdD905SNP+wx0A=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# remove tests_require, as we don't do linting anyways
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "/'pep8\|flake8\|pep8-naming',/d" setup.py
|
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
mock
|
|
|
|
unittestCheckHook
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "cron_descriptor" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library that converts cron expressions into human readable strings";
|
|
|
|
homepage = "https://github.com/Salamek/cron-descriptor";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/Salamek/cron-descriptor/releases/tag/${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ phaer ];
|
|
|
|
};
|
|
|
|
}
|