2024-06-05 15:53:02 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
poetry-core,
|
|
|
|
|
pytestCheckHook,
|
|
|
|
|
pythonOlder,
|
2022-09-09 14:08:57 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "tcxreader";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
version = "0.4.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
pyproject = true;
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
|
disabled = pythonOlder "3.6";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "alenrajsp";
|
|
|
|
|
repo = "tcxreader";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
hash = "sha256-qTAqRzrHFj0nEujlkBohLaprIvvkSYhcDoRfqWIJMjo=";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
|
pythonImportsCheck = [ "tcxreader" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
|
description = "Reader for Garmin’s TCX file format";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
homepage = "https://github.com/alenrajsp/tcxreader";
|
2024-02-07 01:22:34 +00:00
|
|
|
|
changelog = "https://github.com/alenrajsp/tcxreader/blob/v${version}/CHANGELOG.md";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
|
|
|
|
};
|
|
|
|
|
}
|