python3Packages.adguardhome: 0.4.2 -> 0.5.0

This commit is contained in:
Fabian Affolter 2021-03-14 01:35:33 +01:00
parent 916536210d
commit 89ca7d44c0

View File

@ -1,24 +1,49 @@
{ aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, isPy3k, lib { lib
, pytest-asyncio, pytestCheckHook, yarl }: , aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "adguardhome"; pname = "adguardhome";
version = "0.4.2"; version = "0.5.0";
format = "pyproject";
disabled = !isPy3k; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "frenck"; owner = "frenck";
repo = "python-${pname}"; repo = "python-${pname}";
rev = "v${version}"; rev = "v${version}";
sha256 = "0lcf3yg27amrnqvgn5nw4jn2j0vj4yfmyl5p5yncmn7dh6bdbsp8"; sha256 = "sha256-f8uZF4DXbfiL1nL82shjGNpo6lXSUomRgO1YnNT/GDw=";
}; };
propagatedBuildInputs = [ aiohttp yarl ]; nativeBuildInputs = [ poetry-core ];
checkInputs = [ aresponses pytest-asyncio pytestCheckHook ];
propagatedBuildInputs = [
aiohttp
yarl
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml --replace "--cov" ""
'';
pythonImportsCheck = [ "adguardhome" ];
meta = with lib; { meta = with lib; {
description = "Asynchronous Python client for the AdGuard Home API."; description = "Python client for the AdGuard Home API";
homepage = "https://github.com/frenck/python-adguardhome"; homepage = "https://github.com/frenck/python-adguardhome";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ jamiemagee ]; maintainers = with maintainers; [ jamiemagee ];