2017-04-26 18:02:17 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
2017-04-27 07:24:55 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, flask
|
|
|
|
, decorator
|
|
|
|
, httpbin
|
|
|
|
, six
|
|
|
|
, requests2
|
2017-04-26 18:02:17 +01:00
|
|
|
}:
|
|
|
|
|
2017-04-27 07:24:55 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "pytest-httpbin-${version}";
|
2017-04-26 18:02:17 +01:00
|
|
|
version = "0.2.3";
|
|
|
|
|
2017-04-27 07:24:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kevin1024";
|
|
|
|
repo = "pytest-httpbin";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
|
2017-04-26 18:02:17 +01:00
|
|
|
};
|
|
|
|
|
2017-04-27 07:24:55 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test -k "not test_chunked_encoding"
|
|
|
|
'';
|
2017-04-26 18:02:17 +01:00
|
|
|
|
2017-04-27 07:24:55 +01:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ flask decorator httpbin six requests2 ];
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|