summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/amplitude-analytics/default.nix
blob: 0f506a7e53228127d8b4aee4001f0b0d7aacdc10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 ];
  };
})