depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-httpbin/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

35 lines
651 B
Nix

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