e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
52 lines
873 B
Nix
52 lines
873 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, python
|
|
, croniter
|
|
, tzlocal
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiocron";
|
|
version = "1.8";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
croniter
|
|
tzlocal
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|