mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
49 lines
994 B
Nix
49 lines
994 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
python,
|
|
requests-mock,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "remotezip2";
|
|
version = "0.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "doronz88";
|
|
repo = "python-remotezip2";
|
|
tag = "v${version}";
|
|
hash = "sha256-UyfAoe9pXCGLGPIE2LSLvnIaju+nXt3s7ddGlpmJGUg=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
pythonImportsCheck = [ "remotezip2" ];
|
|
|
|
nativeCheckInputs = [
|
|
requests-mock
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
${python.interpreter} test_remotezip2.py
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/doronz88/python-remotezip2/releases/tag/${src.tag}";
|
|
description = "Access zip file content hosted remotely without downloading the full file";
|
|
homepage = "https://github.com/doronz88/python-remotezip2";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
}
|