Unverified Commit ac4ee727 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.onepassword-sdk: init at 0.4.1b1 (#492333)

parents e7c02e4d 2b2f3872
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  pydantic,
}:

buildPythonPackage (finalAttrs: {
  pname = "onepassword-sdk";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "1Password";
    repo = "onepassword-sdk-python";
    tag = "v${finalAttrs.version}";
    hash = "sha256-mMmHC5zBY1w+Y+NAZJkP7m1CqErwCv2bMNAo1TTNm6E=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    pydantic
  ];

  # Tests require a live 1Password service account token.
  doCheck = false;

  pythonImportsCheck = [ "onepassword" ];

  meta = {
    description = "1Password Python SDK for programmatic secret management";
    homepage = "https://github.com/1Password/onepassword-sdk-python";
    changelog = "https://github.com/1Password/onepassword-sdk-python/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ mahyarmirrashed ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -11274,6 +11274,8 @@ self: super: with self; {
  onedrive-personal-sdk = callPackage ../development/python-modules/onedrive-personal-sdk { };
  onepassword-sdk = callPackage ../development/python-modules/onepassword-sdk { };
  onetimepad = callPackage ../development/python-modules/onetimepad { };
  onetimepass = callPackage ../development/python-modules/onetimepass { };