Skip to content

Commit 5db271c

Browse files
P-E-MeunierFRidh
authored andcommittedMay 4, 2017
pythonPackages.httpserver: init at 1.1.0
1 parent d46e78e commit 5db271c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{ lib, fetchPypi, buildPythonPackage, docopt, pythonOlder }:
2+
3+
buildPythonPackage rec {
4+
name = "${pname}-${version}";
5+
pname = "httpserver";
6+
version = "1.1.0";
7+
8+
buildInputs = [ docopt ];
9+
10+
# Tests pull in lots of other dependencies to emulate different web
11+
# drivers.
12+
doCheck = false;
13+
14+
# Because it uses asyncio
15+
disabled = pythonOlder "3.4";
16+
17+
src = fetchPypi {
18+
inherit pname version;
19+
sha256 = "1q62g324dvb0hqdwwrnj41sqr4d3ly78v9nc26rz1whj4pwdmhsv";
20+
};
21+
22+
meta = {
23+
description = "Asyncio implementation of an HTTP server";
24+
homepage = https://github.com/thomwiggers/httpserver;
25+
license = with lib.licenses; [ bsd3 ];
26+
};
27+
}

‎pkgs/top-level/python-packages.nix

+2
Original file line numberDiff line numberDiff line change
@@ -2945,6 +2945,8 @@ in {
29452945
};
29462946
};
29472947

2948+
httpserver = callPackage ../development/python-modules/httpserver {};
2949+
29482950
bleach = buildPythonPackage rec {
29492951
pname = "bleach";
29502952
version = "2.0.0";

0 commit comments

Comments
 (0)
Please sign in to comment.