1{ 2 lib, 3 aiohttp, 4 beautifulsoup4, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "aiovodafone"; 14 version = "0.6.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "chemelli74"; 21 repo = "aiovodafone"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-sy7/nCthmfI0WdBkwBU83fifcYTe9zUBOpxV7RX9F6w="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail " --cov=aiovodafone --cov-report=term-missing:skip-covered" "" 29 ''; 30 31 build-system = [ poetry-core ]; 32 33 dependencies = [ 34 aiohttp 35 beautifulsoup4 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "aiovodafone" ]; 41 42 meta = with lib; { 43 description = "Library to control Vodafon Station"; 44 homepage = "https://github.com/chemelli74/aiovodafone"; 45 changelog = "https://github.com/chemelli74/aiovodafone/blob/v${version}/CHANGELOG.md"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}