1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonRelaxDepsHook, 6 flit-core, 7 certifi, 8 cryptography, 9 python-dateutil, 10 typing-extensions, 11 urllib3, 12}: 13 14let 15 pname = "nethsm"; 16 version = "1.1.0"; 17in 18 19buildPythonPackage { 20 inherit pname version; 21 pyproject = true; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-CQhheHQ0BlfznKjoOSRvbDtnlTvv/SLtl0GWd7LUSt8="; 26 }; 27 28 propagatedBuildInputs = [ 29 certifi 30 cryptography 31 python-dateutil 32 typing-extensions 33 urllib3 34 ]; 35 36 nativeBuildInputs = [ 37 flit-core 38 pythonRelaxDepsHook 39 ]; 40 41 pythonRelaxDeps = true; 42 43 pythonImportsCheck = [ "nethsm" ]; 44 45 meta = with lib; { 46 description = "Client-side Python SDK for NetHSM"; 47 homepage = "https://github.com/Nitrokey/nethsm-sdk-py"; 48 changelog = "https://github.com/Nitrokey/nethsm-sdk-py/releases/tag/v${version}"; 49 license = with licenses; [ asl20 ]; 50 maintainers = with maintainers; [ frogamic ]; 51 }; 52}