at master 881 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 python, 7 cronsim, 8 python-dateutil, 9 tzlocal, 10 pytestCheckHook, 11 pytest-cov-stub, 12 pytest-xdist, 13}: 14 15buildPythonPackage rec { 16 pname = "aiocron"; 17 version = "2.1"; 18 pyproject = true; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-G7ZaNq7hN+iDNZJ4OVbgx9xHi8PpJz/ChB1dDGBF5NI="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 cronsim 29 python-dateutil 30 tzlocal 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 pytest-cov-stub 36 pytest-xdist 37 tzlocal 38 ]; 39 40 postInstall = '' 41 rm -rf $out/${python.sitePackages}/tests 42 ''; 43 44 pythonImportsCheck = [ "aiocron" ]; 45 46 meta = with lib; { 47 description = "Crontabs for asyncio"; 48 homepage = "https://github.com/gawel/aiocron/"; 49 license = licenses.mit; 50 maintainers = [ maintainers.starcraft66 ]; 51 }; 52}