depot/third_party/nixpkgs/pkgs/development/python-modules/tcxreader/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

43 lines
859 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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 Garmins 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 ];
};
}