blob: cfa24fdfe528bd48bb84944f2c8ec67d94a09460 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ buildPythonPackage
, lib
, fetchFromGitHub
, pytest
, flask
, decorator
, httpbin
, six
, requests
}:
buildPythonPackage rec {
pname = "pytest-httpbin";
version = "0.3.0";
src = fetchFromGitHub {
owner = "kevin1024";
repo = "pytest-httpbin";
rev = "v${version}";
sha256 = "0p86ljx775gxxicscs1dydmmx92r1g9bs00vdvxrsl3qdll1ksfm";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ flask decorator httpbin six requests ];
checkPhase = ''
py.test
'';
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;
};
}
|