python3Packages.arc4: modernize

This commit is contained in:
Fabian Affolter
2026-04-08 12:24:12 +02:00
committed by GitHub
parent a1ce422efb
commit f18e60d4ed
@@ -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 ];
};
}
})