summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorMartino Fontana <tinozzo123@tutanota.com>2021-10-20 11:01:36 +0200
committerMartino Fontana <tinozzo123@tutanota.com>2021-10-20 11:01:36 +0200
commit56eb515ff72ce8c8ce51dd5a9fa5368b9f07c4f3 (patch)
tree6159de48f70a25b4bc440a25c0c4531c48b4514e /pkgs/development/python-modules/rangehttpserver
parent848c629e88856257136dc5821ad9987058125c94 (diff)
parent8d3d472ab372c22067164f1ab413542955c408bf (diff)
Merge branch 'master' of https://github.com/SuperSamus/nixpkgs
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
-rw-r--r--pkgs/development/python-modules/rangehttpserver/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rangehttpserver/default.nix b/pkgs/development/python-modules/rangehttpserver/default.nix
new file mode 100644
index 000000000000..217bffb174b8
--- /dev/null
+++ b/pkgs/development/python-modules/rangehttpserver/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, nose
+, requests
+}:
+
+buildPythonPackage rec {
+ pname = "rangehttpserver";
+ version = "1.2.0";
+ format = "pyproject";
+
+ src = fetchFromGitHub {
+ owner = "danvk";
+ repo = "RangeHTTPServer";
+ rev = version;
+ sha256 = "1sy9j6y8kp5jiwv2vd652v94kspp1yd4dwxrfqfn6zwnfyv2mzv5";
+ };
+
+ checkInputs = [
+ 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 ];
+ };
+}