blob: 64fd89f042e997e5b61478229fee5b011eb90612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
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 ];
};
}
|