fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
47 lines
854 B
Nix
47 lines
854 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
arrow,
|
|
delorean,
|
|
pendulum,
|
|
pynose,
|
|
pytestCheckHook,
|
|
pytz,
|
|
udatetime,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycron";
|
|
version = "3.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kipe";
|
|
repo = "pycron";
|
|
rev = version;
|
|
hash = "sha256-+67yU2o31SdgnV3CtiEkLHDltQYgosnqxEuO51rGE4o=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
arrow
|
|
delorean
|
|
pendulum
|
|
pynose
|
|
pytestCheckHook
|
|
pytz
|
|
udatetime
|
|
];
|
|
|
|
pythonImportsCheck = [ "pycron" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple cron-like parser for Python, which determines if current datetime matches conditions";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/kipe/pycron";
|
|
maintainers = with maintainers; [ globin ];
|
|
};
|
|
}
|