1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "tcxreader"; 10 version = "0.4.4"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "alenrajsp"; 17 repo = "tcxreader"; 18 rev = "v${version}"; 19 hash = "sha256-UJ6F+GcdF0b2gALQWepLyCnWm+6RKBRnBt1eJNoRRzo="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "tcxreader" 28 ]; 29 30 meta = with lib; { 31 description = "A reader for Garmins TCX file format"; 32 homepage = "https://github.com/alenrajsp/tcxreader"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ firefly-cpp ]; 35 }; 36} 37