nixpkgs-suyu/pkgs/development/python-modules/pytest-httpbin/default.nix
2017-04-27 08:33:38 +02:00

36 lines
735 B
Nix

{ buildPythonPackage
, lib
, fetchFromGitHub
, pytest
, flask
, decorator
, httpbin
, six
, requests2
}:
buildPythonPackage rec {
name = "pytest-httpbin-${version}";
version = "0.2.3";
src = fetchFromGitHub {
owner = "kevin1024";
repo = "pytest-httpbin";
rev = "v${version}";
sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
};
checkPhase = ''
py.test -k "not test_chunked_encoding"
'';
buildInputs = [ pytest ];
propagatedBuildInputs = [ flask decorator httpbin six requests2 ];
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;
};
}