2022-06-02 12:40:15 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-09-15 14:05:58 +02:00
|
|
|
, fetchFromGitHub
|
2022-06-02 12:40:15 +02:00
|
|
|
, pytestCheckHook
|
2022-09-23 08:47:28 +02:00
|
|
|
, pythonOlder
|
2022-06-02 12:40:15 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cronsim";
|
2023-09-15 14:05:58 +02:00
|
|
|
version = "2.5";
|
2022-09-23 08:47:28 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-06-02 12:40:15 +02:00
|
|
|
|
2023-09-15 14:05:58 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cuu508";
|
|
|
|
repo = "cronsim";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-TSVFkMCMmrMXaPJPPNjIML+z98i1iIYuKH7hHiZnJkg=";
|
2022-06-02 12:40:15 +02:00
|
|
|
};
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-06-02 12:40:15 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-09-23 08:47:28 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cronsim"
|
|
|
|
];
|
2022-06-02 12:40:15 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cron expression parser and evaluator";
|
|
|
|
homepage = "https://github.com/cuu508/cronsim";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ phaer ];
|
|
|
|
};
|
|
|
|
}
|