nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytestCheckHook,
7 python-dateutil,
8 pytz,
9 tzlocal,
10}:
11
12buildPythonPackage rec {
13 pname = "croniter";
14 version = "6.0.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-N8UEsxOVYRSpg+ziwrB3kLHxCU/p2BzJRzkhR0glVXc=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [
25 python-dateutil
26 pytz
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 tzlocal
32 ];
33
34 pythonImportsCheck = [ "croniter" ];
35
36 meta = {
37 description = "Library to iterate over datetime object with cron like format";
38 homepage = "https://github.com/kiorky/croniter";
39 changelog = "https://github.com/kiorky/croniter/blob/${version}/CHANGELOG.rst";
40 license = lib.licenses.mit;
41 maintainers = [ ];
42 };
43}