1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 lxml, 7 pytestCheckHook, 8 python-dateutil, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "tcxparser"; 14 version = "2.4.0-r1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "vkurup"; 21 repo = "python-tcxparser"; 22 tag = version; 23 hash = "sha256-lQczTuxmxu4nCPJsgblrW2RXST7kvhtPnscemwXCx0Y="; 24 }; 25 26 build-system = [ 27 setuptools 28 ]; 29 30 dependencies = [ 31 lxml 32 python-dateutil 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "tcxparser" ]; 38 39 meta = with lib; { 40 description = "Simple parser for Garmin TCX files"; 41 homepage = "https://github.com/vkurup/python-tcxparser"; 42 license = licenses.bsd2; 43 maintainers = with maintainers; [ firefly-cpp ]; 44 }; 45}