From f2ee944cc11b86876855adbd4f7231778683d0cd Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Sun, 7 Nov 2021 16:13:21 -0500 Subject: [PATCH] python3Packages.aiocron: init at 1.7 --- .../python-modules/aiocron/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/aiocron/default.nix diff --git a/pkgs/development/python-modules/aiocron/default.nix b/pkgs/development/python-modules/aiocron/default.nix new file mode 100644 index 000000000000..3e6f33a23e57 --- /dev/null +++ b/pkgs/development/python-modules/aiocron/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ff164908e448..84895a0cf42b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };