Unverified Commit 4680c92b authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.nethsm: 1.2.1 -> 1.3.0 (#392245)

parents 82c100d8 d657ca34
Loading
Loading
Loading
Loading
+34 −17
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  flit-core,
  certifi,
  cryptography,
  docker,
  fetchFromGitHub,
  flit-core,
  podman,
  pycryptodome,
  pytestCheckHook,
  python-dateutil,
  typing-extensions,
  urllib3,
}:

let
buildPythonPackage rec {
  pname = "nethsm";
  version = "1.2.1";
in

buildPythonPackage {
  inherit pname version;
  version = "1.3.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-EPxGJFCGGl3p3yLlM7NH7xtEVS2woRigKJhL57A0gAE=";
  src = fetchFromGitHub {
    owner = "Nitrokey";
    repo = "nethsm-sdk-py";
    tag = "v${version}";
    hash = "sha256-vH5YjS3VO5krCMVQFcEgDhJeCUzo9EzFnBxq+zPuZ68=";
  };

  propagatedBuildInputs = [
  pythonRelaxDeps = true;

  build-system = [ flit-core ];

  dependencies = [
    certifi
    cryptography
    python-dateutil
@@ -32,19 +38,30 @@ buildPythonPackage {
    urllib3
  ];

  nativeBuildInputs = [
    flit-core
  nativeCheckInputs = [
    docker
    podman
    pycryptodome
    pytestCheckHook
  ];

  pythonRelaxDeps = true;

  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/v${version}";
    license = with licenses; [ asl20 ];
    license = licenses.asl20;
    maintainers = with maintainers; [ frogamic ];
  };
}