mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-20 06:51:04 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
39 lines
889 B
Nix
39 lines
889 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"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|