depot/third_party/nixpkgs/pkgs/development/python-modules/tcxreader/default.nix

43 lines
771 B
Nix
Raw Normal View History

{ 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 Garmins TCX file format";
homepage = "https://github.com/alenrajsp/tcxreader";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
};
}