504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
771 B
Nix
42 lines
771 B
Nix
{ lib
|
||
, buildPythonPackage
|
||
, fetchFromGitHub
|
||
, poetry-core
|
||
, pytestCheckHook
|
||
, pythonOlder
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "tcxreader";
|
||
version = "0.4.5";
|
||
pyproject = true;
|
||
|
||
disabled = pythonOlder "3.6";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "alenrajsp";
|
||
repo = "tcxreader";
|
||
rev = "refs/tags/v${version}";
|
||
hash = "sha256-CiOLcev9fo2BPgnPZZ2borU25f/gKISqRAapAHgLN3w=";
|
||
};
|
||
|
||
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";
|
||
license = licenses.mit;
|
||
maintainers = with maintainers; [ firefly-cpp ];
|
||
};
|
||
}
|
||
|