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