nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lxml,
7 pytestCheckHook,
8 python-dateutil,
9}:
10
11buildPythonPackage rec {
12 pname = "tcxparser";
13 version = "2.4.0-r1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "vkurup";
18 repo = "python-tcxparser";
19 tag = version;
20 hash = "sha256-lQczTuxmxu4nCPJsgblrW2RXST7kvhtPnscemwXCx0Y=";
21 };
22
23 build-system = [
24 setuptools
25 ];
26
27 dependencies = [
28 lxml
29 python-dateutil
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "tcxparser" ];
35
36 meta = {
37 description = "Simple parser for Garmin TCX files";
38 homepage = "https://github.com/vkurup/python-tcxparser";
39 license = lib.licenses.bsd2;
40 maintainers = with lib.maintainers; [ firefly-cpp ];
41 };
42}