2017-04-26 18:02:17 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
2019-02-24 14:16:15 +00:00
|
|
|
, fetchPypi
|
2017-04-27 07:24:55 +01:00
|
|
|
, pytest
|
|
|
|
, httpbin
|
|
|
|
, six
|
2017-04-26 18:02:17 +01:00
|
|
|
}:
|
|
|
|
|
2017-04-27 07:24:55 +01:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "pytest-httpbin";
|
2019-02-24 14:16:15 +00:00
|
|
|
version = "1.0.0";
|
2017-04-26 18:02:17 +01:00
|
|
|
|
2019-02-24 14:16:15 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0wlvw5qgkax7f0i5ks1562s37h2hdmn5yxnp1rajcc2289zm9knq";
|
2017-04-26 18:02:17 +01:00
|
|
|
};
|
|
|
|
|
2018-01-20 10:52:54 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-04-26 18:02:17 +01:00
|
|
|
|
2019-02-24 14:16:15 +00:00
|
|
|
propagatedBuildInputs = [ httpbin six ];
|
2017-04-26 18:02:17 +01:00
|
|
|
|
2018-02-09 19:37:56 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-06-29 18:41:08 +01:00
|
|
|
# https://github.com/kevin1024/pytest-httpbin/pull/51
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-04-26 18:02:17 +01:00
|
|
|
meta = {
|
2017-04-27 07:24:55 +01:00
|
|
|
description = "Easily test your HTTP library against a local copy of httpbin.org";
|
|
|
|
homepage = https://github.com/kevin1024/pytest-httpbin;
|
2017-04-26 18:02:17 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|