nixpkgs/pkgs/development/python-modules/remotezip/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}