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