mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
0215034f25
when they already rely on SRI hashes.
47 lines
795 B
Nix
47 lines
795 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, croniter
|
|
, tzlocal
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiocron";
|
|
version = "1.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|