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