about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-httpbin/default.nix
blob: 836da1e157ffa4b9af932bd9a073b90985491323 (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
{ 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;
  };
}