From 23c9271f84abaedd904168fc7e9dbacffd80cf13 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 21 Sep 2024 22:29:57 +0200 Subject: [PATCH] python312Packages.asyncwhois: 1.1.4 -> 1.1.5 Diff: https://github.com/pogzyb/asyncwhois/compare/refs/tags/v1.1.5...v1.1.5 Changelog: https://github.com/pogzyb/asyncwhois/releases/tag/v1.1.5 --- .../python-modules/asyncwhois/default.nix | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/asyncwhois/default.nix b/pkgs/development/python-modules/asyncwhois/default.nix index f3a0763801a5..460ab2684ec9 100644 --- a/pkgs/development/python-modules/asyncwhois/default.nix +++ b/pkgs/development/python-modules/asyncwhois/default.nix @@ -2,12 +2,12 @@ lib, buildPythonPackage, fetchFromGitHub, + hatchling, pytest-asyncio, pytest-mock, pytestCheckHook, python-socks, pythonOlder, - setuptools, tldextract, whodap, }: @@ -26,18 +26,13 @@ buildPythonPackage rec { hash = "sha256-y5JmAbrk9qJeNYejNcz5nI5bghaetUw1xkD8qgwOkao="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace-fail "python-socks[asyncio]" "python-socks" - ''; - - build-system = [ setuptools ]; + build-system = [ hatchling ]; dependencies = [ python-socks tldextract whodap - ]; + ] ++ python-socks.optional-dependencies.asyncio; nativeCheckInputs = [ pytest-asyncio @@ -68,7 +63,7 @@ buildPythonPackage rec { description = "Python module for retrieving WHOIS information"; homepage = "https://github.com/pogzyb/asyncwhois"; changelog = "https://github.com/pogzyb/asyncwhois/releases/tag/v${version}"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }