Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 917 B view raw
1{ lib , buildPythonPackage, fetchFromGitHub, isPy27 2, falcon 3, pytestrunner 4, requests 5, pytest 6, marshmallow 7, mock 8, numpy 9}: 10 11buildPythonPackage rec { 12 pname = "hug"; 13 version = "2.6.0"; 14 disabled = isPy27; 15 16 src = fetchFromGitHub { 17 owner = "hugapi"; 18 repo = pname; 19 rev = version; 20 sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq"; 21 }; 22 23 nativeBuildInputs = [ pytestrunner ]; 24 propagatedBuildInputs = [ falcon requests ]; 25 26 checkInputs = [ mock marshmallow pytest numpy ]; 27 checkPhase = '' 28 mv hug hug.hidden 29 # some tests attempt network access 30 PATH=$out/bin:$PATH pytest -k "not (test_request or test_datagram_request)" 31 ''; 32 33 meta = with lib; { 34 broken = true; 35 description = "A Python framework that makes developing APIs as simple as possible, but no simpler"; 36 homepage = "https://github.com/timothycrosley/hug"; 37 license = licenses.mit; 38 }; 39 40}