From f18e60d4ed03fa2e4db9fd02c38064718ab0f49f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 8 Apr 2026 12:24:12 +0200 Subject: [PATCH] python3Packages.arc4: modernize --- pkgs/development/python-modules/arc4/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/arc4/default.nix b/pkgs/development/python-modules/arc4/default.nix index dbeec5c0df60..2f50d18d0100 100644 --- a/pkgs/development/python-modules/arc4/default.nix +++ b/pkgs/development/python-modules/arc4/default.nix @@ -3,20 +3,23 @@ buildPythonPackage, fetchFromGitHub, pytestCheckHook, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "arc4"; version = "0.5.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "manicmaniac"; repo = "arc4"; - rev = version; + tag = finalAttrs.version; hash = "sha256-kEgyZQmVdOmD/KkmEKxgZb9Hj0jGJswCJI7Np5TI1K4="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "arc4" ]; @@ -24,7 +27,7 @@ buildPythonPackage rec { meta = { description = "ARCFOUR (RC4) cipher implementation"; homepage = "https://github.com/manicmaniac/arc4"; - license = with lib.licenses; [ bsd3 ]; + license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ fab ]; }; -} +})