1{ buildPythonPackage
2, lib
3, fetchFromGitHub
4, pytest
5, flask
6, decorator
7, httpbin
8, six
9, requests
10}:
11
12buildPythonPackage rec {
13 pname = "pytest-httpbin";
14 version = "0.3.0";
15
16 src = fetchFromGitHub {
17 owner = "kevin1024";
18 repo = "pytest-httpbin";
19 rev = "v${version}";
20 sha256 = "0p86ljx775gxxicscs1dydmmx92r1g9bs00vdvxrsl3qdll1ksfm";
21 };
22
23 checkInputs = [ pytest ];
24
25 propagatedBuildInputs = [ flask decorator httpbin six requests ];
26
27 checkPhase = ''
28 py.test
29 '';
30
31 meta = {
32 description = "Easily test your HTTP library against a local copy of httpbin.org";
33 homepage = https://github.com/kevin1024/pytest-httpbin;
34 license = lib.licenses.mit;
35 };
36}
37