pythonPackages.pytest-httpbin: correct `meta`; tests
This commit is contained in:
parent
e66c9221d6
commit
c797550957
|
@ -1,29 +1,35 @@
|
||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, lib
|
, lib
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
, pythonPackages
|
, pytest
|
||||||
|
, flask
|
||||||
|
, decorator
|
||||||
|
, httpbin
|
||||||
|
, six
|
||||||
|
, requests2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
pname = "pytest-httpbin";
|
name = "pytest-httpbin-${version}";
|
||||||
version = "0.2.3";
|
version = "0.2.3";
|
||||||
in buildPythonPackage rec {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
owner = "kevin1024";
|
||||||
sha256 = "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5";
|
repo = "pytest-httpbin";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0j3n12jjy8cm0va8859wqra6abfyajrgh2qj8bhcngf3a72zl9ks";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [ pytest httpbin ];
|
checkPhase = ''
|
||||||
propagatedBuildInputs = [];
|
py.test -k "not test_chunked_encoding"
|
||||||
|
'';
|
||||||
|
|
||||||
# Tests in neither the archive nor the repo
|
buildInputs = [ pytest ];
|
||||||
doCheck = false;
|
propagatedBuildInputs = [ flask decorator httpbin six requests2 ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "py.test plugin to store test expectations and mark tests based on them";
|
description = "Easily test your HTTP library against a local copy of httpbin.org";
|
||||||
homepage = https://github.com/gsnedders/pytest-expect;
|
homepage = https://github.com/kevin1024/pytest-httpbin;
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue