1{ buildPythonPackage 2, lib 3, fetchPypi 4, pytest 5, httpbin 6, six 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-httpbin"; 11 version = "1.0.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "0wlvw5qgkax7f0i5ks1562s37h2hdmn5yxnp1rajcc2289zm9knq"; 16 }; 17 18 checkInputs = [ pytest ]; 19 20 propagatedBuildInputs = [ httpbin six ]; 21 22 checkPhase = '' 23 py.test 24 ''; 25 26 # https://github.com/kevin1024/pytest-httpbin/pull/51 27 doCheck = false; 28 29 meta = { 30 description = "Easily test your HTTP library against a local copy of httpbin.org"; 31 homepage = "https://github.com/kevin1024/pytest-httpbin"; 32 license = lib.licenses.mit; 33 }; 34} 35