1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6}:
7
8buildPythonPackage rec {
9 pname = "heatshrink2";
10 version = "0.13.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "eerimoq";
17 repo = "pyheatshrink";
18 tag = version;
19 fetchSubmodules = true;
20 hash = "sha256-gspMd3Fyxe2/GhZYdKjVcZXRlslay3jO4jZuVG79G44=";
21 };
22
23 pythonImportsCheck = [ "heatshrink2" ];
24
25 meta = with lib; {
26 description = "Compression using the Heatshrink algorithm";
27 homepage = "https://github.com/eerimoq/pyheatshrink";
28 license = licenses.isc;
29 maintainers = with maintainers; [ prusnak ];
30 };
31}