From 197d700cfd530db38ab8c03ce824bcc9ec765062 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 25 May 2025 17:35:17 +0200 Subject: [PATCH] python3Packages.aiodocker: unstable-2022-01-20 -> 0.24.0 https://github.com/aio-libs/aiodocker/releases/tag/v0.24.0 --- .../python-modules/aiodocker/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aiodocker/default.nix b/pkgs/development/python-modules/aiodocker/default.nix index 2aed190d8490..477fd65a3bfe 100644 --- a/pkgs/development/python-modules/aiodocker/default.nix +++ b/pkgs/development/python-modules/aiodocker/default.nix @@ -2,33 +2,39 @@ lib, buildPythonPackage, fetchFromGitHub, + hatchling, + hatch-vcs, aiohttp, - typing-extensions, }: -buildPythonPackage { +buildPythonPackage rec { pname = "aiodocker"; - # unstable includes support for python 3.10+ - version = "unstable-2022-01-20"; - format = "setuptools"; + version = "0.24.0"; + pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "aiodocker"; - rev = "f1dbdc3d42147f4c2ab5e6802acf6f7d0f885be4"; - sha256 = "RL5Ck4wsBZO88afmoojeFKbdIeCjDo/SwNqUcERH6Ls="; + tag = "v${version}"; + hash = "sha256-qCOAM4ZyJoLc91FjQpBO97Nyfo1ZOEi0nhXZ7nwLsHk="; }; - propagatedBuildInputs = [ + build-system = [ + hatchling + hatch-vcs + ]; + + dependencies = [ aiohttp - typing-extensions ]; # tests require docker daemon doCheck = false; + pythonImportsCheck = [ "aiodocker" ]; meta = with lib; { + changelog = "https://github.com/aio-libs/aiodocker/releases/tag/${src.tag}"; description = "Docker API client for asyncio"; homepage = "https://github.com/aio-libs/aiodocker"; license = licenses.asl20;