1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pytest-httpbin/default.nix

41 lines
769 B
Nix
Raw Normal View History

2017-04-26 18:02:17 +01:00
{ buildPythonPackage
, lib
, fetchFromGitHub
, pytest
, flask
, decorator
, httpbin
, six
, requests
2017-04-26 18:02:17 +01:00
}:
buildPythonPackage rec {
pname = "pytest-httpbin";
version = "0.3.0";
2017-04-26 18:02:17 +01:00
src = fetchFromGitHub {
owner = "kevin1024";
repo = "pytest-httpbin";
rev = "v${version}";
sha256 = "0p86ljx775gxxicscs1dydmmx92r1g9bs00vdvxrsl3qdll1ksfm";
2017-04-26 18:02:17 +01:00
};
checkInputs = [ pytest ];
2017-04-26 18:02:17 +01:00
propagatedBuildInputs = [ flask decorator httpbin six requests ];
2017-04-26 18:02:17 +01:00
checkPhase = ''
py.test
'';
# https://github.com/kevin1024/pytest-httpbin/pull/51
doCheck = false;
2017-04-26 18:02:17 +01: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 18:02:17 +01:00
license = lib.licenses.mit;
};
}