1{ lib
2, python
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "cron_descriptor";
10 version = "1.2.30";
11
12 src = fetchFromGitHub {
13 owner = "Salamek";
14 repo = "cron-descriptor";
15 rev = "refs/tags/${version}";
16 sha256 = "sha256-Qei9f0HlIu5sautMEASvxdUqZyXKvHDWJgd3oST1gJo=";
17 };
18
19 # remove tests_require, as we don't do linting anyways
20 postPatch = ''
21 sed -i "/'pep8\|flake8\|pep8-naming',/d" setup.py
22 '';
23
24 checkPhase = ''
25 ${python.interpreter} setup.py test
26 '';
27
28 pythonImportsCheck = [ "cron_descriptor" ];
29
30 meta = with lib; {
31 description = "Library that converts cron expressions into human readable strings";
32 homepage = "https://github.com/Salamek/cron-descriptor";
33 license = licenses.mit;
34 maintainers = with maintainers; [ phaer ];
35 };
36}