2023-06-30 18:43:30 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2022-07-20 07:58:00 +00:00
|
|
|
fetchFromGitHub,
|
2023-06-30 18:43:30 +00:00
|
|
|
pythonOlder,
|
2022-07-20 07:58:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "heatshrink2";
|
2024-11-13 23:22:38 +00:00
|
|
|
version = "0.13.0";
|
2023-06-30 18:43:30 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-07-20 07:58:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eerimoq";
|
|
|
|
repo = "pyheatshrink";
|
2023-06-30 18:43:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-07-20 07:58:00 +00:00
|
|
|
fetchSubmodules = true;
|
2024-11-13 23:22:38 +00:00
|
|
|
hash = "sha256-gspMd3Fyxe2/GhZYdKjVcZXRlslay3jO4jZuVG79G44=";
|
2022-07-20 07:58:00 +00:00
|
|
|
};
|
|
|
|
|
2023-06-30 18:43:30 +00:00
|
|
|
pythonImportsCheck = [ "heatshrink2" ];
|
2022-07-20 07:58:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-06-30 18:43:30 +00:00
|
|
|
description = "Compression using the Heatshrink algorithm";
|
2022-07-20 07:58:00 +00:00
|
|
|
homepage = "https://github.com/eerimoq/pyheatshrink";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|