Files
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.

53 lines
881 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
python,
cronsim,
python-dateutil,
tzlocal,
pytestCheckHook,
pytest-cov-stub,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "aiocron";
version = "2.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-G7ZaNq7hN+iDNZJ4OVbgx9xHi8PpJz/ChB1dDGBF5NI=";
};
build-system = [ setuptools ];
dependencies = [
cronsim
python-dateutil
tzlocal
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-xdist
tzlocal
];
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 ];
};
}