python311Packages.aiohappyeyeballs: init at 2.3.0
Modul for connecting with Happy Eyeballs https://github.com/bdraco/aiohappyeyeballs
This commit is contained in:
parent
79ddf33f84
commit
d08a3154a2
54
pkgs/development/python-modules/aiohappyeyeballs/default.nix
Normal file
54
pkgs/development/python-modules/aiohappyeyeballs/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohappyeyeballs";
|
||||
version = "2.3.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = "aiohappyeyeballs";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-LMvELnN6Sy6DssXfH6fQ84N2rhdjqB8AlikTMidrjT4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aiohappyeyeballs"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Test has typos
|
||||
"tests/test_impl.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modul for connecting with Happy Eyeballs";
|
||||
homepage = "https://github.com/bdraco/aiohappyeyeballs";
|
||||
changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.psfl;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -218,6 +218,8 @@ self: super: with self; {
|
||||
|
||||
aiogram = callPackage ../development/python-modules/aiogram { };
|
||||
|
||||
aiohappyeyeballs = callPackage ../development/python-modules/aiohappyeyeballs { };
|
||||
|
||||
aioharmony = callPackage ../development/python-modules/aioharmony { };
|
||||
|
||||
aiohomekit = callPackage ../development/python-modules/aiohomekit { };
|
||||
|
Loading…
Reference in New Issue
Block a user