1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage {
11 pname = "compressed-rtf";
12 version = "1.0.7";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "delimitry";
19 repo = "compressed_rtf";
20 # https://github.com/delimitry/compressed_rtf/issues/15
21 rev = "581400c1b4c69ab0d944cfb5ca82c32059bbcc96";
22 hash = "sha256-ivvND+cOCAmRyO8yL0+WhFY/2OkrJ+E/o4xWWd7ivHA=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "compressed_rtf" ];
30
31 enabledTestPaths = [ "tests/tests.py" ];
32
33 meta = with lib; {
34 description = "Compressed Rich Text Format (RTF) compression and decompression";
35 homepage = "https://github.com/delimitry/compressed_rtf";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}