nixpkgs-suyu/pkgs/development/python-modules/pytest-httpbin/default.nix

36 lines
649 B
Nix
Raw Normal View History

2017-04-26 19:02:17 +02:00
{ buildPythonPackage
, lib
, fetchPypi
, pytest
, httpbin
, six
2017-04-26 19:02:17 +02:00
}:
buildPythonPackage rec {
pname = "pytest-httpbin";
version = "1.0.0";
2017-04-26 19:02:17 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "0wlvw5qgkax7f0i5ks1562s37h2hdmn5yxnp1rajcc2289zm9knq";
2017-04-26 19:02:17 +02:00
};
checkInputs = [ pytest ];
2017-04-26 19:02:17 +02:00
propagatedBuildInputs = [ httpbin six ];
2017-04-26 19:02:17 +02:00
checkPhase = ''
py.test
'';
# https://github.com/kevin1024/pytest-httpbin/pull/51
doCheck = false;
2017-04-26 19:02:17 +02:00
meta = {
description = "Easily test your HTTP library against a local copy of httpbin.org";
homepage = https://github.com/kevin1024/pytest-httpbin;
2017-04-26 19:02:17 +02:00
license = lib.licenses.mit;
};
}