2022-09-09 14:08:57 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, pytestCheckHook
|
|
|
|
|
, pythonOlder
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "tcxreader";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
version = "0.4.2";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "alenrajsp";
|
|
|
|
|
repo = "tcxreader";
|
|
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
hash = "sha256-YJDuyInO5FCIdz7xE29qOpuH6rPKvO4FZChjgXdc+Aw=";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
|
pytestCheckHook
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
|
"tcxreader"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-10-21 18:38:19 +00:00
|
|
|
|
description = "A reader for Garmin’s TCX file format";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
homepage = "https://github.com/alenrajsp/tcxreader";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|