From 74b2ec8fedff97c69a3f6562e169f51cd2e3b160 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 18 May 2025 10:26:32 +0200 Subject: [PATCH] python312Packages.hole: 0.8.0 -> 0.9.0 Diff: https://github.com/home-assistant-ecosystem/python-hole/compare/refs/tags/0.8.0...refs/tags/0.9.0 Changelog: https://github.com/home-assistant-ecosystem/python-hole/releases/tag/0.9.0 --- .../python-modules/hole/default.nix | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/hole/default.nix b/pkgs/development/python-modules/hole/default.nix index 0f4b1aef89e2..5a1435e89164 100644 --- a/pkgs/development/python-modules/hole/default.nix +++ b/pkgs/development/python-modules/hole/default.nix @@ -1,30 +1,31 @@ { lib, aiohttp, - async-timeout, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "hole"; - version = "0.8.0"; - format = "setuptools"; + version = "0.9.0"; + pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.12"; - src = fetchPypi { - inherit pname version; - hash = "sha256-zkghLJe1SzN2qOeL23+T2ISjGkuODd9tJA1tO3hw2a0="; + src = fetchFromGitHub { + owner = "home-assistant-ecosystem"; + repo = "python-hole"; + tag = version; + hash = "sha256-yyqLbnW49R7f8C0IBL8z9Sq69TtaS5Ng2VQLJofNqcI="; }; - propagatedBuildInputs = [ - aiohttp - async-timeout - ]; + build-system = [ setuptools ]; - # no tests are present + dependencies = [ aiohttp ]; + + # Module has no tests doCheck = false; pythonImportsCheck = [ "hole" ]; @@ -32,8 +33,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python API for interacting with a Pihole instance"; homepage = "https://github.com/home-assistant-ecosystem/python-hole"; - changelog = "https://github.com/home-assistant-ecosystem/python-hole/releases/tag/${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/home-assistant-ecosystem/python-hole/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }