python3Packages.amplitude-analytics: init at 1.2.3

This commit is contained in:
Sizhe Zhao
2026-04-28 10:56:35 +08:00
parent 1c61a202a8
commit 95eb8bc485
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,36 @@
{
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 ];
};
})
+2
View File
@@ -734,6 +734,8 @@ self: super: with self; {
ament-package = callPackage ../development/python-modules/ament-package { };
amplitude-analytics = callPackage ../development/python-modules/amplitude-analytics { };
amply = callPackage ../development/python-modules/amply { };
amqp = callPackage ../development/python-modules/amqp { };