Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, certifi, cryptography, docker, fetchFromGitHub, flit-core, podman, pycryptodome, pytestCheckHook, python-dateutil, typing-extensions, urllib3,}:
buildPythonPackage rec { pname = "nethsm"; version = "1.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "Nitrokey"; repo = "nethsm-sdk-py"; tag = "v${version}"; hash = "sha256-cbBYElR2J35ZHW5zvL9jlMg9KSerqjFBLsg5QdmqAoA="; };
pythonRelaxDeps = true;
build-system = [ flit-core ];
dependencies = [ certifi cryptography python-dateutil typing-extensions urllib3 ];
nativeCheckInputs = [ docker podman pycryptodome pytestCheckHook ];
pythonImportsCheck = [ "nethsm" ];
disabledTestPaths = [ # Tests require a running Docker instance "tests/test_nethsm_config.py" "tests/test_nethsm_keys.py" "tests/test_nethsm_namespaces.py" "tests/test_nethsm_other.py" "tests/test_nethsm_system.py" "tests/test_nethsm_users.py" ];
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/${src.tag}"; license = licenses.asl20; maintainers = with maintainers; [ frogamic ]; };}