Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.httpcore: 0.12.3 -> 0.13.0 #120119

Merged
merged 9 commits into from
May 5, 2021
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/PyRMVtransport/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ buildPythonPackage rec {
pytest-httpx
];

disabledTests = [
# fails with pytest-httpx>=0.12.0
"test__query_rmv_api_fail"
];

meta = with lib; {
homepage = "https://github.com/cgtobi/PyRMVtransport";
description = "Get transport information from opendata.rmv.de";
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/python-modules/aiobotocore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@

buildPythonPackage rec {
pname = "aiobotocore";
version = "1.2.2";
version = "1.3.0";
disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256 = "37c23166603a3bd134e5f6fc22dbbf8c274d4d24c71418fba292ed2cd7a0bf43";
sha256 = "17pcdi69bwdfw2wv3a0fhira5gimw88sp2wf47yqz50z1ckhv2c1";
};

# relax version constraints: aiobotocore works with newer botocore versions
# the pinning used to match some `extras_require` we're not using.
preConfigure = ''
substituteInPlace setup.py --replace 'botocore>=1.17.44,<1.17.45' 'botocore'
postPatch = ''
substituteInPlace setup.py --replace 'botocore>=1.20.49,<1.20.50' 'botocore'
'';

propagatedBuildInputs = [ wrapt aiohttp aioitertools botocore ];
Expand All @@ -31,7 +31,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "aiobotocore" ];

meta = with lib; {
description = "Async client for amazon services using botocore and aiohttp/asyncio.";
description = "Python client for amazon services";
license = licenses.asl20;
homepage = "https://github.com/aio-libs/aiobotocore";
maintainers = with maintainers; [ teh ];
Expand Down
35 changes: 24 additions & 11 deletions pkgs/development/python-modules/aniso8601/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
{ lib, buildPythonPackage, fetchPypi
, dateutil, mock, isPy3k }:
{ lib
, buildPythonPackage
, dateutil
, fetchPypi
, isPy3k
, mock
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "aniso8601";
version = "9.0.1";

meta = with lib; {
description = "Parses ISO 8601 strings.";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = licenses.bsd3;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
};

propagatedBuildInputs = [ dateutil ];
propagatedBuildInputs = [
dateutil
];

checkInputs = lib.optional (!isPy3k) mock;
checkInputs = [
pytestCheckHook
] ++ lib.optional (!isPy3k) mock;

src = fetchPypi {
inherit pname version;
sha256 = "72e3117667eedf66951bb2d93f4296a56b94b078a8a95905a052611fb3f1b973";
pythonImportsCheck = [ "aniso8601" ];

meta = with lib; {
description = "Python Parser for ISO 8601 strings";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}
15 changes: 11 additions & 4 deletions pkgs/development/python-modules/elmax/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@
, httpx
, poetry-core
, pythonOlder
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, yarl
}:

buildPythonPackage rec {
pname = "elmax";
version = "0.1.1";
version = "0.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-elmax";
rev = version;
sha256 = "sha256-vDISJ/CVOjpM+GPF2TCm3/AMFTWTM0b/+ZPCpAEvNvY=";
sha256 = "sha256-Aq/OHxOmtUUmBNlFPu892C8AkTX+Ee0oca7D79InPXQ=";
};

nativeBuildInputs = [ poetry-core ];
Expand All @@ -27,8 +30,12 @@ buildPythonPackage rec {
yarl
];

# Project has no tests
doCheck = false;
checkInputs = [
pytest-asyncio
pytest-httpx
pytestCheckHook
];

pythonImportsCheck = [ "elmax" ];

meta = with lib; {
Expand Down
22 changes: 12 additions & 10 deletions pkgs/development/python-modules/httpcore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@
, h11
, h2
, pproxy
, pytest-asyncio
, pytest-trio
, pytestCheckHook
, pytestcov
, sniffio
, uvicorn
, trustme
, trio
, uvicorn
}:

buildPythonPackage rec {
pname = "httpcore";
version = "0.12.3";
version = "0.13.0";
disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "09hbjc5wzhrnri5y3idxcq329d7jiaxljc7y6npwv9gh9saln109";
sha256 = "sha256-KvqBVQUaF3p2oJz0tt3Bkn2JiKEHqrZ3b6I9f0JK5h8=";
};

propagatedBuildInputs = [
Expand All @@ -33,18 +34,19 @@ buildPythonPackage rec {

checkInputs = [
pproxy
pytest-asyncio
pytest-trio
pytestCheckHook
pytestcov
uvicorn
trustme
trio
uvicorn
];

pytestFlagsArray = [
disabledTestPaths = [
# these tests fail during dns lookups: httpcore.ConnectError: [Errno -2] Name or service not known
"--ignore=tests/test_threadsafety.py"
"--ignore=tests/sync_tests/test_interfaces.py"
"--ignore=tests/sync_tests/test_retries.py"
"tests/test_threadsafety.py"
"tests/sync_tests/test_interfaces.py"
"tests/sync_tests/test_retries.py"
];

pythonImportsCheck = [ "httpcore" ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/httpx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

buildPythonPackage rec {
pname = "httpx";
version = "0.17.1";
version = "0.18.0";
disabled = pythonOlder "3.6";

src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "sha256-P4Uki+vlAgVECBUz9UGvv1ip49jmf0kYbyU2/mkWE3U=";
sha256 = "sha256-6EYBTRXaVHBgW/JzZvWLz55AqgocOyym2FVtu2Nkp/U=";
};

propagatedBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pytest-httpx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

buildPythonPackage rec {
pname = "pytest-httpx";
version = "0.11.0";
version = "0.12.0";

src = fetchFromGitHub {
owner = "Colin-b";
repo = "pytest_httpx";
rev = "v${version}";
sha256 = "08idd3y6khxjqkn46diqvkjvsl4w4pxhl6z1hspbkrj0pqwf9isi";
sha256 = "sha256-Awhsm8jmoCZTBnfrrauLxAEKtpxTzjPMXmx7HR0f/g4=";
};

buildInputs = [ pytest ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/respx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

buildPythonPackage rec {
pname = "respx";
version = "0.16.3";
version = "0.17.0";

src = fetchFromGitHub {
owner = "lundberg";
repo = pname;
rev = version;
sha256 = "0if9sg83rznl37hsjw6pfk78jpxi421g9p21wd92jcd6073g4nbd";
sha256 = "sha256-unGAIsslGXOUHXr0FKzC9bX6+Q3mNGZ9Z/dtjz0gkj4=";
};

# Coverage is under 100 % due to the excluded tests
Expand Down
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/sanic-testing/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ buildPythonPackage rec {
hash = "sha256-hBAq+/BKs0a01M89Nb8HaClqxB+W5PTfjVzef/m9SWs=";
};

postPatch = ''
substituteInPlace setup.py \
--replace 'httpx>=0.16, <0.18' 'httpx' \
--replace 'httpcore==0.12.*' 'httpcore'
'';

propagatedBuildInputs = [ httpx sanic websockets httpcore ];

# `sanic` is explicitly set to null when building `sanic` itself
Expand Down