mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-13 16:53:53 +00:00
37 lines
944 B
Nix
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 ];
|
|
};
|
|
})
|