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