Merge pull request #145003 from starcraft66/aiocron

python3Packages.aiocron: init at 1.7
This commit is contained in:
Thiago Kenji Okada 2021-11-14 17:04:17 -03:00 committed by GitHub
commit 45c3d925a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 { }; aioapns = callPackage ../development/python-modules/aioapns { };
aiocron = callPackage ../development/python-modules/aiocron { };
ailment = callPackage ../development/python-modules/ailment { }; ailment = callPackage ../development/python-modules/ailment { };
aioamqp = callPackage ../development/python-modules/aioamqp { }; aioamqp = callPackage ../development/python-modules/aioamqp { };