python311Packages.nethsm: init at 1.0.0

This commit is contained in:
Dominic Shelton 2023-11-06 17:34:52 +11:00
parent c76b72caa4
commit f28f26fdfa
No known key found for this signature in database
GPG Key ID: AAE070F067EC00A5
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
, flit-core
, certifi
, cryptography
, python-dateutil
, typing-extensions
, urllib3
}:
let
pname = "nethsm";
version = "1.0.0";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sENuSdA4pYt8v2w2RvDkcQLYCP9V0vZOdWOlkNBi3/o=";
};
propagatedBuildInputs = [
certifi
cryptography
python-dateutil
typing-extensions
urllib3
];
nativeBuildInputs = [
flit-core
pythonRelaxDepsHook
];
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 ];
maintainers = with maintainers; [ frogamic ];
};
}

View File

@ -8088,6 +8088,8 @@ self: super: with self; {
netdisco = callPackage ../development/python-modules/netdisco { };
nethsm = callPackage ../development/python-modules/nethsm { };
netifaces = callPackage ../development/python-modules/netifaces { };
netmiko = callPackage ../development/python-modules/netmiko { };