Merge pull request #109427 from fabaff/bump-aresponses
python3Packages.aresponses: 2.0.0 -> 2.1.0
This commit is contained in:
commit
511b87c7a9
@ -1,23 +1,24 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
# propagatedBuildInputs
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
# buildInputs
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, isPy3k
|
||||||
, pytest
|
, pytest
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, isPy3k
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aresponses";
|
pname = "aresponses";
|
||||||
version = "2.0.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
disabled = !isPy3k;
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "CircleUp";
|
||||||
sha256 = "58693a6b715edfa830a20903ee1d1b2a791251923f311b3bebf113e8ff07bb35";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0dc1y4s6kpmr0ar63kkyghvisgbmb8qq5wglmjclrpzd5180mjcl";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -29,13 +30,24 @@ buildPythonPackage rec {
|
|||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests only distributed via git repository, not pypi
|
checkInputs = [
|
||||||
doCheck = false;
|
aiohttp
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-asyncio
|
||||||
|
];
|
||||||
|
|
||||||
|
# Disable tests which requires network access
|
||||||
|
disabledTests = [
|
||||||
|
"test_foo"
|
||||||
|
"test_passthrough"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aresponses" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Asyncio testing server";
|
description = "Asyncio testing server";
|
||||||
homepage = "https://github.com/circleup/aresponses";
|
homepage = "https://github.com/circleup/aresponses";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.makefu ];
|
maintainers = with maintainers; [ makefu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
{ lib
|
||||||
, aiohttp, deepmerge, yarl
|
, aiohttp
|
||||||
, aresponses, pytest, pytest-asyncio, pytestcov }:
|
, aresponses
|
||||||
|
, buildPythonPackage
|
||||||
|
, deepmerge
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytestcov
|
||||||
|
, yarl
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyipp";
|
pname = "pyipp";
|
||||||
version = "0.11.0";
|
version = "0.11.0";
|
||||||
disabled = isPy27;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ctalkington";
|
owner = "ctalkington";
|
||||||
@ -22,14 +29,26 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
aresponses
|
aresponses
|
||||||
pytest
|
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytestcov
|
pytestcov
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
# Some tests are failing due to encoding issues
|
||||||
pytest -q .
|
# https://github.com/ctalkington/python-ipp/issues/121
|
||||||
'';
|
disabledTests = [
|
||||||
|
"test_internal_session"
|
||||||
|
"test_request_port"
|
||||||
|
"est_http_error426"
|
||||||
|
"test_unexpected_response"
|
||||||
|
"test_printer"
|
||||||
|
"test_raw"
|
||||||
|
"test_ipp_request"
|
||||||
|
"test_request_tls"
|
||||||
|
"test_ipp_error_0x0503"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pyipp" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
|
description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
|
||||||
|
Loading…
Reference in New Issue
Block a user