bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
37 lines
847 B
Nix
37 lines
847 B
Nix
{
|
||
lib,
|
||
buildPythonPackage,
|
||
fetchFromGitHub,
|
||
poetry-core,
|
||
pytestCheckHook,
|
||
pythonOlder,
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "tcxreader";
|
||
version = "0.4.10";
|
||
pyproject = true;
|
||
|
||
disabled = pythonOlder "3.6";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "alenrajsp";
|
||
repo = "tcxreader";
|
||
rev = "refs/tags/v${version}";
|
||
hash = "sha256-qTAqRzrHFj0nEujlkBohLaprIvvkSYhcDoRfqWIJMjo=";
|
||
};
|
||
|
||
nativeBuildInputs = [ poetry-core ];
|
||
|
||
nativeCheckInputs = [ pytestCheckHook ];
|
||
|
||
pythonImportsCheck = [ "tcxreader" ];
|
||
|
||
meta = with lib; {
|
||
description = "Reader for Garmin’s TCX file format";
|
||
homepage = "https://github.com/alenrajsp/tcxreader";
|
||
changelog = "https://github.com/alenrajsp/tcxreader/blob/v${version}/CHANGELOG.md";
|
||
license = licenses.mit;
|
||
maintainers = with maintainers; [ firefly-cpp ];
|
||
};
|
||
}
|