2021-10-12 16:17:16 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-09-18 03:14:16 +02:00
|
|
|
, setuptools
|
2021-10-12 16:17:16 +02:00
|
|
|
, nose
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rangehttpserver";
|
|
|
|
version = "1.2.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danvk";
|
|
|
|
repo = "RangeHTTPServer";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1sy9j6y8kp5jiwv2vd652v94kspp1yd4dwxrfqfn6zwnfyv2mzv5";
|
|
|
|
};
|
|
|
|
|
2022-09-18 03:14:16 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2021-10-12 16:17:16 +02:00
|
|
|
nose
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
nosetests
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"RangeHTTPServer"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SimpleHTTPServer with support for Range requests";
|
|
|
|
homepage = "https://github.com/danvk/RangeHTTPServer";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|