python3Packages.cron-descriptor: init at 1.2.24

This commit is contained in:
phaer 2022-06-02 12:39:53 +02:00
parent 1646a144f4
commit cccdb0558d
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, python
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cron_descriptor";
version = "1.2.24";
src = fetchFromGitHub {
owner = "Salamek";
repo = "cron-descriptor";
rev = version;
sha256 = "sha256-Gf7n8OiFuaN+8MqsXSg9RBPh2gXfPgjJ4xeuinGYKMw=";
};
# remove tests_require, as we don't do linting anyways
postPatch = ''
sed -i "/'pep8\|flake8\|pep8-naming',/d" setup.py
'';
checkPhase = ''
${python.interpreter} setup.py test
'';
pythonImportsCheck = [ "cron_descriptor" ];
meta = with lib; {
description = "Library that converts cron expressions into human readable strings";
homepage = "https://github.com/Salamek/cron-descriptor";
license = licenses.mit;
maintainers = with maintainers; [ phaer ];
};
}

View File

@ -1974,6 +1974,8 @@ in {
criticality-score = callPackage ../development/python-modules/criticality-score { };
cron-descriptor = callPackage ../development/python-modules/cron-descriptor { };
croniter = callPackage ../development/python-modules/croniter { };
crossplane = callPackage ../development/python-modules/crossplane { };