python311Packages.aiohappyeyeballs: init at 2.3.0

Happy Eyeballs for pre-resolved hosts
This commit is contained in:
Martin Weinelt 2023-12-14 02:43:46 +01:00
parent 81363cfed6
commit a367c7dc1b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,10 +1,20 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build-system
, poetry-core
# optional-dependencies
, furo
, myst-parser
, sphinx-autobuild
, sphinxHook
# tests
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
@ -21,6 +31,11 @@ buildPythonPackage rec {
hash = "sha256-LMvELnN6Sy6DssXfH6fQ84N2rhdjqB8AlikTMidrjT4=";
};
outputs = [
"out"
"doc"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" ""
@ -28,7 +43,16 @@ buildPythonPackage rec {
nativeBuildInputs = [
poetry-core
];
] ++ passthru.optional-dependencies.docs;
passthru.optional-dependencies = {
docs = [
furo
myst-parser
sphinx-autobuild
sphinxHook
];
};
nativeCheckInputs = [
pytest-asyncio
@ -40,15 +64,15 @@ buildPythonPackage rec {
];
disabledTestPaths = [
# Test has typos
# https://github.com/bdraco/aiohappyeyeballs/issues/30
"tests/test_impl.py"
];
meta = with lib; {
description = "Modul for connecting with Happy Eyeballs";
description = "Happy Eyeballs for pre-resolved hosts";
homepage = "https://github.com/bdraco/aiohappyeyeballs";
changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/${src.rev}/CHANGELOG.md";
license = licenses.psfl;
maintainers = with maintainers; [ fab ];
maintainers = with maintainers; [ fab hexa ];
};
}