biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / compressed-rtf / default.nix
blob7788fe065635f92b6d9fed0a87f7de83b41134cf
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "compressed-rtf";
12   version = "1.0.6-unstable-2023-10-15";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
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   };
25   nativeBuildInputs = [ setuptools ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   pythonImportsCheck = [ "compressed_rtf" ];
31   pytestFlagsArray = [ "tests/tests.py" ];
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   };