Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / hole / default.nix
blob37ac10cdfcafacbdb9dbd02ae3e5ce43bbe6d662
1 { lib
2 , aiohttp
3 , async-timeout
4 , buildPythonPackage
5 , fetchPypi
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "hole";
11   version = "0.8.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.8";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-zkghLJe1SzN2qOeL23+T2ISjGkuODd9tJA1tO3hw2a0=";
19   };
21   propagatedBuildInputs = [
22     aiohttp
23     async-timeout
24   ];
26   # no tests are present
27   doCheck = false;
29   pythonImportsCheck = [
30     "hole"
31   ];
33   meta = with lib; {
34     description = "Python API for interacting with a Pihole instance.";
35     homepage = "https://github.com/home-assistant-ecosystem/python-hole";
36     changelog = "https://github.com/home-assistant-ecosystem/python-hole/releases/tag/${version}";
37     license = with licenses; [ mit ];
38     maintainers = with maintainers; [ fab ];
39   };