46 lines
981 B
Nix
46 lines
981 B
Nix
{
|
|
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 ];
|
|
};
|
|
})
|