depot/third_party/nixpkgs/pkgs/development/python-modules/hole/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

39 lines
735 B
Nix

{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "hole";
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-yZpzGfB5RTWaRn2DmT+cbSDC0pL16FyUc0Nr/V6TlhU=";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
# no tests are present
doCheck = false;
pythonImportsCheck = [
"hole"
];
meta = with lib; {
description = "Python API for interacting with a Pihole instance.";
homepage = "https://github.com/home-assistant-ecosystem/python-hole";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}