From e9ae1818e34acd5298116207861cf5c168e6e8af Mon Sep 17 00:00:00 2001 From: firefly-cpp Date: Tue, 6 Sep 2022 14:52:35 +0200 Subject: [PATCH] python310Packages.tcxreader: init at 0.4.1 --- .../python-modules/tcxreader/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/tcxreader/default.nix diff --git a/pkgs/development/python-modules/tcxreader/default.nix b/pkgs/development/python-modules/tcxreader/default.nix new file mode 100644 index 000000000000..1f20dfeffdf7 --- /dev/null +++ b/pkgs/development/python-modules/tcxreader/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "tcxreader"; + version = "0.4.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "alenrajsp"; + repo = "tcxreader"; + rev = "v${version}"; + hash = "sha256-gPoYxdYCHVzSjCxhodRsbd60dGbPQtQQihdT0h3uVpU="; + }; + + checkInputs = [ + 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 ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3ee9593b70fd..2250beb3173b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10674,6 +10674,8 @@ in { tbm-utils = callPackage ../development/python-modules/tbm-utils { }; + tcxreader = callPackage ../development/python-modules/tcxreader { }; + teamcity-messages = callPackage ../development/python-modules/teamcity-messages { }; telegram = callPackage ../development/python-modules/telegram { };