Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiovodafone / default.nix
blobaf193fa8dc69a8658196a2d9066c7630f35f250d
1 { lib
2 , aiohttp
3 , beautifulsoup4
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "aiovodafone";
13   version = "0.4.2";
14   format = "pyproject";
16   disabled = pythonOlder "3.10";
18   src = fetchFromGitHub {
19     owner = "chemelli74";
20     repo = "aiovodafone";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-sWONjWchXu5pRFXY/ZhOXvF0z/qUc1LjqcaSiVPA1MU=";
23   };
25   postPatch = ''
26     substituteInPlace pyproject.toml \
27       --replace " --cov=aiovodafone --cov-report=term-missing:skip-covered" ""
28   '';
30   nativeBuildInputs = [
31     poetry-core
32   ];
34   propagatedBuildInputs = [
35     aiohttp
36     beautifulsoup4
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [
44     "aiovodafone"
45   ];
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   };