From bbf44b177afcfafc1ea67b24287051dccfd16893 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Mar 2025 09:47:43 +0100 Subject: [PATCH] python312Packages.nethsm: refactor --- .../python-modules/nethsm/default.nix | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/nethsm/default.nix b/pkgs/development/python-modules/nethsm/default.nix index 5fabc4cf47e3..9adb0b7eb947 100644 --- a/pkgs/development/python-modules/nethsm/default.nix +++ b/pkgs/development/python-modules/nethsm/default.nix @@ -10,13 +10,9 @@ urllib3, }: -let +buildPythonPackage rec { pname = "nethsm"; version = "1.3.0"; -in - -buildPythonPackage { - inherit pname version; pyproject = true; src = fetchPypi { @@ -24,7 +20,11 @@ buildPythonPackage { hash = "sha256-F0jSlT/xM8xaQWfUp87p+2RY/8hG7vRq8/VJ4a5Fkhw="; }; - propagatedBuildInputs = [ + pythonRelaxDeps = true; + + build-system = [ flit-core ]; + + dependencies = [ certifi cryptography python-dateutil @@ -32,19 +32,13 @@ buildPythonPackage { urllib3 ]; - nativeBuildInputs = [ - flit-core - ]; - - pythonRelaxDeps = true; - pythonImportsCheck = [ "nethsm" ]; meta = with lib; { description = "Client-side Python SDK for NetHSM"; homepage = "https://github.com/Nitrokey/nethsm-sdk-py"; changelog = "https://github.com/Nitrokey/nethsm-sdk-py/releases/tag/v${version}"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ frogamic ]; }; }