Merge pull request #220627 from fabaff/rangehttpserver-bump

python310Packages.rangehttpserver: 1.2.0 -> 1.3.3
This commit is contained in:
Fabian Affolter 2023-03-11 12:22:16 +01:00 committed by GitHub
commit b04384c65c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,20 +2,20 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools , setuptools
, nose , pytestCheckHook
, requests , requests
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "rangehttpserver"; pname = "rangehttpserver";
version = "1.2.0"; version = "1.3.3";
format = "pyproject"; format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "danvk"; owner = "danvk";
repo = "RangeHTTPServer"; repo = "RangeHTTPServer";
rev = version; rev = "refs/tags/${version}";
sha256 = "1sy9j6y8kp5jiwv2vd652v94kspp1yd4dwxrfqfn6zwnfyv2mzv5"; hash = "sha256-ZXEbis37QO8t05JQ2qQQf5rkUSxq3DwzR3khAJkZ5W0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -23,16 +23,10 @@ buildPythonPackage rec {
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
nose pytestCheckHook
requests requests
]; ];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
pythonImportsCheck = [ pythonImportsCheck = [
"RangeHTTPServer" "RangeHTTPServer"
]; ];
@ -40,6 +34,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "SimpleHTTPServer with support for Range requests"; description = "SimpleHTTPServer with support for Range requests";
homepage = "https://github.com/danvk/RangeHTTPServer"; homepage = "https://github.com/danvk/RangeHTTPServer";
changelog = "https://github.com/danvk/RangeHTTPServer/releases/tag/${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };