python3Packages.aiocron: init at 1.7

This commit is contained in:
Tristan Gosselin-Hane 2021-11-07 16:13:21 -05:00
parent b142bd35d5
commit f2ee944cc1
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, croniter
, tzlocal
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiocron";
version = "1.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-rX07m9iIl5NP/RiTf/I1q5+wE1goD9QOAUYf1fdjSL0=";
};
propagatedBuildInputs = [
croniter
];
checkInputs = [
pytestCheckHook
tzlocal
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
sed -i "/--ignore/d" setup.cfg
'';
postInstall = ''
rm -rf $out/${python.sitePackages}/tests
'';
pythonImportsCheck = [ "aiocron" ];
meta = with lib; {
description = "Crontabs for asyncio";
homepage = "https://github.com/gawel/aiocron/";
license = licenses.mit;
maintainers = [ maintainers.starcraft66 ];
};
}

View file

@ -247,6 +247,8 @@ in {
aioapns = callPackage ../development/python-modules/aioapns { };
aiocron = callPackage ../development/python-modules/aiocron { };
ailment = callPackage ../development/python-modules/ailment { };
aioamqp = callPackage ../development/python-modules/aioamqp { };