From 50d08c8985d7d9bd4b0c533a7f013e263c151fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 2 Jun 2025 19:45:41 -0700 Subject: [PATCH] python3Packages.anchor-kr: modernize --- .../python-modules/anchor-kr/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/anchor-kr/default.nix b/pkgs/development/python-modules/anchor-kr/default.nix index 10828482b830..563589c651f0 100644 --- a/pkgs/development/python-modules/anchor-kr/default.nix +++ b/pkgs/development/python-modules/anchor-kr/default.nix @@ -2,11 +2,12 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, }: buildPythonPackage { - pname = "anchor"; - version = "3"; - format = "setuptools"; + pname = "anchor-kr"; + version = "0.1.3"; + pyproject = true; src = fetchFromGitHub { owner = "justfoolingaround"; @@ -16,12 +17,14 @@ buildPythonPackage { hash = "sha256-t75IFBSz6ncHRqXRxbrM9EQdr8xPXjSd9di+/y2LegE="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "anchor" ]; - meta = with lib; { + meta = { description = "Python library for scraping"; homepage = "https://github.com/justfoolingaround/anchor"; - license = licenses.unfree; - maintainers = with maintainers; [ passivelemon ]; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ passivelemon ]; }; }