567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
53 lines
879 B
Nix
53 lines
879 B
Nix
{
|
|
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 = {
|
|
description = "Crontabs for asyncio";
|
|
homepage = "https://github.com/gawel/aiocron/";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.starcraft66 ];
|
|
};
|
|
}
|