File tree Expand file tree Collapse file tree 5 files changed +201
-0
lines changed
development/python-modules Expand file tree Collapse file tree 5 files changed +201
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ python3Packages ,
4+ fetchFromGitHub ,
5+ writableTmpDirAsHomeHook ,
6+ } :
7+
8+ python3Packages . buildPythonApplication rec {
9+ pname = "garmindb" ;
10+ version = "3.6.3" ;
11+ pyproject = true ;
12+
13+ src = fetchFromGitHub {
14+ owner = "tcgoetz" ;
15+ repo = "garmindb" ;
16+ tag = "v${ version } " ;
17+ hash = "sha256-JAUDAYf9CH/BxwV88ziF5Zy+3ibcbieEfHrZpHSU8m0=" ;
18+ } ;
19+
20+ build-system = [
21+ python3Packages . setuptools
22+ ] ;
23+
24+ dependencies = with python3Packages ; [
25+ sqlalchemy
26+ python-dateutil
27+ cached-property
28+ tqdm
29+ garth
30+ fitfile
31+ tcxfile
32+ idbutils
33+ tornado
34+ ] ;
35+
36+ pythonRelaxDeps = [
37+ "sqlalchemy"
38+ "cached-property"
39+ "tqdm"
40+ "fitfile"
41+ "tcxfile"
42+ "idbutils"
43+ ] ;
44+
45+ # require data files
46+ disabledTestPaths = [
47+ "test/test_activities_db.py"
48+ "test/test_config.py"
49+ "test/test_copy.py"
50+ "test/test_db_base.py"
51+ "test/test_fit_file.py"
52+ "test/test_garmin_db.py"
53+ "test/test_garmin_db_objects.py"
54+ "test/test_garmin_summary_db.py"
55+ "test/test_monitoring_db.py"
56+ "test/test_profile_file.py"
57+ "test/test_summary_db.py"
58+ "test/test_summary_db_base.py"
59+ "test/test_tcx_file.py"
60+ ] ;
61+
62+ nativeCheckInputs = [
63+ python3Packages . pytestCheckHook
64+ writableTmpDirAsHomeHook
65+ ] ;
66+
67+ meta = {
68+ description = "Download and parse data from Garmin Connect or a Garmin watch" ;
69+ homepage = "https://github.com/tcgoetz/GarminDB" ;
70+ license = lib . licenses . gpl2Only ;
71+ platforms = lib . platforms . unix ;
72+ maintainers = with lib . maintainers ; [ ethancedwards8 ] ;
73+ mainProgram = "garmindb" ;
74+ } ;
75+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ setuptools ,
6+ pytestCheckHook ,
7+ } :
8+
9+ buildPythonPackage rec {
10+ pname = "fitfile" ;
11+ version = "1.0.1" ;
12+ pyproject = true ;
13+
14+ src = fetchFromGitHub {
15+ owner = "tcgoetz" ;
16+ repo = "fit" ;
17+ tag = version ;
18+ hash = "sha256-NIshX/IkPmqviYRPT4wRF7evZwn9e7BdCI5x+2Pz7II=" ;
19+ } ;
20+
21+ build-system = [
22+ setuptools
23+ ] ;
24+
25+ nativeCheckInputs = [ pytestCheckHook ] ;
26+
27+ pythonImportsCheck = [ "fitfile" ] ;
28+
29+ meta = {
30+ description = "Python Fit file parser" ;
31+ license = lib . licenses . gpl2Only ;
32+ homepage = "https://github.com/tcgoetz/fit" ;
33+ maintainers = with lib . maintainers ; [ ethancedwards8 ] ;
34+ } ;
35+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ setuptools ,
6+ sqlalchemy ,
7+ requests ,
8+ python-dateutil ,
9+ tqdm ,
10+ pytestCheckHook ,
11+ } :
12+
13+ buildPythonPackage rec {
14+ pname = "idbutils" ;
15+ version = "1.0.1" ;
16+ pyproject = true ;
17+
18+ src = fetchFromGitHub {
19+ owner = "tcgoetz" ;
20+ repo = "utilities" ;
21+ tag = version ;
22+ hash = "sha256-niscY7sURrJ7YcPKbI6ByU03po6Hfxm0gHbvmDa6TgM=" ;
23+ } ;
24+
25+ build-system = [
26+ setuptools
27+ ] ;
28+
29+ dependencies = [
30+ sqlalchemy
31+ requests
32+ python-dateutil
33+ tqdm
34+ ] ;
35+
36+ nativeCheckInputs = [ pytestCheckHook ] ;
37+
38+ pythonImportsCheck = [ "idbutils" ] ;
39+
40+ meta = {
41+ description = "Python utilities useful for database and internal apps" ;
42+ license = lib . licenses . gpl2Only ;
43+ homepage = "https://github.com/tcgoetz/utilities" ;
44+ maintainers = with lib . maintainers ; [ ethancedwards8 ] ;
45+ } ;
46+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ setuptools ,
6+ python-dateutil ,
7+ } :
8+
9+ buildPythonPackage rec {
10+ pname = "tcxfile" ;
11+ version = "1.0.1" ;
12+ pyproject = true ;
13+
14+ src = fetchFromGitHub {
15+ owner = "tcgoetz" ;
16+ repo = "tcx" ;
17+ tag = version ;
18+ hash = "sha256-d1KSeLlaoyXFU8v+8cKu1+2dU2ywvpWqsHBddo/aBC4=" ;
19+ } ;
20+
21+ build-system = [
22+ setuptools
23+ ] ;
24+
25+ dependencies = [
26+ python-dateutil
27+ ] ;
28+
29+ # cannot run built in tests as they lack data files
30+
31+ pythonImportsCheck = [ "tcxfile" ] ;
32+
33+ meta = {
34+ description = "Python library to read and write Tcx files" ;
35+ license = lib . licenses . gpl2Only ;
36+ homepage = "https://github.com/tcgoetz/tcx" ;
37+ maintainers = with lib . maintainers ; [ ethancedwards8 ] ;
38+ } ;
39+ }
Original file line number Diff line number Diff line change @@ -4686,6 +4686,8 @@ self: super: with self; {
46864686
46874687 fitbit = callPackage ../development/python-modules/fitbit { };
46884688
4689+ fitfile = callPackage ../development/python-modules/fitfile { };
4690+
46894691 fivem-api = callPackage ../development/python-modules/fivem-api { };
46904692
46914693 fixerio = callPackage ../development/python-modules/fixerio { };
@@ -6266,6 +6268,8 @@ self: super: with self; {
62666268
62676269 id = callPackage ../development/python-modules/id { };
62686270
6271+ idbutils = callPackage ../development/python-modules/idbutils { };
6272+
62696273 identify = callPackage ../development/python-modules/identify { };
62706274
62716275 idna = callPackage ../development/python-modules/idna { };
@@ -16103,6 +16107,8 @@ self: super: with self; {
1610316107
1610416108 tcolorpy = callPackage ../development/python-modules/tcolorpy { };
1610516109
16110+ tcxfile = callPackage ../development/python-modules/tcxfile { };
16111+
1610616112 tcxparser = callPackage ../development/python-modules/tcxparser { };
1610716113
1610816114 tcxreader = callPackage ../development/python-modules/tcxreader { };
You can’t perform that action at this time.
0 commit comments