1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "fitdecode";
11 version = "0.11.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "polyvertex";
16 repo = "fitdecode";
17 tag = "v${version}";
18 hash = "sha256-3NoJHPql5mVQ+h2InM8tp7LIuR2znJyaawISarr688Q=";
19 };
20
21 build-system = [
22 setuptools
23 ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "fitdecode" ];
28
29 meta = {
30 changelog = "https://github.com/polyvertex/fitdecode/blob/${src.tag}/HISTORY.rst";
31 description = "FIT file parsing and decoding library written in Python3";
32 license = lib.licenses.mit;
33 homepage = "https://github.com/polyvertex/fitdecode";
34 maintainers = with lib.maintainers; [ tebriel ];
35 };
36}