Merge pull request #145003 from starcraft66/aiocron
python3Packages.aiocron: init at 1.7
This commit is contained in:
commit
45c3d925a5
2 changed files with 47 additions and 0 deletions
45
pkgs/development/python-modules/aiocron/default.nix
Normal file
45
pkgs/development/python-modules/aiocron/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue