From 74ab1866fe5b6f945bc9271ce6f2497542cb2de3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 19 Nov 2025 01:19:29 +0100 Subject: [PATCH] python313Packages.unicrypto: modernize --- .../python-modules/unicrypto/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/unicrypto/default.nix b/pkgs/development/python-modules/unicrypto/default.nix index 2c1b9c4af3b7..774a43c98b91 100644 --- a/pkgs/development/python-modules/unicrypto/default.nix +++ b/pkgs/development/python-modules/unicrypto/default.nix @@ -4,15 +4,13 @@ fetchFromGitHub, pycryptodome, pycryptodomex, - pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "unicrypto"; version = "0.0.12"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "skelsec"; @@ -21,7 +19,9 @@ buildPythonPackage rec { hash = "sha256-RYwovFMalBNDPDEVjQ/8/N7DkOMiyeEQ5ESdgCK8RW8="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ pycryptodome pycryptodomex ]; @@ -34,8 +34,8 @@ buildPythonPackage rec { meta = with lib; { description = "Unified interface for cryptographic libraries"; homepage = "https://github.com/skelsec/unicrypto"; - changelog = "https://github.com/skelsec/unicrypto/releases/tag/${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/skelsec/unicrypto/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }