e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
42 lines
771 B
Nix
42 lines
771 B
Nix
{ lib
|
||
, buildPythonPackage
|
||
, fetchFromGitHub
|
||
, poetry-core
|
||
, pytestCheckHook
|
||
, pythonOlder
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "tcxreader";
|
||
version = "0.4.6";
|
||
pyproject = true;
|
||
|
||
disabled = pythonOlder "3.6";
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "alenrajsp";
|
||
repo = "tcxreader";
|
||
rev = "refs/tags/v${version}";
|
||
hash = "sha256-J7yzJfJr2EK/0hZLVgk+Poqr/vY/9bsgA6cePTQ45U0=";
|
||
};
|
||
|
||
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 ];
|
||
};
|
||
}
|
||
|