Files
2026-05-08 18:21:59 +08:00

37 lines
944 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "amplitude-analytics";
version = "1.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "amplitude";
repo = "Amplitude-Python";
tag = "v${finalAttrs.version}";
hash = "sha256-on4TJPiPyznYkBeJsTd7W59KhN7UaSX5+XJaSjkqFaE=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "amplitude" ];
meta = {
description = "Official Amplitude backend Python SDK for server-side instrumentation";
homepage = "https://github.com/amplitude/Amplitude-Python";
downloadPage = "https://github.com/amplitude/Amplitude-Python/releases";
changelog = "https://github.com/amplitude/Amplitude-Python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ prince213 ];
};
})