1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 python-json-logger, 7 jsonschema, 8 ruamel-yaml, 9 traitlets, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "jupyter-telemetry"; 15 version = "0.1.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "jupyter"; 20 repo = "telemetry"; 21 tag = "v${version}"; 22 hash = "sha256-WxTlTs6gE9pa0hbl29Zvwikobz1/2JQ3agYO7WxyZ2E="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 python-json-logger 29 jsonschema 30 ruamel-yaml 31 traitlets 32 ]; 33 34 pythonImportsCheck = [ "jupyter_telemetry" ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 disabledTests = [ 39 # AssertionError 40 "test_record_event" 41 "test_unique_logger_instances" 42 ]; 43 44 meta = { 45 description = "Telemetry for Jupyter Applications and extensions"; 46 homepage = "https://jupyter-telemetry.readthedocs.io/"; 47 license = lib.licenses.bsd3; 48 maintainers = with lib.maintainers; [ chiroptical ]; 49 }; 50}