1{ buildPythonPackage 2, lib 3, fetchFromGitHub 4, pytest 5, flask 6, decorator 7, httpbin 8, six 9, requests 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-httpbin"; 14 name = "${pname}-${version}"; 15 version = "0.2.3"; 16 17 src = fetchFromGitHub { 18 owner = "kevin1024"; 19 repo = "pytest-httpbin"; 20 rev = "v${version}"; 21 sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks"; 22 }; 23 24 checkPhase = '' 25 py.test -k "not test_chunked_encoding" 26 ''; 27 28 buildInputs = [ pytest ]; 29 propagatedBuildInputs = [ flask decorator httpbin six requests ]; 30 31 meta = { 32 description = "Easily test your HTTP library against a local copy of httpbin.org"; 33 homepage = https://github.com/kevin1024/pytest-httpbin; 34 license = lib.licenses.mit; 35 }; 36} 37