nixpkgs-suyu/pkgs/development/python-modules/aiocron/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

46 lines
797 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, croniter
, tzlocal
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aiocron";
version = "1.8";
src = fetchPypi {
inherit pname version;
sha256 = "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 ];
};
}