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