1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 freezegun,
5 httmock,
6 lib,
7 pytestCheckHook,
8 requests,
9 setuptools,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "snowplow-tracker";
15 version = "1.1.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "snowplow";
20 repo = "snowplow-python-tracker";
21 tag = version;
22 hash = "sha256-GfKMoMUUOxiUcUVdDc6YGgO+CVRvFjDtqQU/FrTO41U=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 requests
29 typing-extensions
30 ];
31
32 pythonImportsCheck = [ "snowplow_tracker" ];
33
34 nativeCheckInputs = [
35 httmock
36 freezegun
37 pytestCheckHook
38 ];
39
40 meta = {
41 changelog = "https://github.com/snowplow/snowplow-python-tracker/blob/${src.tag}/CHANGES.txt";
42 description = "Add analytics to your Python and Django apps, webapps and games";
43 homepage = "https://github.com/snowplow/snowplow-python-tracker";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 };
47}