mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 16:40:09 +03:00
python3Packages.pytest-httpbin: switch to pytestCheckHook
This commit is contained in:
parent
b4852980bd
commit
3bfaef643b
@ -1,8 +1,10 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
, lib
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pytest
|
|
||||||
, httpbin
|
, httpbin
|
||||||
|
, pytest
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -15,21 +17,28 @@ buildPythonPackage rec {
|
|||||||
sha256 = "9f73320f97d33cc20bc8a08cb945372948de51402559e87e74e92c56b48da0d7";
|
sha256 = "9f73320f97d33cc20bc8a08cb945372948de51402559e87e74e92c56b48da0d7";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
buildInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ httpbin six ];
|
propagatedBuildInputs = [
|
||||||
|
httpbin
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
py.test
|
pytestCheckHook
|
||||||
'';
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
# https://github.com/kevin1024/pytest-httpbin/pull/51
|
pythonImportsCheck = [
|
||||||
doCheck = false;
|
"pytest_httpbin"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Easily test your HTTP library against a local copy of httpbin.org";
|
description = "Test your HTTP library against a local copy of httpbin.org";
|
||||||
homepage = "https://github.com/kevin1024/pytest-httpbin";
|
homepage = "https://github.com/kevin1024/pytest-httpbin";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user