mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 00:16:33 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
885 B
Nix
41 lines
885 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
requests,
|
|
pytestCheckHook,
|
|
requests-mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "remotezip";
|
|
version = "0.12.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gtsystem";
|
|
repo = "python-remotezip";
|
|
tag = "v${version}";
|
|
hash = "sha256-TNEM7Dm4iH4Z/P/PAqjJppbn1CKmyi9Xpq/sU9O8uxg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "remotezip" ];
|
|
|
|
meta = {
|
|
description = "Python module to access single members of a zip archive without downloading the full content";
|
|
mainProgram = "remotezip";
|
|
homepage = "https://github.com/gtsystem/python-remotezip";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
};
|
|
}
|