1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
29 lines
615 B
Nix
29 lines
615 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "heatshrink2";
|
|
version = "0.13.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eerimoq";
|
|
repo = "pyheatshrink";
|
|
tag = version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-gspMd3Fyxe2/GhZYdKjVcZXRlslay3jO4jZuVG79G44=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "heatshrink2" ];
|
|
|
|
meta = {
|
|
description = "Compression using the Heatshrink algorithm";
|
|
homepage = "https://github.com/eerimoq/pyheatshrink";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ prusnak ];
|
|
};
|
|
}
|