Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchPypi, buildPythonPackage, docopt, pythonOlder }: 2 3buildPythonPackage 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}