1{
2 lib,
3 appdirs,
4 buildPythonPackage,
5 distro,
6 fetchFromGitHub,
7 filelock,
8 pytestCheckHook,
9 pytest-mock,
10 pythonOlder,
11 requests,
12 setuptools-scm,
13}:
14
15buildPythonPackage rec {
16 pname = "iterative-telemtry";
17 version = "0.0.10";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "iterative";
24 repo = "telemetry-python";
25 tag = version;
26 hash = "sha256-+l9JH9MbN+Pai3MIcKZJObzoPGhQipfMd7T8v4SoSws=";
27 };
28
29 build-system = [ setuptools-scm ];
30
31 dependencies = [
32 requests
33 appdirs
34 filelock
35 distro
36 ];
37
38 nativeCheckInputs = [
39 pytestCheckHook
40 pytest-mock
41 ];
42
43 pythonImportsCheck = [ "iterative_telemetry" ];
44
45 meta = with lib; {
46 description = "Common library to send usage telemetry";
47 homepage = "https://github.com/iterative/iterative-telemetry";
48 changelog = "https://github.com/iterative/iterative-telemetry/releases/tag/${src.tag}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ melling ];
51 };
52}