nixpkgs/pkgs/development/python-modules/cronsim/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
690 B
Nix
Raw Normal View History

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
, pythonOlder
2022-06-02 12:40:15 +02:00
}:
buildPythonPackage rec {
pname = "cronsim";
2023-09-15 14:05:58 +02:00
version = "2.5";
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
};
nativeCheckInputs = [
2022-06-02 12:40:15 +02:00
pytestCheckHook
];
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 ];
};
}