2017-04-26 17:02:17 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
2017-04-27 06:24:55 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, flask
|
|
|
|
, decorator
|
|
|
|
, httpbin
|
|
|
|
, six
|
2017-05-07 10:55:45 +00:00
|
|
|
, requests
|
2017-04-26 17:02:17 +00:00
|
|
|
}:
|
|
|
|
|
2017-04-27 06:24:55 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "pytest-httpbin";
|
2018-01-20 10:52:54 +00:00
|
|
|
version = "0.3.0";
|
2017-04-26 17:02:17 +00:00
|
|
|
|
2017-04-27 06:24:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kevin1024";
|
|
|
|
repo = "pytest-httpbin";
|
|
|
|
rev = "v${version}";
|
2018-01-20 10:52:54 +00:00
|
|
|
sha256 = "0p86ljx775gxxicscs1dydmmx92r1g9bs00vdvxrsl3qdll1ksfm";
|
2017-04-26 17:02:17 +00:00
|
|
|
};
|
|
|
|
|
2018-01-20 10:52:54 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-04-26 17:02:17 +00:00
|
|
|
|
2017-05-07 10:55:45 +00:00
|
|
|
propagatedBuildInputs = [ flask decorator httpbin six requests ];
|
2017-04-26 17:02:17 +00:00
|
|
|
|
2018-02-09 19:37:56 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-06-29 17:41:08 +00:00
|
|
|
# https://github.com/kevin1024/pytest-httpbin/pull/51
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-04-26 17:02:17 +00:00
|
|
|
meta = {
|
2017-04-27 06:24:55 +00:00
|
|
|
description = "Easily test your HTTP library against a local copy of httpbin.org";
|
|
|
|
homepage = https://github.com/kevin1024/pytest-httpbin;
|
2017-04-26 17:02:17 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|