{ lib, buildPythonPackage, fetchFromGitHub, marshmallow-dataclass, marshmallow, pdm-backend, pytestCheckHook, requests, responses, setuptools, typing-extensions, vcrpy, }: buildPythonPackage rec { pname = "pygitguardian"; version = "1.28.0"; pyproject = true; src = fetchFromGitHub { owner = "GitGuardian"; repo = "py-gitguardian"; tag = "v${version}"; hash = "sha256-56Z0peJcjBbNX51MLLaIKcD9Qg+5q+5I0gKRu84/8TM="; }; pythonRelaxDeps = [ "marshmallow-dataclass" "setuptools" ]; build-system = [ pdm-backend ]; dependencies = [ marshmallow marshmallow-dataclass requests setuptools typing-extensions ]; nativeCheckInputs = [ pytestCheckHook vcrpy responses ]; pythonImportsCheck = [ "pygitguardian" ]; env.GITGUARDIAN_API_KEY = "Test key for tests"; meta = { description = "Library to access the GitGuardian API"; homepage = "https://github.com/GitGuardian/py-gitguardian"; changelog = "https://github.com/GitGuardian/py-gitguardian/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; }