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.8"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "iterative"; 24 repo = "telemetry-python"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-jD1AyQTdz/NfTRpvEuTE/gUfgNIhNlnimuCks5ImhwA="; 27 }; 28 29 nativeBuildInputs = [ setuptools-scm ]; 30 31 propagatedBuildInputs = [ 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/${version}"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ melling ]; 51 }; 52}