summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fitparse/default.nix
blob: 7caf8d2b866d342c886a9edbe7de484fa979f3d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  lib,
  setuptools,
}:
buildPythonPackage rec {
  pname = "fitparse";
  version = "1.2.0";

  pyproject = true;
  build-system = [ setuptools ];

  src = fetchFromGitHub {
    owner = "dtcooper";
    repo = "python-fitparse";
    tag = "v${version}";
    hash = "sha256-aO4djG9omc0jogalLitvT5i58cYKXqtvJ5WGBiCv448=";
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    "test_utils"
  ];

  pythonImportsCheck = [
    "fitparse"
  ];

  meta = {
    description = "Python library to parse ANT/Garmin .FIT files";
    homepage = "https://pythonhosted.org/fitparse/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ aciceri ];
  };
}