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