mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
python3Packages.cron-descriptor: init at 1.2.24
This commit is contained in:
parent
1646a144f4
commit
cccdb0558d
36
pkgs/development/python-modules/cron-descriptor/default.nix
Normal file
36
pkgs/development/python-modules/cron-descriptor/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user