1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, croniter
6, tzlocal
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "aiocron";
12 version = "1.8";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE=";
17 };
18
19 propagatedBuildInputs = [
20 croniter
21 tzlocal
22 ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 tzlocal
27 ];
28
29 postPatch = ''
30 sed -i "/--cov/d" setup.cfg
31 sed -i "/--ignore/d" setup.cfg
32 '';
33
34 postInstall = ''
35 rm -rf $out/${python.sitePackages}/tests
36 '';
37
38 pythonImportsCheck = [ "aiocron" ];
39
40 meta = with lib; {
41 description = "Crontabs for asyncio";
42 homepage = "https://github.com/gawel/aiocron/";
43 license = licenses.mit;
44 maintainers = [ maintainers.starcraft66 ];
45 };
46}