diff --git a/pkgs/development/python-modules/fitfile/default.nix b/pkgs/development/python-modules/fitfile/default.nix new file mode 100644 index 000000000000..08d28800fd5b --- /dev/null +++ b/pkgs/development/python-modules/fitfile/default.nix @@ -0,0 +1,35 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "fitfile"; + version = "1.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tcgoetz"; + repo = "fit"; + tag = version; + hash = "sha256-NIshX/IkPmqviYRPT4wRF7evZwn9e7BdCI5x+2Pz7II="; + }; + + build-system = [ + setuptools + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "fitfile" ]; + + meta = { + description = "Python Fit file parser"; + license = lib.licenses.gpl2Only; + homepage = "https://github.com/tcgoetz/fit"; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a6286077c186..0bf1c29005c1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4682,6 +4682,8 @@ self: super: with self; { fitbit = callPackage ../development/python-modules/fitbit { }; + fitfile = callPackage ../development/python-modules/fitfile { }; + fivem-api = callPackage ../development/python-modules/fivem-api { }; fixerio = callPackage ../development/python-modules/fixerio { };