1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "cronsim";
11 version = "2.6";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "cuu508";
18 repo = "cronsim";
19 tag = version;
20 hash = "sha256-WJ3v2cqAKZkXp1u8xJ0aFuyHPq0gn24DRxpnq5cH/90=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "cronsim" ];
26
27 meta = with lib; {
28 description = "Cron expression parser and evaluator";
29 homepage = "https://github.com/cuu508/cronsim";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ phaer ];
32 };
33}