1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 unittestCheckHook,
6 mock,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "cron-descriptor";
12 version = "1.4.5";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "Salamek";
17 repo = "cron-descriptor";
18 tag = version;
19 hash = "sha256-ElYma6RH2u1faIgOvGpMQA26dSIibWcO4mWU6NAA5PQ=";
20 };
21
22 # remove tests_require, as we don't do linting anyways
23 postPatch = ''
24 sed -i "/'pep8\|flake8\|pep8-naming',/d" setup.py
25 '';
26
27 build-system = [ setuptools ];
28
29 nativeCheckInputs = [
30 mock
31 unittestCheckHook
32 ];
33
34 pythonImportsCheck = [ "cron_descriptor" ];
35
36 meta = with lib; {
37 description = "Library that converts cron expressions into human readable strings";
38 homepage = "https://github.com/Salamek/cron-descriptor";
39 changelog = "https://github.com/Salamek/cron-descriptor/releases/tag/${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ phaer ];
42 };
43}