nixpkgs/pkgs/development/python-modules/zipstream-ng/default.nix
florian on nixos (Florian Brandes) bb82344ca6 python3Packages.zipstream-ng: init at 1.3.4
needed for octoprint update

Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>

Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
2022-03-22 08:43:15 -07:00

39 lines
883 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "zipstream-ng";
version = "1.3.4";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pR0Ps";
repo = "zipstream-ng";
rev = "v${version}";
sha256 = "NTsnGCddGDUxdHbEoM2ew756psboex3sb6MkYKtaSjQ=";
};
pythonImportsCheck = [
"zipstream"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Library to generate streamable zip files";
longDescription = ''
A modern and easy to use streamable zip file generator. It can package and stream many files
and folders on the fly without needing temporary files or excessive memory
'';
homepage = "https://github.com/pR0Ps/zipstream-ng";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ gador ];
};
}