60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
43 lines
859 B
Nix
43 lines
859 B
Nix
{ lib
|
||
, buildPythonPackage
|
||
, fetchFromGitHub
|
||
, poetry-core
|
||
, pytestCheckHook
|
||
, pythonOlder
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "tcxreader";
|
||
version = "0.4.9";
|
||
pyproject = true;
|
||
|
||
disabled = pythonOlder "3.6";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "alenrajsp";
|
||
repo = "tcxreader";
|
||
rev = "refs/tags/v${version}";
|
||
hash = "sha256-N/YsH1P8F9bSuzTgrYNU6xEO/yldXNIXMN0pQgIesfc=";
|
||
};
|
||
|
||
nativeBuildInputs = [
|
||
poetry-core
|
||
];
|
||
|
||
nativeCheckInputs = [
|
||
pytestCheckHook
|
||
];
|
||
|
||
pythonImportsCheck = [
|
||
"tcxreader"
|
||
];
|
||
|
||
meta = with lib; {
|
||
description = "A 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 ];
|
||
};
|
||
}
|
||
|