1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "tcxreader";
12 version = "0.4.11";
13 pyproject = true;
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "alenrajsp";
19 repo = "tcxreader";
20 tag = "v${version}";
21 hash = "sha256-Iz0VQSukF5CI8lKaxKU4HEmU+n0EbQkuKmduOfsZ/GM=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "tcxreader" ];
29
30 meta = with lib; {
31 description = "Reader for Garmin’s TCX file format";
32 homepage = "https://github.com/alenrajsp/tcxreader";
33 changelog = "https://github.com/alenrajsp/tcxreader/blob/${src.tag}/CHANGELOG.md";
34 license = licenses.mit;
35 maintainers = with maintainers; [ firefly-cpp ];
36 };
37}