55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|