nixpkgs/pkgs/development/python-modules/aiocron/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
791 B
Nix
Raw Normal View History

2021-11-07 22:13:21 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, python
, croniter
, tzlocal
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiocron";
2021-12-07 01:57:34 +01:00
version = "1.8";
2021-11-07 22:13:21 +01:00
src = fetchPypi {
inherit pname version;
2021-12-07 01:57:34 +01:00
sha256 = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE=";
2021-11-07 22:13:21 +01:00
};
propagatedBuildInputs = [
croniter
2021-12-07 01:57:34 +01:00
tzlocal
2021-11-07 22:13:21 +01:00
];
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 ];
};
}