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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
|
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2019, 2020, 2021 Leo Famulari <leo@famulari.name>
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 raingloom <raingloom@riseup.net>
;;; Copyright © 2020-2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Collin J. Doering <collin@rekahsoft.ca>
;;; Copyright © 2021 Philip McGrath <philip@philipmcgrath.com>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2022 (unmatched-parenthesis <paren@disroot.org>
;;; Copyright © 2022 Adam Kandur <kefironpremise@gmail.com>
;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2022 Leo Nikkilä <hello@lnikki.la>
;;; Copyright © 2022 jgart via Guix-patches via <guix-patches@gnu.org>
;;; Copyright © 2022 muradm <mail@muradm.net>
;;; Copyright © 2022, 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2023 Felix Lechner <felix.lechner@lease-up.com>
;;; Copyright © 2023 Filip Lajszczak <filip@lajszczak.dev>
;;; Copyright © 2023 Fries <fries1234@protonmail.com>
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2023 Katherine Cox-Buday <cox.katherine.e@gmail.com>
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2023 Thomas Ieong <th.ieong@free.fr>
;;; Copyright © 2023, 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2024 Dominic Martinez <dom@dominicm.dev>
;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages golang-web)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix build-system go)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages ipfs)
#:use-module (gnu packages tls)
#:use-module (gnu packages web))
;;; Commentary:
;;;
;;; Golang modules (libraries) for Web related projects: HTML, CSS, SCSS,
;;; JavaScript, JSON, Web-framework, REST-API or similar functionality; for
;;; Network related projects: OSI layers implementation algorithms, MIME,
;;; Email protocols implementations, and similar. They may provide
;;; executables and libraries, for which there are marked sections.
;;;
;;; Please: Try to add new module packages in alphabetic order.
;;;
;;; Code:
;;;
;;; Libraries:
;;;
(define-public go-cloud-google-com-go-compute-metadata
(package
(name "go-cloud-google-com-go-compute-metadata")
(version "0.81.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/googleapis/google-cloud-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "15jgynqb5pbxqbj3a7ii970yn4srsw1dbxzxnhpkfkmplalpgyh3"))))
(build-system go-build-system)
(arguments
'(#:unpack-path "cloud.google.com/go"
#:import-path "cloud.google.com/go/compute/metadata"))
(home-page
"https://pkg.go.dev/cloud.google.com/go/compute/metadata")
(synopsis
"Go wrapper for Google Compute Engine metadata service")
(description
"This package provides access to Google Compute Engine (GCE) metadata and
API service accounts for Go.")
(license license:asl2.0)))
(define-public go-git-sr-ht-emersion-gqlclient
(package
(name "go-git-sr-ht-emersion-gqlclient")
(version "0.0.0-20230820050442-8873fe0204b9")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://git.sr.ht/~emersion/gqlclient")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0x64kcryawdr0daq1w6fada60zqrddw75yi397835b9ij7wb5gmh"))))
(build-system go-build-system)
(arguments
(list #:import-path "git.sr.ht/~emersion/gqlclient"))
(home-page "https://git.sr.ht/~emersion/gqlclient")
(synopsis "GraphQL client and code generator")
(description
"This package provides a GraphQL client and code generator for Go.")
(license license:expat)))
(define-public go-git-sr-ht-rockorager-go-jmap
(package
(name "go-git-sr-ht-rockorager-go-jmap")
(version "0.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://git.sr.ht/~rockorager/go-jmap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1r8bmdlmvpk08i7xrqwgv0aaz05564wgcyji73nszdh2s32m4kzl"))))
(build-system go-build-system)
(arguments
(list
#:import-path "git.sr.ht/~rockorager/go-jmap"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(native-inputs
(list
go-github-com-stretchr-testify))
(propagated-inputs
(list go-golang-org-x-oauth2))
(home-page "https://git.sr.ht/~rockorager/go-jmap")
(synopsis "JSON meta application protocol in Golang")
(description
"Package jmap implements JMAP Core protocol as defined in
@url{https://rfc-editor.org/rfc/rfc8620.html,RFC 8620} published on July
2019.")
(license license:expat)))
(define-public go-github-com-alexliesenfeld-health
(package
(name "go-github-com-alexliesenfeld-health")
(version "0.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alexliesenfeld/health")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fchlvxwidsscskwq07vhxfwcn5wbigbizi51619l8gg09mr158q"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/alexliesenfeld/health"
#:phases #~(modify-phases %standard-phases
;; Examples requires additional dependencies and comes with
;; their own go.mod, consider to pack it as separate
;; package if required.
(add-after 'unpack 'remove-examples
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
(string-append "src/" import-path "/examples")))))))
(native-inputs (list go-github-com-stretchr-testify))
(home-page "https://github.com/alexliesenfeld/health")
(synopsis "Simple and flexible health check library for Go")
(description
"This library provides a @code{http.Handler} that acts as a health
endpoint. It can be used by cloud infrastructure or other services to
determine the availability of an application.
Rather than simply returning a response with HTTP status code 200, this
library allows building health checks that test the availability of all
required dependencies. The HTTP response contains the aggregated health
result and details about the health status of each component.")
(license license:expat)))
(define-public go-github-com-anaskhan96-soup
(package
(name "go-github-com-anaskhan96-soup")
(version "1.2.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/anaskhan96/soup")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0s19119sy4zqf05sgpdymcbdaz5bg86n7xwgd2m1vvxjmp485k5p"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/anaskhan96/soup"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/anaskhan96/soup")
(synopsis "Web Scraper in Go, similar to BeautifulSoup")
(description
"Small web scraper package for Go, with its interface highly similar to
that of BeautifulSoup.")
(license license:expat)))
(define-public go-github-com-andybalholm-cascadia
(package
(name "go-github-com-andybalholm-cascadia")
(version "1.3.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/andybalholm/cascadia")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0zgc9fjkn7d66cnmgnmalr9lrq4ii1spap95pf2x1hln4pflib5s"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/andybalholm/cascadia"))
(native-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/andybalholm/cascadia/")
(synopsis "CSS selectors for HTML")
(description "The Cascadia package implements CSS selectors for use with
the parse trees produced by the html package.")
(license license:bsd-2)))
(define-public go-github-com-audriusbutkevicius-pfilter
(package
(name "go-github-com-audriusbutkevicius-pfilter")
(version "0.0.11")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/AudriusButkevicius/pfilter")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "03kwi1hnhcz9qdblmhpaqg2063k2ch29hc5dr8cl2z7q5rp81m9i"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/AudriusButkevicius/pfilter"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
;; Remove tests requiring setting up local
;; connection.
(list "quic_test.go"))))))))
(propagated-inputs
(list go-github-com-pkg-errors
go-github-com-quic-go-quic-go
go-golang-org-x-net))
(home-page "https://github.com/AudriusButkevicius/pfilter")
(synopsis "Filter packets into multiple virtual connections")
(description
"Pfilter is a Go package for filtering packets into multiple virtual
connections from a single physical connection.")
(license license:expat)))
(define-public go-github-com-aws-aws-lambda-go
(package
(name "go-github-com-aws-aws-lambda-go")
(version "1.47.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aws/aws-lambda-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xki0n3va9nr6dmlgrb8zarkccx5jba6ig6g8zxcznw3rlllf1zv"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/aws/aws-lambda-go"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/aws/aws-lambda-go")
(synopsis "AWS Lambda for Go")
(description
"Libraries, samples, and tools to help Go developers develop AWS Lambda
functions.")
(license license:asl2.0)))
(define-public go-github-com-aws-aws-sdk-go
(package
(name "go-github-com-aws-aws-sdk-go")
(version "1.55.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aws/aws-sdk-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0wsl1vcig3j9z6v2hppfr1bvrvbisck026fwq2a7yzmx36pwnj6a"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/aws/aws-sdk-go"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\_test.go$")
(("TestProcessProviderTimeout")
"OffTestProcessProviderTimeout")))))
;; XXX: Workaround for go-build-system's lack of Go modules
;; support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-jmespath-go-jmespath))
(home-page "https://github.com/aws/aws-sdk-go")
(synopsis "The official AWS SDK for the Go programming language")
(description
"The official AWS SDK for the Go programming language.")
(license license:asl2.0)))
(define-public go-github-com-aws-aws-sdk-go-v2
(package
(name "go-github-com-aws-aws-sdk-go-v2")
(version "1.17.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aws/aws-sdk-go-v2")
(commit "v1.17.3")))
(file-name (git-file-name name version))
(sha256
(base32 "1a07xab1cn96iff7zvp5a82fzhqwl0i4bhplkm2h1qbkxgldn6x0"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-aws-smithy-go
go-github-com-google-go-cmp
go-github-com-jmespath-go-jmespath))
(home-page "https://github.com/aws/aws-sdk-go-v2")
(synopsis "AWS SDK for Go v2")
(description
"Package sdk is the official AWS SDK v2 for the Go programming language.")
(license license:asl2.0)))
(define-public go-github-com-aws-aws-sdk-go-v2-config
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-config")
(version "1.18.5")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/config"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-google-go-cmp
go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-aws-sdk-go-v2-credentials
(package
(name "go-github-com-aws-aws-sdk-go-v2-credentials")
(version "1.17.27")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aws/aws-sdk-go-v2")
(commit (string-append "credentials/v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0jdj7wim98g80hjbw3av7ffrr3dqxzbygprmhjs0cxc16cw62wj7"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/aws/aws-sdk-go-v2/credentials"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-google-go-cmp
go-github-com-aws-smithy-go))
(home-page "https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/credentials")
(synopsis "AWS SDK for Go v2 - credentials module")
(description
"Package credentials provides types for retrieving credentials from
credentials sources.")
(license license:asl2.0)))
(define-public go-github-com-aws-aws-sdk-go-v2-feature-s3-manager
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-feature-s3-manager")
(version "1.11.44")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/feature/s3/manager"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs (list go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-aws-sdk-go-v2-service-iam
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-service-iam")
(version "1.44.161")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/service/iam"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-aws-sdk-go-v2-service-s3
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-service-s3")
(version "1.30.0")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/service/s3"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-aws-sdk-go-v2-service-sso
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-service-sso")
(version "1.11.27")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/service/sso"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-aws-sdk-go-v2-service-ssooidc
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-service-ssooidc")
(version "1.13.10")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/service/ssooidc"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-aws-sdk-go-v2-service-sts
(package
(inherit go-github-com-aws-aws-sdk-go-v2)
(name "go-github-com-aws-aws-sdk-go-v2-service-sts")
(version "1.17.7")
(arguments
'(#:import-path "github.com/aws/aws-sdk-go-v2/service/sts"
#:unpack-path "github.com/aws/aws-sdk-go-v2"))
(propagated-inputs
(list go-github-com-aws-smithy-go))))
(define-public go-github-com-aws-smithy-go
(package
(name "go-github-com-aws-smithy-go")
(version "1.13.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aws/smithy-go")
(commit "v1.13.5")))
(file-name (git-file-name name version))
(sha256
(base32 "1rgyk0m2d3agknnlzjqvac1a61wwdq1pbck7vyl587m38n5zi2cz"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/aws/smithy-go"))
(propagated-inputs
(list go-github-com-jmespath-go-jmespath go-github-com-google-go-cmp))
(home-page "https://github.com/aws/smithy-go")
(synopsis "@url{https://smithy.io/2.0/index.html,Smithy} code generators
for Go")
(description
"Package smithy provides the core components for a Smithy SDK.")
(license license:asl2.0)))
(define-public go-github-com-aymerick-douceur
(package
(name "go-github-com-aymerick-douceur")
(version "0.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aymerick/douceur/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hfysznib0fqbp8vqxpk0xiggpp0ayk2bsddi36vbg6f8zq5f81n"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/aymerick/douceur"))
(native-inputs
(list go-github-com-andybalholm-cascadia
go-github-com-gorilla-css
go-github-com-puerkitobio-goquery
go-golang-org-x-net))
(home-page "https://github.com/aymerick/douceur/")
(synopsis "CSS parser and inliner")
(description "This package provides a CSS parser and inliner.")
(license license:expat)))
(define-public go-github-com-azure-go-ntlmssp
(package
(name "go-github-com-azure-go-ntlmssp")
(version "0.0.0-20221128193559-754e69321358")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Azure/go-ntlmssp")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0dg20fwylf5lpsc5fgnnzw7jxz0885bg97lla1b5wrlhjas6lidn"))))
(build-system go-build-system)
(arguments
(list
;; See <https://github.com/Azure/go-ntlmssp/issues/40>.
#:tests? #f
#:import-path "github.com/Azure/go-ntlmssp"))
(propagated-inputs
(list go-golang-org-x-crypto))
(home-page "https://github.com/Azure/go-ntlmssp")
(synopsis "NTLM negotiation in Go")
(description
"This package provides @acronym{NT (New Technology) LAN
Manager,NTLM}/Negotiate authentication over HTTP.")
(license license:expat)))
(define-public go-github-com-bep-golibsass
(package
(name "go-github-com-bep-golibsass")
(version "0.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bep/golibsass")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xk3m2ynbydzx87dz573ihwc4ryq0r545vz937szz175ivgfrhh3"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "libsass_src")
#t))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/bep/golibsass/libsass"
#:unpack-path "github.com/bep/golibsass"
;; The dev build tag modifies the build to link to system libsass
;; instead of including the bundled one (which we remove.)
;; https://github.com/bep/golibsass/blob/v0.7.0/internal/libsass/a__cgo_dev.go
#:build-flags '("-tags" "dev")
#:phases
(modify-phases %standard-phases
(add-before 'build 'generate-bindings
;; Generate bindings for system libsass, replacing the
;; pre-generated bindings.
(lambda* (#:key inputs unpack-path #:allow-other-keys)
(mkdir-p (string-append "src/" unpack-path "/internal/libsass"))
(let ((libsass-src (string-append (assoc-ref inputs "libsass-src") "/src")))
(substitute* (string-append "src/" unpack-path "/gen/main.go")
(("filepath.Join\\(rootDir, \"libsass_src\", \"src\"\\)")
(string-append "\"" libsass-src "\""))
(("../../libsass_src/src/")
libsass-src)))
(invoke "go" "generate" (string-append unpack-path "/gen"))
#t))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(if tests?
(invoke "go" "test" import-path "-tags" "dev"))
#t)))))
(propagated-inputs
(list libsass))
(native-inputs
`(("go-github-com-frankban-quicktest" ,go-github-com-frankban-quicktest)
("libsass-src" ,(package-source libsass))))
(home-page "https://github.com/bep/golibsass")
(synopsis "Easy to use Go bindings for LibSass")
(description
"This package provides SCSS compiler support for Go applications.")
(license license:expat)))
(define-public go-github-com-ccding-go-stun
(package
(name "go-github-com-ccding-go-stun")
(version "0.1.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ccding/go-stun")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0wjhckyg42kp04njhj7gni84cyk0s7m17n13kqf6r7mjzx8a83pw"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/ccding/go-stun"))
(home-page "https://github.com/ccding/go-stun")
(synopsis "STUN client implementation")
(description
"Go-stun is a go implementation of the STUN client (RFC 3489
and RFC 5389).")
(license license:asl2.0)))
(define-public go-github-com-cenkalti-backoff-v4
(package
(name "go-github-com-cenkalti-backoff-v4")
(version "4.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cenkalti/backoff")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pwr7fzxgngb073q98qrz1f90bkk3pljynif6jl5a6q6kcsn7xf1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/cenkalti/backoff/v4"))
(home-page "https://github.com/cenkalti/backoff")
(synopsis "The exponential backoff algorithm in Go")
(description "This is a Go port of the exponential backoff algorithm from
@url{https://github.com/google/google-http-java-client/blob/da1aa993e90285ec18579f1553339b00e19b3ab5/google-http-client/src/main/java/com/google/api/client/util/ExponentialBackOff.java,
Google's HTTP Client Library for Java}.
@url{http://en.wikipedia.org/wiki/Exponential_backoff, Exponential backoff} is an
algorithm that uses feedback to multiplicatively decrease the rate of some process,
in order to gradually find an acceptable rate. The retries exponentially increase
and stop increasing when a certain threshold is met.")
(license license:expat)))
(define-public go-github-com-chris-ramon-douceur
(package
(name "go-github-com-chris-ramon-douceur")
(version "0.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chris-ramon/douceur")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hfysznib0fqbp8vqxpk0xiggpp0ayk2bsddi36vbg6f8zq5f81n"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/chris-ramon/douceur"))
(propagated-inputs
(list go-github-com-aymerick-douceur
go-github-com-gorilla-css))
(native-inputs
(list go-github-com-puerkitobio-goquery
go-github-com-andybalholm-cascadia
go-golang-org-x-net))
(home-page "https://github.com/chris-ramon/douceur/")
(synopsis "CSS parser and inliner")
(description "This package provides a CSS parser and inliner.")
(license license:expat)))
(define-public go-github-com-coder-websocket
(package
(name "go-github-com-coder-websocket")
(version "1.8.12")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coder/websocket")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "172v9mqghswf50ga512qghb6ii0ivz5fi2iyjzdnbm42g0cr4fjj"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/coder/websocket"))
(home-page "https://github.com/coder/websocket")
(synopsis "WebSocket library for Go")
(description
"@code{websocket} is a minimal and idiomatic
@url{https://websockets.spec.whatwg.org/, WebSocket} library for Go.
Main features:
@itemize
@item Minimal and idiomatic API.
@item First class @url{https://blog.golang.org/context, context.Context}
support.
@item Fully passes the WebSocket
@url{https://github.com/crossbario/autobahn-testsuite, autobahn-testsuite}.
@item @url{https://pkg.go.dev/github.com/coder/websocket?tab=imports,
Zero dependencies}.
@item JSON helpers in the @url{https://pkg.go.dev/github.com/coder/websocket/wsjson,
wsjson} subpackage
@item Zero alloc reads and writes.
@item Concurrent writes.
@item @url{https://pkg.go.dev/github.com/coder/websocket#Conn.Close,
Close handshake}.
@item @url{https://pkg.go.dev/github.com/coder/websocket#NetConn, net.Conn}
wrapper
@item @url{https://pkg.go.dev/github.com/coder/websocket#Conn.Ping, Ping pong}
API.
@item @url{https://tools.ietf.org/html/rfc7692, RFC 7692} permessage-deflate
compression.
@item @url{https://pkg.go.dev/github.com/coder/websocket#Conn.CloseRead,
CloseRead} helper for write only connections
@item Compile to @url{https://pkg.go.dev/github.com/coder/websocket#hdr-Wasm,
Wasm}.
@end itemize
")
(license license:isc)))
(define-public go-github-com-containerd-typeurl
(package
(name "go-github-com-containerd-typeurl")
(version "1.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/containerd/typeurl")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0wvfxlxgkln11d9s6rxay965c715bnpk203klbsq8m8qpjqrz620"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/containerd/typeurl"))
(propagated-inputs
(list go-github-com-gogo-protobuf
go-github-com-pkg-errors))
(home-page "https://github.com/containerd/typeurl")
(synopsis "Managing marshaled types to @code{protobuf.Any}")
(description
"This package implements a functionality of managing the registration,
marshaling, and unmarshaling of encoded types. It helps when types are sent
over a ttrpc/GRPC API and marshaled as a protobuf
@url{https://pkg.go.dev/google.golang.org/protobuf@@v1.27.1/types/known/anypb#Any,
Any}.")
(license license:asl2.0)))
(define-public go-github-com-containerd-typeurl-v2
(package
(inherit go-github-com-containerd-typeurl)
(name "go-github-com-containerd-typeurl-v2")
(version "2.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/containerd/typeurl")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1n43s8zqwwrvpzb0pczm73xx4w8yb96ax31cripzxmfhj43z21b5"))))
(arguments
(list #:import-path "github.com/containerd/typeurl/v2"))
(propagated-inputs
(list go-github-com-gogo-protobuf
go-google-golang-org-protobuf))))
(define-public go-github-com-coreos-go-oidc
(package
(name "go-github-com-coreos-go-oidc")
(version "2.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coreos/go-oidc")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11m6slbpi33ynffml7812piq4anhjlf1qszjlsf26f5y7x3qh8n5"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/coreos/go-oidc"))
(propagated-inputs
(list go-github-com-pquerna-cachecontrol
go-golang-org-x-oauth2
go-gopkg-in-square-go-jose-v2))
(home-page "https://github.com/coreos/go-oidc")
(synopsis "OpenID Connect support for Go")
(description
"This package enables OpenID Connect support for the
@code{go-golang-org-x-oauth2} package.")
(license license:asl2.0)))
(define-public go-github-com-coreos-go-oidc-v3
(package
(inherit go-github-com-coreos-go-oidc)
(name "go-github-com-coreos-go-oidc-v3")
(version "3.11.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coreos/go-oidc")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00nbv15pjfcfxdy0i4k366ricdm2cylhpwak3hmjlgh6lrzxypl9"))))
(arguments
(list
#:import-path "github.com/coreos/go-oidc/v3"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules
;; support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-go-jose-go-jose-v4
go-golang-org-x-net
go-golang-org-x-oauth2))))
(define-public go-github-com-emersion-go-imap
(package
(name "go-github-com-emersion-go-imap")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-imap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ak2ysvfcc9w0g1070msis8x9sh6gzvf0nd65ks594siwbmqddw8"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-imap"))
(propagated-inputs
(list go-golang-org-x-text
go-github-com-emersion-go-sasl
go-github-com-emersion-go-message))
(home-page "https://github.com/emersion/go-imap")
(synopsis "IMAP4rev1 library written in Go")
(description
"This package provides an IMAP4rev1 library written in Go. It can be
used to build IMAP clients and servers.")
(license license:expat)))
;; XXX: This repository has been archived by the owner on Sep 8, 2021. It is
;; now read-only.
(define-public go-github-com-emersion-go-imap-idle
(let ((commit "2704abd7050ed7f2143753554ee23affdf847bd9")
(revision "0"))
(package
(name "go-github-com-emersion-go-imap-idle")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-imap-idle")
(commit commit)))
(sha256
(base32
"0blwcadmxgqsdwgr9m4jqfbpfa2viw5ah19xbybpa1z1z4aj5cbc"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-imap-idle"))
(propagated-inputs
(list go-github-com-emersion-go-imap))
(home-page "https://github.com/emersion/go-imap-idle")
(synopsis "IDLE extension for go-imap")
(description "This package provides an IDLE extension for go-imap.")
(license license:expat))))
(define-public go-github-com-emersion-go-imap-sortthread
(package
(name "go-github-com-emersion-go-imap-sortthread")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-imap-sortthread")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1cfbgz1l5angnj52v9pxwggai2shx0h78ffcp7j4r4lr7lzflnwz"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-imap-sortthread"))
(propagated-inputs
(list
go-github-com-emersion-go-imap))
(home-page "https://github.com/emersion/go-imap-sortthread")
(synopsis "Sorting and threading of messages for the imap package")
(description
"The sortthread package implements message sorting and threading for
@code{go-github-com-emersion-go-imap}.")
(license license:expat)))
(define-public go-github-com-emersion-go-maildir
(package
(name "go-github-com-emersion-go-maildir")
(version "0.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-maildir")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0wa7spn3qa7ipmg29vrimw7phyybyaagdalrjklcazjb6rplvwpl"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-maildir"))
(home-page "https://github.com/emersion/go-maildir")
(synopsis "Maildir interface for Go")
(description
"This package provides an interface to mailboxes in the Maildir format.")
(license license:expat)))
(define-public go-github-com-emersion-go-mbox
(package
(name "go-github-com-emersion-go-mbox")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-mbox")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0vnadh2khx7sxn0irrd8gz8ra02x7ij0q8zglq3rqffqil06nliv"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-mbox"))
(home-page "https://github.com/emersion/go-mbox")
(synopsis "Go library for handling @code{mbox} files")
(description
"This package provides a library for parsing and formatting @code{mbox}
files.")
(license license:expat)))
(define-public go-github-com-emersion-go-message
(package
(name "go-github-com-emersion-go-message")
(version "0.18.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-message")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0gzcgrs5sava8fpybp5cw6f3zqnbz096wf93hcgkrg94wl1g7kqb"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/emersion/go-message"))
(propagated-inputs
(list go-golang-org-x-text))
(home-page "https://github.com/emersion/go-message")
(synopsis "Internet messages and MIME for Go")
(description
"The message package implements the Internet Message Format and
Multipurpose Internet Mail Extensions in Go.")
(license license:expat)))
(define-public go-github-com-emersion-go-milter
(package
(name "go-github-com-emersion-go-milter")
(version "0.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-milter")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11qjwjz6ippsx9da81gylx46p1a96mk39j54ayw925m40skqhh3c"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-milter"))
(propagated-inputs
(list go-github-com-emersion-go-message))
(home-page "https://github.com/emersion/go-milter")
(synopsis "Milter mail filters in Go")
(description
"This package provides an interface for implementing milter mail filters
for Go.")
(license license:bsd-2)))
(define-public go-github-com-emersion-go-msgauth
(package
(name "go-github-com-emersion-go-msgauth")
(version "0.6.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-msgauth")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0az83i6jmk3bjglgdqw5zsvhh8698rav0mcg4dy8kr0cgq0lj5zs"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-msgauth"
#:phases
#~(modify-phases %standard-phases
;; XXX: Run all tests, workaround for go-build-system's lack of Go
;; modules support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-golang-org-x-crypto
go-github-com-emersion-go-milter
go-github-com-emersion-go-message))
(home-page "https://github.com/emersion/go-msgauth")
(synopsis "Email authentication for Go")
(description
"This package provides a Go library for authenticating emails.")
(license license:expat)))
(define-public go-github-com-emersion-go-sasl
(let ((commit "0b9dcfb154ac3d7515b08bc2691a0332800edfe9")
(revision "1"))
(package
(name "go-github-com-emersion-go-sasl")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-sasl")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1cbf86wkqrdinfydndgdlnayg4a5mg3d4vqra377j2sfkg7wj0hs"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-sasl"))
(home-page "https://github.com/emersion/go-sasl")
(synopsis "SASL library written in Go")
(description
"This package provides a SASL library written in Go.")
(license license:expat))))
(define-public go-github-com-emersion-go-smtp
(package
(name "go-github-com-emersion-go-smtp")
(version "0.21.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emersion/go-smtp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0drvmvrkmhqhnv4m3my1hbkyyva2vi35b36j0pdi57xc9rflziq3"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/emersion/go-smtp"))
(propagated-inputs
(list go-github-com-emersion-go-sasl))
(home-page "https://github.com/emersion/go-smtp")
(synopsis "SMTP implementation for Go")
(description
"This package implements the Simple Mail Transfer Protocol as defined by
RFC 5321.")
(license license:expat)))
(define-public go-github-com-emicklei-go-restful
(package
(name "go-github-com-emicklei-go-restful")
(version "3.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/emicklei/go-restful")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0m1y5a6xr6hmdj77afrvyh2llkbhn1166lcrgis654shl8zs9qhz"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/emicklei/go-restful"))
(home-page "https://github.com/emicklei/go-restful")
(synopsis "Build REST-style web services using Go")
(description "This package provides @code{go-restful}, which helps
developers to use @code{http} methods explicitly and in a way that's
consistent with the HTTP protocol definition.")
(license license:expat)))
(define-public go-github-com-evanphx-json-patch
(package
(name "go-github-com-evanphx-json-patch")
(version "0.5.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/evanphx/json-patch")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00sib9ba8j1h1n3r1cxx48zn8hs6sxwnrh78p6wbs28wcpz8nqxi"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/evanphx/json-patch"))
(propagated-inputs
(list go-github-com-jessevdk-go-flags go-github-com-pkg-errors))
(home-page "https://github.com/evanphx/json-patch")
(synopsis "Apply and create JSON (RFC6902 and RFC7386) patches for Golang")
(description
"@code{jsonpatch} is a library which provides functionality for both
applying @url{http://tools.ietf.org/html/rfc6902,RFC6902 JSON patches} against
documents, as well as for calculating & applying
@url{https://tools.ietf.org/html/rfc7396,RFC7396 JSON merge patches}.")
(license license:bsd-3)))
(define-public go-github-com-felixge-httpsnoop
(package
(name "go-github-com-felixge-httpsnoop")
(version "1.0.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/felixge/httpsnoop")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1xrvg5ndpz4gv9mf9xl6p6gjmvvv8bbzaspcr070qxx72jhlllkk"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/felixge/httpsnoop"))
(home-page "https://github.com/felixge/httpsnoop/")
(synopsis "Capture http related metrics")
(description
"Httpsnoop provides an easy way to capture http related
metrics (i.e. response time, bytes written, and http status code) from your
application's http.Handlers.")
(license license:expat)))
;; This project looks like domain or abandoned, see
;; <https://github.com/francoispqt/gojay/issues/150>.
(define-public go-github-com-francoispqt-gojay
(package
(name "go-github-com-francoispqt-gojay")
(version "1.2.13")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/francoispqt/gojay")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ix95qdyajfmxhf9y52vjrih63f181pjs4v5as8905s4d5vmkd06"))))
(build-system go-build-system)
(arguments
(list
;; XXX: Disable failing tests on non-x86-64 architecture, see
;; <https://github.com/francoispqt/gojay/issues/173>.
#:tests? (and (not (%current-target-system))
(target-x86-64?))
#:import-path "github.com/francoispqt/gojay"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/francoispqt/gojay")
(synopsis "JSON encoder/decoder with powerful stream API for Golang")
(description
"GoJay is a performant JSON encoder/decoder for Golang. It has a simple
API and doesn't use reflection. It relies on small interfaces to
decode/encode structures and slices.")
(license license:expat)))
(define-public go-github-com-gatherstars-com-jwz
(package
(name "go-github-com-gatherstars-com-jwz")
(version "1.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gatherstars-com/jwz")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1d66axc3504wqpb4axlm8m9jq8rmwndxb4asbqwryymj3yh60cla"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/gatherstars-com/jwz"))
(propagated-inputs
(list go-github-com-rivo-tview
go-github-com-jhillyerd-enmime
go-github-com-gdamore-tcell-v2))
(home-page "https://github.com/gatherstars-com/jwz")
(synopsis "Email threading algorithm in Golang")
(description
"The jwz package provides an implementation of the email threading
algorithm originally designed for use in
@url{https://www.jwz.org/doc/threading.html,Netscape Mail 2.0 and 3.0} for
Golang.")
(license license:asl2.0)))
;; TODO: This repository has been archived by the owner on Aug 30, 2023. It is
;; now read-only. The raven-go SDK is no longer maintained and was superseded
;; by the sentry-go
(define-public go-github-com-getsentry-raven-go
(let ((commit "5c24d5110e0e198d9ae16f1f3465366085001d92")
(revision "0"))
(package
(name "go-github-com-getsentry-raven-go")
(version (git-version "0.2.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/getsentry/raven-go")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0lvc376sq8r8jhy2v1m6rf1wyld61pvbk0x6j9xpg56ivqy69xs7"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/getsentry/raven-go"))
(propagated-inputs
(list go-github-com-certifi-gocertifi go-github-com-pkg-errors))
(home-page "https://github.com/getsentry/raven-go")
(synopsis "Sentry client in Go")
(description "This package is a Go client API for the Sentry event/error
logging system.")
(license license:bsd-3))))
(define-public go-github-com-go-chi-chi-v5
(package
(name "go-github-com-go-chi-chi-v5")
(version "5.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-chi/chi")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0rzrsxz4xj0973c6nxklvq2vmg2m795snhk25836i0gnd1jnx79k"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/go-chi/chi/v5"))
(home-page "https://github.com/go-chi/chi")
(synopsis "Composable router for HTTP services written in Go")
(description
"@code{go-github-com-go-chi-chi-v5} is an HTTP router that lets the user
decompose request handling into many smaller layers.")
(license license:expat)))
(define-public go-github-com-go-jose-go-jose-v3
(package
(name "go-github-com-go-jose-go-jose-v3")
(version "3.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-jose/go-jose")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0kbkplhzqv9ai28r4smhdsxxwh20d96srr3am37pwwnh48ivwch8"))))
(build-system go-build-system)
(arguments
'( #:import-path "github.com/go-jose/go-jose/v3"))
(propagated-inputs
(list go-golang-org-x-crypto))
(native-inputs
(list go-github-com-google-go-cmp
go-github-com-stretchr-testify))
(home-page "https://github.com/go-jose/go-jose")
(synopsis "Implementation of JOSE standards (JWE, JWS, JWT) in Go")
(description
"This package provides a Golang implementation of the Javascript Object
Signing and Encryption set of standards. This includes support for JSON Web
Encryption, JSON Web Signature, and JSON Web Token standards.")
(license license:asl2.0)))
(define-public go-github-com-go-jose-go-jose-v4
(package
(inherit go-github-com-go-jose-go-jose-v3)
(name "go-github-com-go-jose-go-jose-v4")
(version "4.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-jose/go-jose")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1bf444687q5rdxjgk41bkryhzhx49f6600b7i51m572xdl0r28a9"))))
(arguments
(list
#:import-path "github.com/go-jose/go-jose/v4"))))
(define-public go-github-com-go-ldap-ldap
(package
(name "go-github-com-go-ldap-ldap")
(version "3.4.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-ldap/ldap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fbmhlc8ss5vn6zz0iiifvy4pm0mwaf13qpz70k83mmnv9vrv16x"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-ldap/ldap/v3"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
;; FAIL <...> LDAP Result Code 200 "Network Error":
;; dial tcp: lookup ldap.itd.umich.edu on <...>
(list "ldap_test.go"))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-azure-go-ntlmssp
go-github-com-go-asn1-ber-asn1-ber
go-github-com-google-uuid))
(home-page "https://github.com/go-ldap/ldap")
(synopsis "LDAP v3 functionality for Go")
(description "This package provides basic LDAP v3 functionality in the Go
language.")
(license license:expat)))
(define-public go-github-com-go-openapi-analysis
(package
(name "go-github-com-go-openapi-analysis")
(version "0.23.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/analysis")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1i1sn6fzjv83y31b8lky0wh08xl8yj60y04jcidzcy5gmknavyfi"))
(snippet
#~(begin (use-modules (guix build utils))
;; Introduce cycle with go-github-com-go-openapi-loads.
(delete-file-recursively "analysis_test")))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/analysis"
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'disable-failing-tests
(lambda* (#:key tests? unpack-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" unpack-path)
(substitute* (find-files "." "\\_test.go$")
;; Tests requiring network access.
(("TestFlatten_RemoteAbsolute")
"OffTestFlatten_RemoteAbsolute")))))
;; FIXME: pattern schemas/*.json: cannot embed irregular file
;; schemas/jsonschema-draft-04.json
;;
;; This happens due to Golang can't determine the valid directory of
;; the module which is sourced during setup environment phase, but
;; easy resolved after coping to expected directory "vendor" within
;; the current package, see details in Golang source:
;;
;; - URL: <https://github.com/golang/go/blob/>
;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
;; - file: src/cmd/go/internal/load/pkg.go#L2059
(add-before 'build 'copy-input-to-vendor-directory
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(mkdir "vendor")
(copy-recursively
(string-append
#$(this-package-input "go-github-com-go-openapi-spec")
"/src/github.com")
"vendor/github.com"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./...")))))
(add-before 'install 'remove-vendor-directory
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file-recursively "vendor")))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-go-openapi-jsonpointer
go-github-com-go-openapi-spec
go-github-com-go-openapi-strfmt
go-github-com-go-openapi-swag))
(home-page "https://github.com/go-openapi/analysis")
(synopsis "OpenAPI specification object model analyzer")
(description
"This package provides a foundational library to analyze an
@acronym{OpenAPI Initiative,OAI} specification document for easier reasoning
about the content.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-errors
(package
(name "go-github-com-go-openapi-errors")
(version "0.22.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/errors")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nikzvknkv0nqdy44dfi096lcvkjnpjfrpg1gqlkg5ffccvdnd9s"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/errors"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/go-openapi/errors")
(synopsis "OpenAPI toolkit common errors")
(description
"Shared errors and error interface used throughout the various libraries
found in the go-openapi toolkit.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-jsonpointer
(package
(name "go-github-com-go-openapi-jsonpointer")
(version "0.21.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/jsonpointer")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "17gb0ab2r61j4gqbpwgpz6cvf9jy91xwn11gkbg3b1rq797if7vc"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/jsonpointer"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-go-openapi-swag))
(home-page "https://github.com/go-openapi/jsonpointer")
(synopsis "JSON Pointer with structs")
(description
"This package provides an implementation of JSON Pointer, initially
prototyped in @url{https://github.com/xeipuuv/gojsonpointer}.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-jsonreference
(package
(name "go-github-com-go-openapi-jsonreference")
(version "0.21.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/jsonreference")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1121cnjjh07qdl4jdrd46kmdhx4dgsxn02rvsq5xzapl8gz5nhcn"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/jsonreference"))
(native-inputs (list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-go-openapi-jsonpointer
go-github-com-go-openapi-swag
go-github-com-puerkitobio-purell))
(home-page "https://github.com/go-openapi/jsonreference")
(synopsis "JSON Reference with structs")
(description
"This package provides an implementation of JSON Reference, initially
prototyped in @url{https://github.com/xeipuuv/gojsonreference}.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-loads
(package
(name "go-github-com-go-openapi-loads")
(version "0.22.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/loads")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qlcpdlm4y4v9r2r533aqvrc86b67nj31gsz29x9ilr7smr5299d"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/loads"
#:phases
#~(modify-phases %standard-phases
;; FIXME: pattern schemas/*.json: cannot embed irregular file
;; schemas/jsonschema-draft-04.json
;;
;; This happens due to Golang can't determine the valid directory of
;; the module which is sourced during setup environment phase, but
;; easy resolved after coping to expected directory "vendor" within
;; the current package, see details in Golang source:
;;
;; - URL: <https://github.com/golang/go/blob/>
;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
;; - file: src/cmd/go/internal/load/pkg.go#L2059
(add-before 'build 'copy-input-to-vendor-directory
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(mkdir "vendor")
(copy-recursively
(string-append
#$(this-package-input "go-github-com-go-openapi-spec")
"/src/github.com")
"vendor/github.com")
(copy-recursively
(string-append
#$(this-package-input "go-github-com-go-openapi-analysis")
"/src/github.com")
"vendor/github.com"))))
(add-before 'install 'remove-vendor-directory
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file-recursively "vendor")))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-go-openapi-analysis
go-github-com-go-openapi-spec
go-github-com-go-openapi-swag
go-gopkg-in-yaml-v3))
(home-page "https://github.com/go-openapi/loads")
(synopsis "Load OAI specification documents")
(description
"This package implements functionality of loading of @acronym{OpenAPI
Initiative,OAI} specification documents from local or remote locations.
Supports JSON and YAML documents.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-spec
(package
(name "go-github-com-go-openapi-spec")
(version "0.21.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/spec")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "07qp7gakrjwznbxg1w5ww8j0ky407s9rmyyrpwv5rsp8yw6qimjc"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/spec"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-go-openapi-jsonpointer
go-github-com-go-openapi-jsonreference
go-github-com-go-openapi-swag
go-gopkg-in-yaml-v3))
(home-page "https://github.com/go-openapi/spec")
(synopsis "OpenAPI specification object model")
(description
"This package implements functionality to marshal and unmarshal
@url{https://swagger.io/,Swagger} API specifications into a Golang object
model.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-strfmt
(package
(name "go-github-com-go-openapi-strfmt")
(version "0.23.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/strfmt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00hqmfsgknhvp7mcbxfadpv4109f9gj59223yxhvmcviqg0a6a7b"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/strfmt"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-asaskevich-govalidator
go-github-com-go-openapi-errors
go-github-com-google-uuid
go-github-com-mitchellh-mapstructure
go-github-com-oklog-ulid
go-go-mongodb-org-mongo-driver))
(home-page "https://github.com/go-openapi/strfmt")
(synopsis "OpenAPI toolkit common string formats")
(description
"This package exposes a registry of data types to support string formats
in the @code{go-openapi} toolkit. @code{strfmt} represents a well known
string format such as credit card or email. The Go toolkit for OpenAPI
specifications knows how to deal with those.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-swag
(package
(name "go-github-com-go-openapi-swag")
(version "0.23.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/swag")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1c03mnmy162rrd1rzfqxiwnblvlwl4v09yklq55q4j9p4jqv740g"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/swag"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-mailru-easyjson go-gopkg-in-yaml-v3))
(home-page "https://github.com/go-openapi/swag")
(synopsis "Goodie bag in use in the go-openapi projects")
(description
"Contains a bunch of helper functions for go-openapi and go-swagger
projects.")
(license license:asl2.0)))
(define-public go-github-com-go-openapi-validate
(package
(name "go-github-com-go-openapi-validate")
(version "0.24.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-openapi/validate")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "04inl03ha8sqqn1ccslbsl68shzf53qqk4yi88kvis0qdhcpl9fk"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/go-openapi/validate"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
;; Tests requiring network access.
(for-each delete-file
(list "benchmark_test.go"
"example_validator_test.go"
"doc_test.go")))))
;; FIXME: pattern schemas/*.json: cannot embed irregular file
;; schemas/jsonschema-draft-04.json
;;
;; This happens due to Golang can't determine the valid directory of
;; the module which is sourced during setup environment phase, but
;; easy resolved after coping to expected directory "vendor" within
;; the current package, see details in Golang source:
;;
;; - URL: <https://github.com/golang/go/blob/>
;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
;; - file: src/cmd/go/internal/load/pkg.go#L2059
(add-before 'build 'copy-input-to-vendor-directory
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(mkdir "vendor")
(copy-recursively
(string-append
#$(this-package-input "go-github-com-go-openapi-loads")
"/src/github.com")
"vendor/github.com")
(copy-recursively
(string-append
#$(this-package-input "go-github-com-go-openapi-spec")
"/src/github.com")
"vendor/github.com")
(copy-recursively
(string-append
#$(this-package-input "go-github-com-go-openapi-analysis")
"/src/github.com")
"vendor/github.com"))))
(add-before 'install 'remove-vendor-directory
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file-recursively "vendor")))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-davecgh-go-spew
go-github-com-go-openapi-analysis
go-github-com-go-openapi-errors
go-github-com-go-openapi-jsonpointer
go-github-com-go-openapi-loads
go-github-com-go-openapi-spec
go-github-com-go-openapi-strfmt
go-github-com-go-openapi-swag
go-gopkg-in-yaml-v3))
(home-page "https://github.com/go-openapi/validate")
(synopsis "OpenAPI toolkit validation helpers")
(description
"This package provides helpers to validate Swagger 2.0 specification (aka
OpenAPI 2.0).")
(license license:asl2.0)))
(define-public go-github-com-go-webauthn-webauthn
(package
(name "go-github-com-go-webauthn-webauthn")
(version "0.10.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-webauthn/webauthn")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1jbx3cd8cr4aaqq9s1x4sd1rlcs3lmam5aavpl08s5rj18m7rivf"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.22
#:import-path "github.com/go-webauthn/webauthn"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
(list
;; It tryes to access outbound network:
;;
;; Get "https://mds.fidoalliance.org": dial tcp:
;; lookup mds.fidoalliance.org on [::1]:53: read udp
;; [::1]:52300->[::1]:53: read: connection refused
;;
;; Post "https://mds3.fido.tools/getEndpoints": dial
;; tcp: lookup mds3.fido.tools on [::1]:53: read udp
;; [::1]:46703->[::1]:53: read: connection refused
"metadata/metadata_test.go"
;; Get "https://mds.fidoalliance.org": dial tcp:
;; lookup mds.fidoalliance.org on [::1]:53: read udp
;; [::1]:37459->[::1]:53: read: connection refused
"protocol/attestation_androidkey_test.go"
"protocol/attestation_apple_test.go"
"protocol/attestation_packed_test.go"
"protocol/attestation_safetynet_test.go"
"protocol/attestation_test.go"
"protocol/attestation_tpm_test.go"
"protocol/attestation_u2f_test.go")))))
;; XXX: Run all tests, workaround for go-build-system's lack of Go
;; modules support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-fxamacker-cbor-v2
go-github-com-go-webauthn-x
go-github-com-golang-jwt-jwt-v5
go-github-com-google-go-tpm
go-github-com-google-uuid
go-github-com-mitchellh-mapstructure))
(home-page "https://github.com/go-webauthn/webauthn")
(synopsis "Webauthn/FIDO2 library for Golang")
(description
"This library is meant to handle @url{https://www.w3.org/TR/webauthn,Web
Authentication} for Go apps that wish to implement a passwordless solution for
users. This library conforms as much as possible to the guidelines and
implementation procedures outlined by the document. It's a successor of not
maintained https://github.com/duo-labs/webauthn library.")
(license license:bsd-3)))
(define-public go-github-com-go-webauthn-x
(package
(name "go-github-com-go-webauthn-x")
(version "0.1.12")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-webauthn/x")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1h2ylzzh5xismgkz0gar3k8lwdwqqc2np4z5gmi1b5chh6qwy1bs"))))
(build-system go-build-system)
(arguments
(list
#:tests? #f ; no tests
#:import-path "github.com/go-webauthn/x"
#:phases
#~(modify-phases %standard-phases
;; Source only package.
(delete 'build))))
(propagated-inputs
(list go-golang-org-x-crypto))
(home-page "https://github.com/go-webauthn/x")
(synopsis "Low level packages for WebAuthn")
(description
"This package implements a low level functionality for
@url{https://github.com/go-webauthn/webauthn,WebAuthn} library. It was forked
from CloudFlare's github.com/cloudflare/cfssl/revoke.")
(license (list
;; For the CloudFlare's part: revoke/LICENSE.
license:bsd-2
;; For the WebAuthn's fork: LICENSE.
license:bsd-3))))
(define-public go-github-com-goccy-go-json
(package
(name "go-github-com-goccy-go-json")
(version "0.10.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/goccy/go-json")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0w9kjplhyzq8n4iainddapzj7dxnfbjiz4xdpb0hlb6h35grpxgn"))
(modules '((guix build utils)))
(snippet '(delete-file-recursively "benchmarks"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/goccy/go-json"))
(home-page "https://github.com/goccy/go-json")
(synopsis "JSON encoder/decoder in Go")
(description
"Fast JSON encoder/decoder compatible with encoding/json for Go.")
(license license:expat)))
(define-public go-github-com-golang-groupcache
(let ((commit "41bb18bfe9da5321badc438f91158cd790a33aa3")
(revision "3"))
(package
(name "go-github-com-golang-groupcache")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/golang/groupcache")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "07amgr8ji4mnq91qbsw2jlcmw6hqiwdf4kzfdrj8c4b05w4knszc"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/golang/groupcache"))
(propagated-inputs
(list go-github-com-golang-protobuf))
(home-page "https://github.com/golang/groupcache")
(synopsis "Groupcache is a caching and cache-filling library")
(description
"Groupcache is a caching and cache-filling library, intended
as a replacement for memcached in many cases. It provides a data loading
mechanism with caching and de-duplication that works across a set of peer
processes.")
(license license:asl2.0))))
(define-public go-github-com-google-go-github
(package
(name "go-github-com-google-go-github")
(version "26.1.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/go-github")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0x0zz1vcmllp6r6l2qin9b2llm5cxbf6n84rf99h8wrmhvzs2ipi"))))
(build-system go-build-system)
(arguments
`(#:tests? #f ;application/octet-stream instead of text/plain
#:import-path "github.com/google/go-github/v26/github"
#:unpack-path "github.com/google/go-github/v26"))
(propagated-inputs
(list go-github-com-google-go-querystring
go-golang-org-x-crypto
go-golang-org-x-oauth2
go-golang-org-x-sync))
(home-page "https://github.com/google/go-github/")
(synopsis "Client library for accessing the GitHub API v3")
(description "@code{go-github} is a Go client library for accessing the
GitHub API v3.")
(license license:bsd-3)))
;; For chezmoi-1.8.10
(define-public go-github-com-google-go-github-v33
(package
(inherit go-github-com-google-go-github)
(name "go-github-com-google-go-github-v33")
(version "33.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/go-github")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1nzwgvaa9k1ky3sfynib6nhalam9dx66h5lxff334m9kk3rf5nn0"))))
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-google-go-github)
((#:unpack-path _ "github.com/google/go-github/v26")
"github.com/google/go-github/v33")
((#:import-path _ "github.com/google/go-github/v26/github")
"github.com/google/go-github/v33/github")))))
(define-public go-github-com-google-safehtml
(package
(name "go-github-com-google-safehtml")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/safehtml")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0j2xjy8xrk9y9k6bqpvimj84i6hg1wwsyvwsb0axhmp49cmnrp86"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/google/safehtml"))
(propagated-inputs
(list go-golang-org-x-text))
(home-page "https://github.com/google/safehtml")
(synopsis "Safe HTML for Go")
(description
"Package safehtml provides immutable string-like types which represent
values that are guaranteed to be safe, by construction or by escaping or
sanitization, to use in various HTML contexts and with various DOM APIs.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-context
(let ((commit "08b5f424b9271eedf6f9f0ce86cb9396ed337a42")
(revision "0"))
(package
(name "go-github-com-gorilla-context")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/context")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "03p4hn87vcmfih0p9w663qbx9lpsf7i7j3lc7yl7n84la3yz63m4"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/gorilla/context"))
(home-page "https://github.com/gorilla/context")
(synopsis "Go registry for request variables")
(description
"This package provides @code{gorilla/context}, which is a general
purpose registry for global request variables in the Go programming
language.")
(license license:bsd-3))))
(define-public go-github-com-gorilla-csrf
(package
(name "go-github-com-gorilla-csrf")
(version "1.7.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/csrf")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "01d56sr9yggn6gs4lf5bnj15q6bkwvsim8kzj8m4arv1ccj7918j"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/gorilla/csrf"))
(propagated-inputs
(list go-github-com-gorilla-securecookie
go-github-com-pkg-errors))
(home-page "https://github.com/gorilla/csrf")
(synopsis "Cross Site Request Forgery (CSRF) prevention middleware")
(description
"Gorilla/csrf provides Cross Site Request Forgery (CSRF) prevention
middleware for Go web applications and services.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-css
(package
(name "go-github-com-gorilla-css")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/css")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "116fhy3n7bsq3psyn4pa0i4x9zy916kh1zxslmbbp0p9l4i7ysrj"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/gorilla/css/scanner"
#:unpack-path "github.com/gorilla/css"))
(home-page "https://github.com/gorilla/css/")
(synopsis "CSS3 tokenizer")
(description "This package provides a CSS3 tokenizer.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-handlers
(package
(name "go-github-com-gorilla-handlers")
(version "1.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/handlers")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "15gycdz9lkjnsvvichsbdf25vf6pi1sfn41khhz53iqf300l0w0s"))))
(build-system go-build-system)
(arguments
'(#:tests? #f ; Tries to download from the internet
#:import-path "github.com/gorilla/handlers"))
(propagated-inputs
(list go-github-com-felixge-httpsnoop))
(home-page "https://github.com/gorilla/handlers")
(synopsis "Middleware for Go HTTP services and web applications")
(description "A collection of useful middleware for Go HTTP services and
web applications.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-mux
(package
(name "go-github-com-gorilla-mux")
(version "1.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/mux")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "18f0q9qxgq1yh4ji07mqhiydfcwvi56z9d775v7dc7yckj33kpdk"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/gorilla/mux"))
(home-page "https://github.com/gorilla/mux")
(synopsis "URL router and dispatcher for Go")
(description
"Gorilla/Mux implements a request router and dispatcher for matching
incoming requests with their respective handler.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-securecookie
(package
(name "go-github-com-gorilla-securecookie")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/securecookie")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "16bqimpxs9vj5n59vm04y04v665l7jh0sddxn787pfafyxcmh410"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/gorilla/securecookie"))
(home-page "https://github.com/gorilla/securecookie")
(synopsis "Encodes and decodes authenticated and optionally encrypted
cookie values")
(description
"Gorilla/securecookie encodes and decodes authenticated and optionally
encrypted cookie values for Go web applications.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-sessions
(package
(name "go-github-com-gorilla-sessions")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gorilla/sessions")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1zjw2s37yggk9231db0vmgs67z8m3am8i8l4gpgz6fvlbv52baxp"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/gorilla/sessions"))
(propagated-inputs
(list go-github-com-gorilla-securecookie))
(home-page "https://github.com/gorilla/sessions")
(synopsis "Manage user sessions in web applications")
(description
"This package that provides infrastructure for creating and managing user
sessions in web applications. It supports cookie and filesystem-based
sessions, flash messages, custom backends, and more.")
(license license:bsd-3)))
(define-public go-github-com-gorilla-websocket
(package
(name "go-github-com-gorilla-websocket")
(version "1.5.0")
(home-page "https://github.com/gorilla/websocket")
(source
(origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1xrr6snvs9g1nzxxg05w4i4pq6k1xjljl5mvavd838qc468n118i"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/gorilla/websocket"))
(synopsis "Fast WebSocket implementation for Go")
(description "Gorilla WebSocket is a Go implementation of the WebSocket
protocol.")
(license license:bsd-2)))
(define-public go-github-com-gregjones-httpcache
(let ((commit "901d90724c7919163f472a9812253fb26761123d")
(revision "0"))
(package
(name "go-github-com-gregjones-httpcache")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gregjones/httpcache")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "05r0xq51vfb55di11m7iv19341d73f7in33vq1ihcqs1nffdwiq0"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/gregjones/httpcache"))
(home-page "https://github.com/gregjones/httpcache")
(synopsis "Transport for @code{http.Client} that will cache responses")
(description
"Package @code{httpcache} provides a @code{http.RoundTripper}
implementation that works as a mostly @url{https://tools.ietf.org/html/rfc7234, RFC 7234}
compliant cache for HTTP responses. It is only suitable for use as a
\"private\" cache (i.e. for a web-browser or an API-client and not for a
shared proxy).")
(license license:expat))))
(define-public go-github-com-hashicorp-go-cleanhttp
(package
(name "go-github-com-hashicorp-go-cleanhttp")
(version "0.5.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-cleanhttp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1i5xslizzwd966w81bz6dxjwzgml4q9bwqa186bsxd1vi8lqxl9p"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/go-cleanhttp"))
(home-page "https://github.com/hashicorp/go-cleanhttp")
(synopsis "Functions for accessing clean Go @code{http.Client} values")
(description
"The Go standard library contains a default @code{http.Client} and it is
a common idiom to tweak it as necessary. Unfortunately, this is a shared
value, and it is not uncommon for libraries to assume that they are free to
modify it at will. This package provides some simple functions to get a
\"clean\" @code{http.Client}, namely one that uses the same default values as
the Go standard library, but returns a client that does not share any state
with other clients.")
(license license:mpl2.0)))
(define-public go-github-com-hjson-hjson-go-v4
(package
(name "go-github-com-hjson-hjson-go-v4")
(version "4.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hjson/hjson-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1d4b2hpqsnzbmfhgxq15hd19rjr5hydjmpblrh5yzfgx9z3cz2by"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hjson/hjson-go/v4"))
(home-page "https://hjson.org/")
(synopsis "Human JSON implementation for Go")
(description
"Hjson is a syntax extension to JSON. It is intended to be used like a
user interface for humans, to read and edit before passing the JSON data to
the machine.")
(license license:expat)))
(define-public go-github-com-huin-goupnp
(package
(name "go-github-com-huin-goupnp")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/huin/goupnp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "04j5rmrfawjxcimiqpyjm9gm5phdndjxrmydf9f1ylij6m360nwl"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodules with their own go.mod files and packed as separated
;; packages:
;;
;; - github.com/huin/goupnp/v2alpha
(for-each delete-file-recursively
(list "v2alpha"))))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/huin/goupnp"
#:phases
#~(modify-phases %standard-phases
;; XXX: Run all tests, workaround for go-build-system's lack of Go
;; modules support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(home-page "https://github.com/huin/goupnp")
(propagated-inputs
(list go-golang-org-x-sync))
(synopsis "UPnP client library for Go")
(description
"@code{goupnp} is a @acronym{Universal Plug and Play, UPnP} client
library for Go.
Core components:
@itemize
@item @code{goupnp}: core library - contains datastructures and utilities
typically used by the implemented DCPs
@item @code{httpu}: HTTPU implementation, underlies SSDP
@item @code{ssdp}: SSDP client implementation (simple service discovery
protocol) - used to discover UPnP services on a network
@item @code{soap}: SOAP client implementation (simple object access protocol)
- used to communicate with discovered services
@end itemize")
(license license:bsd-2)))
(define-public go-github-com-jackpal-gateway
(package
(name "go-github-com-jackpal-gateway")
(version "1.0.15")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jackpal/gateway")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0dlspnbdz63b3kpavibd2764hdy53mx1v3vrqi721dsjy77r9ig3"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jackpal/gateway"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/jackpal/gateway")
(synopsis "Discover the address of a LAN gateway")
(description
"@code{gateway} is a Go library for discovering the IP address of the
default LAN gateway.")
(license license:bsd-3)))
(define-public go-github-com-jackpal-go-nat-pmp
(package
(name "go-github-com-jackpal-go-nat-pmp")
(version "1.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jackpal/go-nat-pmp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1p2yrzfbkazc9nisr2iqjwzhb6q16zj6finyxxn2ikk7iiighl1g"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jackpal/go-nat-pmp"))
(home-page "https://github.com/jackpal/go-nat-pmp")
(synopsis "Port mapping and discovery of external IP address")
(description
"This package provides a Go client for the NAT-PMP internet protocol for
port mapping and discovering the external IP address of a firewall.")
(license license:asl2.0)))
(define-public go-github-com-jcmturner-dnsutils-v2
(package
(name "go-github-com-jcmturner-dnsutils-v2")
(version "2.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jcmturner/dnsutils")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "116zbgvfj88vv93fnapmmgyd5g8kzy774cdyzsnnzyzng92j61c9"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/jcmturner/dnsutils/v2"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/jcmturner/dnsutils")
(synopsis "Go library with DNS utils")
(description
"The dnsutils package provides a Go function to return a map of Service
Records (SRV) in the order they should be used for a given service, protocol
and name. The order is determined by the records' priority and randomized
selection based on their relative weighting. This package is useful for
network applications that require accessing services using SRV records.")
(license license:asl2.0)))
(define-public go-github-com-jcmturner-goidentity-v6
(package
(name "go-github-com-jcmturner-goidentity-v6")
(version "6.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jcmturner/goidentity")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "064ysvxvrvij843s7qj1nkzl5qc6j1qbrsb3s0zmwd1sa7vq8q1n"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/jcmturner/goidentity/v6"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-hashicorp-go-uuid))
(home-page "https://github.com/jcmturner/goidentity")
(synopsis "Hold authenticated identities and their attributes")
(description "This package provides a standard interface for holding
authenticated identities and their attributes.")
(license license:asl2.0)))
(define-public go-github-com-jcmturner-gokrb5-v8
(package
(name "go-github-com-jcmturner-gokrb5-v8")
(version "8.4.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jcmturner/gokrb5")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0w9d1pa3r6qmdblk25bghf78ncs03l15l1sxnh4n536c356rzq4b"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/jcmturner/gokrb5/v8"
#:unpack-path "github.com/jcmturner/gokrb5"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-gorilla-sessions
go-github-com-hashicorp-go-uuid
go-github-com-jcmturner-aescts-v2
go-github-com-jcmturner-dnsutils-v2
go-github-com-jcmturner-gofork
go-github-com-jcmturner-goidentity-v6
go-github-com-jcmturner-rpc-v2-mstypes
go-github-com-jcmturner-rpc-v2-ndr
go-golang-org-x-crypto
go-golang-org-x-net))
(home-page "https://github.com/jcmturner/gokrb5")
(synopsis "Pure Go Kerberos library for clients and services")
(description "This package provides a pure Go Kerberos library. It
features:
@itemize
@item Kerberos libraries for custom integration
@item Parsing Keytab files
@item Parsing krb5.conf files
@item Parsing client credentials cache files such as /tmp/krb5cc_$(id -u $(whoami))
@end itemize
On the client side, it provides a client that can authenticate to an SPNEGO
Kerberos authenticated web service, and the ability to change client's
password.
On the server side, the library provides a HTTP handler wrapper implements
SPNEGO Kerberos authentication, as well as a HTTP handler wrapper decodes
Microsoft AD PAC authorization data.")
(license license:asl2.0)))
(define-public go-github-com-jhillyerd-enmime
(package
(name "go-github-com-jhillyerd-enmime")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jhillyerd/enmime")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "03pir9wq9ha2i2ifj819yv5i0lvrgdn904ksbzgc3k8bqc497ydn"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/jhillyerd/enmime"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-cention-sany-utf7
go-github-com-go-test-deep
go-github-com-gogs-chardet
go-github-com-jaytaylor-html2text
go-github-com-pkg-errors
go-golang-org-x-text))
(home-page "https://github.com/jhillyerd/enmime")
(synopsis "MIME encoder and decoder for Go")
(description
"The enmime package implements a MIME encoding and decoding library
geared towards parsing MIME encoded emails.")
(license license:expat)))
(define-public go-github-com-jlaffaye-ftp
(package
(name "go-github-com-jlaffaye-ftp")
(version "0.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jlaffaye/ftp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0z9d1dxhx351158a22a08qbnfql7a1cajg6v3zm82m2rnp17ahir"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jlaffaye/ftp"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-hashicorp-go-multierror))
(home-page "https://github.com/jlaffaye/ftp")
(synopsis "FTP client package for Go")
(description
"Package ftp implements a @acronym{File Transfer Protocol,FTP} client as
described in @url{https://www.rfc-editor.org/rfc/rfc959,RFC 959}.")
(license license:isc)))
(define-public go-github-com-jmespath-go-jmespath
(package
(name "go-github-com-jmespath-go-jmespath")
(version "0.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jmespath/go-jmespath")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "18zyr9nlywmwp3wpzcjxrgq9s9d2mmc6zg6xhsna00m663nkyc3n"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/jmespath/go-jmespath"))
(native-inputs
(list go-github-com-davecgh-go-spew
go-github-com-pmezard-go-difflib
go-github-com-stretchr-objx
go-gopkg-in-yaml-v2))
(home-page "https://github.com/jmespath/go-jmespath")
(synopsis "Golang implementation of JMESPath")
(description
"This package implements JMESPath, a query language for JSON. It
transforms one JSON document into another through a JMESPath expression.")
(license license:asl2.0)))
(define-public go-github-com-jsimonetti-rtnetlink
(package
(name "go-github-com-jsimonetti-rtnetlink")
(version "1.4.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jsimonetti/rtnetlink")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "19m8fcrcbw98gc191snfsi6qhb80jxnjhxzy8gppcwwg6732wmm1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jsimonetti/rtnetlink"))
(native-inputs
(list go-github-com-google-go-cmp))
(propagated-inputs
(list go-github-com-mdlayher-netlink go-golang-org-x-sys))
(home-page "https://github.com/jsimonetti/rtnetlink")
(synopsis "Low-level access to the Linux rtnetlink API")
(description
"This package allows the kernel's routing tables to be read and
altered. Network routes, IP addresses, Link parameters, Neighbor
setups,Queueing disciplines, Traffic classes and Packet classifiers may all be
controlled. It is based on netlink messages.")
(license license:expat)))
(define-public go-github-com-jsimonetti-rtnetlink-v2
(package
(inherit go-github-com-jsimonetti-rtnetlink)
(name "go-github-com-jsimonetti-rtnetlink-v2")
(version "2.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jsimonetti/rtnetlink")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lgx3kip6hiigahcnvjy7d1qqxbm2vnfh2m3zrpfkqkh03dl39x4"))))
(arguments
(list
#:import-path "github.com/jsimonetti/rtnetlink/v2"))))
(define-public go-github-com-json-iterator-go
(package
(name "go-github-com-json-iterator-go")
(version "1.1.12")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/json-iterator/go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1c8f0hxm18wivx31bs615x3vxs2j3ba0v6vxchsjhldc8kl311bz"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/json-iterator/go"))
(native-inputs
(list go-github-com-davecgh-go-spew
go-github-com-google-gofuzz
go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-modern-go-concurrent
go-github-com-modern-go-reflect2))
(home-page "https://github.com/json-iterator/go")
(synopsis "High-performance replacement for Golang @code{encoding/json}")
(description
"This package implements encoding and decoding of JSON as defined in
@uref{https://rfc-editor.org/rfc/rfc4627.html,RFC 4627} and provides
interfaces with identical syntax of standard lib encoding/json. Converting
from encoding/json to jsoniter is no more than replacing the package with
jsoniter and variable type declarations (if any). jsoniter interfaces gives
100% compatibility with code using standard lib.")
(license license:expat)))
(define-public go-github-com-julienschmidt-httprouter
(package
(name "go-github-com-julienschmidt-httprouter")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/julienschmidt/httprouter")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1a6sy0ysqknsjssjh7qg1dqn21xmj9a36c57nrk7srfmab4ffmk1"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/julienschmidt/httprouter"))
(home-page "https://github.com/julienschmidt/httprouter")
(synopsis "High performance HTTP request router")
(description
"Package @code{httprouter} is a trie based high performance HTTP request
router.")
(license license:bsd-3)))
(define-public go-github-com-koron-go-ssdp
(package
(name "go-github-com-koron-go-ssdp")
(version "0.0.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/koron/go-ssdp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0agzxzlwvnhgwk6sxswjq7v1ghmf0l02gr7zpdih24i3g457af4f"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/koron/go-ssdp"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\_test.go$")
;; Test requiring network setup.
(("TestAdvertise_Alive") "OffTestAdvertise_Alive")
(("TestAdvertise_Bye") "OffTestAdvertise_Bye")
(("TestAnnounceAlive") "OffTestAnnounceAlive")
(("TestAnnounceBye") "OffTestAnnounceBye")
(("TestInterfaces") "OffTestInterfaces")
(("TestSearch_Request") "OffTestSearch_Request")
(("TestSearch_Response") "OffTestSearch_Response")
(("TestSearch_ServiceRawHeader") "OffTestSearch_ServiceRawHeader")))))
;; XXX: Run all tests, workaround for go-build-system's lack of Go
;; modules support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/koron/go-ssdp")
(synopsis "SSDP library for Golang")
(description
"@code{go-ssdp} is a @url{https://tools.ietf.org/html/draft-cai-ssdp-v1-03,
@acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.")
(license license:expat)))
(define-public go-github-com-libp2p-go-cidranger
(package
(name "go-github-com-libp2p-go-cidranger")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-cidranger")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba"))))
(build-system go-build-system)
(arguments
(list
;; XXX: Check if the most of the tests may be enabled:
;; src/github.com/libp2p/go-cidranger/trie_test.go:557:8: cannot use
;; 4294967295 (untyped int constant) as int value in assignment
;; (overflows).
#:tests? (target-64bit?)
#:import-path "github.com/libp2p/go-cidranger"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-ipfs-go-detect-race))
(home-page "https://github.com/libp2p/go-cidranger")
(synopsis "Fast IP to CIDR lookup in Golang")
(description
"Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing,
CIDR} block(s) lookup using trie in Golang, inspired by
@url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4
route lookup Linux}. Possible use cases include detecting if a IP address is
from published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in
published AWS Route53 CIDR 52.95.110.0/24), IP routing rules, etc.")
(license license:expat)))
(define-public go-github-com-libp2p-go-doh-resolver
(package
(name "go-github-com-libp2p-go-doh-resolver")
(version "0.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-doh-resolver")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0asni7f3gd65bjfqz99fqchz9y75cpgmfwkkhsbq0y2dydagw666"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-doh-resolver"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-ipfs-go-log-v2
go-github-com-miekg-dns
go-github-com-multiformats-go-multiaddr-dns))
(home-page "https://github.com/libp2p/go-doh-resolver")
(synopsis "DNS over HTTPS resolver")
(description
"This package provides an implementation DNS over HTTPS resolver as
specified in @url{https://datatracker.ietf.org/doc/html/rfc8484, RFC 8484}.")
(license license:expat)))
(define-public go-github-com-libp2p-go-flow-metrics
(package
(name "go-github-com-libp2p-go-flow-metrics")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-flow-metrics")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "13yb68vrcn2zdi0mjjh17dphfxl6y99bkq0ia53hasyfj6l6626h"))))
(build-system go-build-system)
(arguments
;; XXX: Tests may hang sometimes, see
;; <https://github.com/libp2p/go-flow-metrics/issues/30>.
(list
#:import-path "github.com/libp2p/go-flow-metrics"))
(propagated-inputs
(list go-github-com-benbjohnson-clock))
(home-page "https://github.com/libp2p/go-flow-metrics")
(synopsis "Simple library for tracking flow metrics")
(description
"A simple alternative to rcrowley's @command{go-metrics} that's a lot
faster (and only does simple bandwidth metrics).")
(license license:expat)))
(define-public go-github-com-libp2p-go-libp2p-asn-util
(package
(name "go-github-com-libp2p-go-libp2p-asn-util")
(version "0.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-libp2p-asn-util")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1c94sq43bl1kp04lllcfrfyiy5z3zcfz0s65sm1vgb2s40zrwpr7"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-libp2p-asn-util"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-golang-org-x-exp))
(home-page "https://github.com/libp2p/go-libp2p-asn-util")
(synopsis "Golang library for IP to ASN mapping")
(description
"@code{go-libp2p-asn-util} is a Golang library to lookup the
@acronym{ASN, Autonomous System Number} for an IP address. It uses the IPv6
to ASN database downloaded from https://iptoasn.com/. Supports only IPv6
addresses for now.")
(license license:expat)))
(define-public go-github-com-libp2p-go-nat
(package
(name "go-github-com-libp2p-go-nat")
(version "0.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-nat")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1yyb3knxvfr7fi759nh7mhh88ap1jpkb7nky7niqrh75737phgh0"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-nat"))
(propagated-inputs
(list go-github-com-huin-goupnp
go-github-com-jackpal-go-nat-pmp
go-github-com-koron-go-ssdp
go-github-com-libp2p-go-netroute))
(home-page "https://github.com/libp2p/go-nat")
(synopsis "NAT port mapping library for Golang")
(description
"Package @code{go-nat} implements NAT handling facilities.")
(license license:asl2.0)))
(define-public go-github-com-libp2p-go-netroute
(package
(name "go-github-com-libp2p-go-netroute")
(version "0.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-netroute")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "06p68j63fd5nf2gf1fz2pnksmdmv735swpbpvnhb15vrgg3r528g"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-netroute"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\_test.go$")
;; Test requiring network access: no route found for 8.8.8.8
(("TestRoute") "OffTestRoute"))))))))
(propagated-inputs
(list go-github-com-google-gopacket
go-golang-org-x-net
go-golang-org-x-sys))
(home-page "https://github.com/libp2p/go-netroute")
(synopsis "Routing table abstraction library for Golang")
(description
"@code{go-netroute} provides an implementation of the
@url{https://godoc.org/github.com/google/gopacket/routing#Router,
gopacket/routing.Router} interface for Golang.")
(license license:bsd-3)))
(define-public go-github-com-libp2p-go-reuseport
(package
(name "go-github-com-libp2p-go-reuseport")
(version "0.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-reuseport")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "012kgriw1bchf0apk6ff4y34n9mffbh0cmi15348v9vj3h4w3sa5"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-reuseport"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-google-gopacket
go-golang-org-x-net
go-golang-org-x-sys))
(home-page "https://github.com/libp2p/go-reuseport")
(synopsis "Reuse TCP/UDP ports in Golang")
(description
"@code{go-reuseport} enables listening and dialing from the same TCP or
UDP port. This means that @code{SO_REUSEADDR} and @code{SO_REUSEPORT} socket
options may be set. This is particularly important when attempting to do TCP
NAT hole-punching, which requires a process to both @code{Listen} and
@code{Dial} on the same TCP port. @code{go-reuseport} provides some utilities
around enabling this behaviour on various operating systems.")
(license license:isc)))
(define-public go-github-com-libp2p-go-socket-activation
(package
(name "go-github-com-libp2p-go-socket-activation")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-socket-activation")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1cqxzmjfg7838xifs07kigys9icardwlj1wl426mzgzmbwn6pg5s"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-socket-activation"))
(propagated-inputs
(list go-github-com-coreos-go-systemd-v22
go-github-com-ipfs-go-log
go-github-com-multiformats-go-multiaddr))
(home-page "https://github.com/libp2p/go-socket-activation")
(synopsis "Multiaddr backed systemd socket activation")
(description
"This package provides access to sockets registered by the system's init
daemon as described in
@url{http://0pointer.de/blog/projects/socket-activation}.")
(license license:expat)))
(define-public go-github-com-libp2p-go-yamux-v4
(package
(name "go-github-com-libp2p-go-yamux-v4")
(version "4.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/go-yamux")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "13px8fcjjp02cricabbf3x410jkr8sb6r369nqq1zrgr7v90s22j"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/libp2p/go-yamux/v4"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-libp2p-go-buffer-pool))
(home-page "https://github.com/libp2p/go-yamux")
(synopsis "Reuse TCP/UDP ports in Golang")
(description
"Yamux (Yet another Multiplexer) is a multiplexing library for Golang.
It relies on an underlying connection to provide reliability and ordering,
such as TCP or Unix domain sockets, and provides stream-oriented multiplexing.
It is inspired by SPDY but is not interoperable with it.")
(license (list license:mpl2.0 license:bsd-3))))
(define-public go-github-com-libp2p-zeroconf-v2
(package
(name "go-github-com-libp2p-zeroconf-v2")
(version "2.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/libp2p/zeroconf")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xrqdi7s8296963zh7gz450ivbniar7723xlr8v9nh90cyy1ah3r"))))
(build-system go-build-system)
(arguments
(list
#:tests? #f ; it requires netwok setup
#:import-path "github.com/libp2p/zeroconf/v2"))
(propagated-inputs
(list go-github-com-miekg-dns go-golang-org-x-net))
(home-page "https://github.com/libp2p/zeroconf")
(synopsis "mDNS/DNS-SD Service Discovery in pure Golang")
(description
"This package implements a service discovery functionality specified in
@url{https://tools.ietf.org/html/rfc6762, RFC 6762} (mDNS) and
@url{https://tools.ietf.org/html/rfc6763, RFC 6763} (DNS-SD) standards which
intends to be compatible with Avahi.")
(license license:expat)))
(define-public go-github-com-mailru-easyjson
(package
(name "go-github-com-mailru-easyjson")
(version "0.7.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mailru/easyjson")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0clifkvvy8f45rv3cdyv58dglzagyvfcqb63wl6rij30c5j2pzc1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mailru/easyjson"))
(propagated-inputs
(list go-github-com-josharian-intern))
(home-page "https://github.com/mailru/easyjson")
(synopsis "JSON serializer for Golang")
(description
"Package @code{easyjson} implements functionality to marshal/unmarshal
Golang structs to/from JSON without the use of reflection. It also aims to
keep generated Go code simple enough so that it can be easily optimized or
fixed.")
(license license:expat)))
(define-public go-github-com-makeworld-the-better-one-go-gemini
(package
(name "go-github-com-makeworld-the-better-one-go-gemini")
(version "0.13.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/makew0rld/go-gemini")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "196rxfg7w8s3zn87gra1mxh1l8iav6kdmg909gkbnc9cxip65zc0"))))
(build-system go-build-system)
(propagated-inputs
(list go-github-com-google-go-cmp
go-golang-org-x-net
go-golang-org-x-text))
(arguments
(list
#:import-path "github.com/makeworld-the-better-one/go-gemini"))
(home-page "https://github.com/makew0rld/go-gemini")
(synopsis "Client/server library for the Gemini protocol, in Go")
(description
"@code{go-gemini} is a library that provides an easy interface to create
clients that speak the Gemini protocol.")
(license license:isc)))
(define-public go-github-com-makeworld-the-better-one-go-gemini-socks5
(package
(name "go-github-com-makeworld-the-better-one-go-gemini-socks5")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/makew0rld/go-gemini-socks5")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0r8iljs12nhyn3nk5dzsji9hi88fivashbrcb5d42x5rvzry15px"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/makeworld-the-better-one/go-gemini-socks5"))
(propagated-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/makeworld-the-better-one/go-gemini-socks5")
(synopsis "SOCKS5 proxy for go-gemini")
(description
"This package provides SOCKS5 proxy for
@@url{https://github.com/makeworld-the-better-one/go-gemini,go-gemini}.")
(license license:expat)))
(define-public go-github-com-marten-seemann-tcp
(package
(name "go-github-com-marten-seemann-tcp")
(version "0.0.0-20210406111302-dfbc87cc63fd")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/marten-seemann/tcp")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0l03l7vx5j641bsgqzlcdshmsi7m1x0yny8i81hx5c5fbg5c25zx"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/marten-seemann/tcp"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "_test\\.go$")
;; couldn't initialize from a wrapped conn: unknown
;; connection type
(("TestWrappedConn") "OffTestWrappedConn")
;; Get "https://golang.org/robots.txt": dial tcp: lookup
;; golang.org on [::1]:53: read udp [::1]:56806->[::1]:53:
;; read: connection refused
(("TestInfo") "OffTestInfo"))))))))
(native-inputs
(list go-golang-org-x-net))
(propagated-inputs
(list go-github-com-mikioh-tcp))
(home-page "https://github.com/marten-seemann/tcp")
(synopsis "TCP-level socket options implementation in Golang")
(description
"This package provides a TCP-level socket options that allow manipulation
of TCP connection facilities.")
(license license:bsd-2)))
(define-public go-github-com-mattbaird-jsonpatch
(package
(name "go-github-com-mattbaird-jsonpatch")
(version "0.0.0-20240118010651-0ba75a80ca38")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattbaird/jsonpatch")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1nxbrpk8bvvmfgl4sfsbx82g0q44i2sakl7vigbsj3prx6nql5iv"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mattbaird/jsonpatch"))
(native-inputs
(list go-github-com-evanphx-json-patch go-github-com-stretchr-testify))
(home-page "https://github.com/mattbaird/jsonpatch")
(synopsis "JSON Patch library for Go")
(description
"@url{http://jsonpatch.com/, JSON Patch} implementation for Go as
specified in @url{https://datatracker.ietf.org/doc/html/rfc6902/, RFC 6902}
from the IETF.
JSON Patch allows you to generate JSON that describes changes you want to make
to a document, so you don't have to send the whole doc. JSON Patch format is
supported by HTTP PATCH method, allowing for standards based partial updates
via REST APIs.")
(license license:asl2.0)))
(define-public go-github-com-mdlayher-netlink
(package
(name "go-github-com-mdlayher-netlink")
(version "1.7.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mdlayher/netlink")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mdlayher/netlink"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "_test\\.go$")
;; failed to start command "ip": exec: "ip": executable file
;; not found in $PATH
(("TestIntegrationConnSetBuffersSyscallConn")
"OffTestIntegrationConnSetBuffersSyscallConn"))))))))
(propagated-inputs
(list go-github-com-google-go-cmp
go-github-com-josharian-native
go-github-com-mdlayher-socket
go-golang-org-x-net
go-golang-org-x-sys))
(home-page "https://github.com/mdlayher/netlink")
(synopsis "Low-level access to Linux netlink sockets")
(description
"This package provides a low-level access to Linux netlink
sockets (AF_NETLINK).")
(license license:expat)))
(define-public go-github-com-mdlayher-socket
(package
(name "go-github-com-mdlayher-socket")
(version "0.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mdlayher/socket")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1bq6sphsffjqqk2v9wy8qkv5yf0r6d72pklapgy3znqlnpgvnqab"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mdlayher/socket"))
(native-inputs
(list go-github-com-google-go-cmp))
(propagated-inputs
(list go-golang-org-x-net go-golang-org-x-sync go-golang-org-x-sys))
(home-page "https://github.com/mdlayher/socket")
(synopsis "Low-level network connection type with async I/O and deadline support")
(description
"This package provides a low-level network connection type which
integrates with Go's runtime network poller to provide asynchronous I/O and
deadline support.")
(license license:expat)))
(define-public go-github-com-microcosm-cc-bluemonday
(package
(name "go-github-com-microcosm-cc-bluemonday")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/microcosm-cc/bluemonday")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "071ph097c1iwbcc33x6kblj9rxb1r4mp3qfkrj4qw5mg7qcqxydk"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/microcosm-cc/bluemonday"))
(propagated-inputs
(list go-github-com-chris-ramon-douceur
go-golang-org-x-net))
(home-page "https://github.com/microcosm-cc/bluemonday/")
(synopsis "HTML sanitizer")
(description "@code{bluemonday} is a HTML sanitizer implemented in Go.")
(license license:bsd-3)))
(define-public go-github-com-miekg-dns
(package
(name "go-github-com-miekg-dns")
(version "1.1.62")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/miekg/dns")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0wdsacp4ay6ji72vnszq6ksn5n060z2hv94wgjsn0pr7gpa3nk6c"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/miekg/dns"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "\\_test.go$")
;; Unable to run test server.
(("TestIsPacketConn") "OffTestIsPacketConn"))))))))
(propagated-inputs
(list go-golang-org-x-tools
go-golang-org-x-sys
go-golang-org-x-sync
go-golang-org-x-net))
(home-page "https://github.com/miekg/dns")
(synopsis "Domain Name Service library in Go")
(description
"This package provides a fully featured interface to the @acronym{DNS,
Domain Name System}. Both server and client side programming is supported.
The package allows complete control over what is sent out to the @acronym{DNS,
Domain Name Service}. The API follows the less-is-more principle, by
presenting a small interface.")
(license license:bsd-3)))
(define-public go-github-com-mikioh-tcp
(package
(name "go-github-com-mikioh-tcp")
(version "0.0.0-20190314235350-803a9b46060c")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mikioh/tcp")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0mwldbqkl6j4lzxar5pnvi946w0iifmw43rmanbwzp7ngx27fz5a"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mikioh/tcp"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* (find-files "." "_test\\.go$")
;; Get "https://golang.org/robots.txt": dial tcp: lookup
;; golang.org on [::1]:53: read udp [::1]:47181->[::1]:53:
;; read: connection refused.
(("TestInfo") "OffTestInfo"))))))))
(native-inputs
(list go-golang-org-x-net))
(propagated-inputs
(list go-github-com-mikioh-tcpinfo))
(home-page "https://github.com/mikioh/tcp")
(synopsis "TCP-level socket options implementation in Golang")
(description
"This package implements a TCP-level socket options that allow
manipulation of TCP connection facilities.")
(license license:bsd-2)))
(define-public go-github-com-mikioh-tcpinfo
(package
(name "go-github-com-mikioh-tcpinfo")
(version "0.0.0-20190314235526-30a79bb1804b")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mikioh/tcpinfo")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "053dwvlawhhm7ly2vhjziqdifnqp12dav6rsbxbcivjjzyzw987f"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mikioh/tcpinfo"
#:phases
#~(modify-phases %standard-phases
;; It inroduce cycle with go-github-com-mikioh-tcp.
(add-after 'unpack 'remove-examples
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file "example_test.go")))))))
(propagated-inputs
(list go-github-com-mikioh-tcpopt))
(home-page "https://github.com/mikioh/tcpinfo")
(synopsis "Encoding and decoding of TCP-level socket options")
(description
"This package implements an encoding and decoding of TCP-level socket
options regarding connection information.")
(license license:bsd-2)))
(define-public go-github-com-mikioh-tcpopt
(package
(name "go-github-com-mikioh-tcpopt")
(version "0.0.0-20190314235656-172688c1accc")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mikioh/tcpopt")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1qdr0vmriy0wf6zg7hpq75g3b4nvp2p4gsc6xqvqg298v42zbrqj"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mikioh/tcpopt"
#:phases
#~(modify-phases %standard-phases
;; It inroduce cycle with go-github-com-mikioh-tcp.
(add-after 'unpack 'remove-examples
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file "example_test.go")))))))
(home-page "https://github.com/mikioh/tcpopt")
(synopsis "Encoding and decoding of TCP-level socket options in Golang")
(description
"This package implements an encoding and decoding of TCP-level socket
options.")
(license license:bsd-2)))
(define-public go-github-com-multiformats-go-multiaddr
(package
(name "go-github-com-multiformats-go-multiaddr")
(version "0.13.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/multiformats/go-multiaddr")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0029zjhndbisfsc2msd2h18pcw23rqvf40drkcf7nxic3y2vaff7"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/multiformats/go-multiaddr"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-ipfs-go-cid
go-github-com-multiformats-go-multibase
go-github-com-multiformats-go-varint
go-github-com-multiformats-go-multihash
go-golang-org-x-exp))
(home-page "https://github.com/multiformats/go-multiaddr")
(synopsis "Composable and future-proof network addresses")
(description
"Multiaddr is a standard way to represent addresses that does the
following:
@itemize
@item Support any standard network protocols.
@item Self-describe (include protocols).
@item Have a binary packed format.
@item Have a nice string representation.
@item Encapsulate well.
@end itemize")
(license license:expat)))
(define-public go-github-com-multiformats-go-multiaddr-dns
(package
(name "go-github-com-multiformats-go-multiaddr-dns")
(version "0.3.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/multiformats/go-multiaddr-dns")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "17qpcgxlmji6wdnjabl5ihc4zn69w2g0karad46zj70y5zg4y24r"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/multiformats/go-multiaddr-dns"
#:unpack-path "github.com/multiformats/go-multiaddr-dns"))
(propagated-inputs
(list go-github-com-miekg-dns
go-github-com-multiformats-go-multiaddr))
(home-page "https://multiformats.io/multiaddr/")
(synopsis "Library and CLI tool for DNS multiaddr resolution")
(description
"Go library for /dns4, /dns6, /dnsaddr multiaddr resolution.")
(license license:expat)))
(define-public go-github-com-multiformats-go-multiaddr-fmt
(package
(name "go-github-com-multiformats-go-multiaddr-fmt")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/multiformats/go-multiaddr-fmt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "119qqrnhzcb9im428alssv2dz9rrj74hy0asd10bnfv2d5fd09nm"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/multiformats/go-multiaddr-fmt"))
(propagated-inputs
(list go-github-com-multiformats-go-multiaddr))
(home-page "https://github.com/multiformats/go-multiaddr-fmt")
(synopsis "Declarative validator for multiaddrs")
(description
"This package provides a validation checker for multiaddrs. Some basic
validators for common address types are provided, but creating your own
combinations is easy.")
(license license:expat)))
(define-public go-github-com-multiformats-go-multistream
(package
(name "go-github-com-multiformats-go-multistream")
(version "0.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/multiformats/go-multistream")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1mlcz16ii090vq6brm02dmmkj8akkafa55kyvkrrwpq6zvj1hy23"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/multiformats/go-multistream"))
(propagated-inputs
(list go-github-com-multiformats-go-varint))
(home-page "https://github.com/multiformats/go-multistream")
(synopsis "Implementation of the multistream protocol in Golang")
(description
"Package multistream implements a simple stream router for the
multistream-select protocol. The protocol is defined at
@url{https://github.com/multiformats/multistream-select}")
(license license:expat)))
(define-public go-github-com-munnerz-goautoneg
(package
(name "go-github-com-munnerz-goautoneg")
(version "0.0.0-20191010083416-a7dc8b61c822")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/munnerz/goautoneg")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1m4v6bw6yf1g0kvpc46isjp0qfhx2y8gnvlnyjf637jy64613mgg"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/munnerz/goautoneg"))
(home-page "https://github.com/munnerz/goautoneg")
(synopsis "HTTP Content-Type Autonegotiation")
(description
"This package implements @url{https://rfc-editor.org/rfc/rfc2616.html,RFC
2616} HTTP/1.1 standard.")
(license license:bsd-3)))
(define-public go-github-com-nwidger-jsoncolor
(package
(name "go-github-com-nwidger-jsoncolor")
(version "0.3.0")
(home-page "https://github.com/nwidger/jsoncolor")
(source
(origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "13rd146pnj7qm70r1333gyd1f61x40nafxlpvdxlci9h7mx8c5p8"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/nwidger/jsoncolor"))
(native-inputs
(list go-github-com-fatih-color))
(synopsis "Colorized JSON marshalling and encoding")
(description
"@code{jsoncolor} is a drop-in replacement for @code{encoding/json}'s
@code{Marshal} and @code{MarshalIndent} functions and @code{Encoder} type
which produce colorized output using github.com/fatih/color.")
(license license:expat)))
(define-public go-github-com-opentracing-contrib-go-stdlib
(package
(name "go-github-com-opentracing-contrib-go-stdlib")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/opentracing-contrib/go-stdlib")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ssnfhbpljxy2v3nsw9aqmh7xlky49dpfwj275aj0b576w46ys6m"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/opentracing-contrib/go-stdlib"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules support.
(delete 'build)
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-opentracing-opentracing-go))
(home-page "https://github.com/opentracing-contrib/go-stdlib")
(synopsis "OpenTracing instrumentation for packages in the Golang stdlib")
(description
"This package provides an OpenTracing instrumentation for @code{net/http}
standard library.")
(license license:asl2.0)))
(define-public go-github-com-opentracing-opentracing-go
(package
(name "go-github-com-opentracing-opentracing-go")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/opentracing/opentracing-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "04rgdwl29kimp2wnm4dycnzp7941hvpj6wym85x23c6fclacm94h"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/opentracing/opentracing-go"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/opentracing/opentracing-go")
(synopsis "OpenTracing API for Go")
(description "OpenTracing-Go is a Go implementation of the OpenTracing API.")
(license license:asl2.0)))
(define-public go-github-com-oschwald-geoip2-golang
(package
(name "go-github-com-oschwald-geoip2-golang")
(version "1.11.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/oschwald/geoip2-golang")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0670cv1b9c2p0lx63rlwl7kplbvzr79apbw13109v0pv4qlapmhx"))))
(build-system go-build-system)
(arguments
(list
#:tests? #f ; Requires some unpackaged software and test data
#:import-path "github.com/oschwald/geoip2-golang"))
(propagated-inputs
(list go-github-com-oschwald-maxminddb-golang))
(home-page "https://github.com/oschwald/geoip2-golang")
(synopsis "MaxMind GeoIP2 reader")
(description
"This package provides a library for reading MaxMind GeoLite2 and GeoIP2
databases in Go.")
(license license:isc)))
(define-public go-github-com-oschwald-maxminddb-golang
(package
(name "go-github-com-oschwald-maxminddb-golang")
(version "1.13.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/oschwald/maxminddb-golang")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1p0c10r6850znvarc9h3y0jlwika9qmq0ys7rmg2aj8x2cffz3z6"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/oschwald/maxminddb-golang"
#:phases
#~(modify-phases %standard-phases
;; XXX: Remove most of the tests requiring test-data from submodule
;; <https://github.com/maxmind/MaxMind-DB>, there is a documented
;; process on how to generate it, consider to pack and activate
;; tests in the next update cycle.
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
(list "decoder_test.go"
"deserializer_test.go"
"example_test.go"
"reader_test.go"
"traverse_test.go"
"verifier_test.go"))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/oschwald/maxminddb-golang")
(synopsis "MaxMind DB Reader for Go")
(description
"This is a Go reader for the MaxMind DB format. Although this can be
used to read GeoLite2 and GeoIP2 databases, @code{geoip2} provides a
higher-level API for doing so.")
(license license:isc)))
(define-public go-github-com-pion-datachannel
(package
(name "go-github-com-pion-datachannel")
(version "1.5.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/datachannel")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0v2xwrzvflrh1s8x6p1dj9h0hmxsp30h8whbl5p544r30rvsbnp2"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/datachannel"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-sctp
go-github-com-pion-transport-v3))
(home-page "https://github.com/pion/datachannel")
(synopsis "Implementation of WebRTC Data Channels in Golang")
(description
"This package implements @code{WebRTC} Data Channels.")
(license license:expat)))
(define-public go-github-com-pion-dtls
(package
(name "go-github-com-pion-dtls")
(version "1.5.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/dtls")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qc5dbgh31lilbd1lpmajj1fjzy4jx9iadzqgl9jd1ry9fj3ly1d"))))
(build-system go-build-system)
(arguments
(list
;; XXX: TestClientCertificate: Client failed(x509: certificate relies on
;; legacy Common Name field, use SANs instead)
#:tests? #f
#:import-path "github.com/pion/dtls"))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-transport
go-golang-org-x-crypto))
(home-page "https://github.com/pion/dtls")
(synopsis "DTLS 1.2 Server/Client implementation for Go")
(description
"This package provides a native
@url{https://datatracker.ietf.org/doc/html/rfc6347, DTLS 1.2} implementation
in Golang.")
(license license:expat)))
(define-public go-github-com-pion-dtls-v2
(package
(inherit go-github-com-pion-dtls)
(name "go-github-com-pion-dtls-v2")
(version "2.2.12")
(source
(origin
(inherit (package-source go-github-com-pion-dtls))
(uri (git-reference
(url "https://github.com/pion/dtls")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fihyk4p7mqilj4ymdrgns6fg3c2pfsi12v145im5vy1gxy6lc42"))))
(arguments
(list
#:import-path "github.com/pion/dtls/v2"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-transport-v2
go-golang-org-x-crypto
go-golang-org-x-net))))
(define-public go-github-com-pion-dtls-v3
(package
(inherit go-github-com-pion-dtls-v2)
(name "go-github-com-pion-dtls-v3")
(version "3.0.2")
(source
(origin
(inherit (package-source go-github-com-pion-dtls))
(uri (git-reference
(url "https://github.com/pion/dtls")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0czn0v2i9czq6934sirbimgkn6avgzvw63ifm2b0bkh2qmmpim01"))))
(arguments
(list
#:import-path "github.com/pion/dtls/v3"))
(native-inputs
(modify-inputs (package-native-inputs go-github-com-pion-dtls-v2)
(delete go-github-com-stretchr-testify)))
(propagated-inputs
(modify-inputs (package-propagated-inputs go-github-com-pion-dtls-v2)
(replace "go-github-com-pion-transport-v2"
go-github-com-pion-transport-v3)))))
(define-public go-github-com-pion-ice
(package
(name "go-github-com-pion-ice")
(version "0.7.18")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/ice/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "17108z4fkr9b2fxf5icxspgif29a40gi57bhp9a50mlfr36yv9vk"))))
(build-system go-build-system)
(arguments
(list
;; Source-only package
#:tests? #f
#:import-path "https://github.com/pion/ice"
#:phases
;; Failed to build and only requried for inheritance:
;;
;; cannot use a.net (type *vnet.Net) as type transport.Net in field value:
;; *vnet.Net does not implement transport.Net (wrong type for CreateDialer method)
;; have CreateDialer(*net.Dialer) vnet.Dialer
;; want CreateDialer(*net.Dialer) transport.Dialer
#~(modify-phases %standard-phases
(delete 'build))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-google-uuid
go-github-com-pion-dtls-v2
go-github-com-pion-logging
go-github-com-pion-mdns
go-github-com-pion-randutil
go-github-com-pion-stun
go-github-com-pion-transport
go-github-com-pion-turn-v2
go-golang-org-x-net))
(home-page "https://github.com/pion/ice/")
(synopsis "Go implementation of ICE")
(description
"This package provides an implementation of @acronym{ICE, Interactive
Connectivity Establishment protocol}, specified in
@url{https://datatracker.ietf.org/doc/html/rfc8445, RFC8445}. It is used as a
part of @url{https://github.com/pion, Pion} WebRTC implementation.")
(license license:expat)))
(define-public go-github-com-pion-ice-v2
(package
(inherit go-github-com-pion-ice)
(name "go-github-com-pion-ice-v2")
(version "2.3.34")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/ice/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hiiwd3xchlybbvgd33s0i7rcwgrdiw3q963avzziycimia0qyvz"))))
(arguments
(list
#:tests? #f ;Tests require network access.
#:import-path "github.com/pion/ice/v2"))
(propagated-inputs
(list go-github-com-google-uuid
go-github-com-pion-dtls-v2
go-github-com-pion-logging
go-github-com-pion-mdns
go-github-com-pion-randutil
go-github-com-pion-stun
go-github-com-pion-transport-v2
go-github-com-pion-turn-v2
go-golang-org-x-net))))
(define-public go-github-com-pion-ice-v3
(package
(inherit go-github-com-pion-ice)
(name "go-github-com-pion-ice-v3")
(version "3.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/ice/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0f9jy80law69zb26rkb6kl6w1c66vdghdrmifhwlmzngb644ihdb"))))
(arguments
(list
#:tests? #f ;Tests require network access.
#:import-path "github.com/pion/ice/v3"))
(propagated-inputs
(list go-github-com-google-uuid
go-github-com-pion-dtls-v2
go-github-com-pion-logging
go-github-com-pion-mdns-v2
go-github-com-pion-randutil
go-github-com-pion-stun-v2
go-github-com-pion-transport-v3
go-github-com-pion-turn-v3
go-golang-org-x-net))))
(define-public go-github-com-pion-interceptor
(package
(name "go-github-com-pion-interceptor")
(version "0.1.30")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/interceptor")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1b0mmrzb9m9xsskylambdcw3g9xfd1fdfagcw8k0l8886ckqjprr"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/interceptor"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-rtcp
go-github-com-pion-rtp
go-github-com-pion-transport-v3))
(home-page "https://github.com/pion/interceptor")
(synopsis "Pluggable RTP/RTCP processors for building real time communication")
(description
"Interceptor is a framework for building RTP/RTCP communication software.
This framework defines a interface that each interceptor must satisfy. These
interceptors are then run sequentially.")
(license license:expat)))
(define-public go-github-com-pion-mdns
(package
(name "go-github-com-pion-mdns")
(version "0.0.12")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/mdns/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "18nz0vddxik3q11mn4z65zvrfhspxv0xymxv9w3kgk2kszwq2byy"))))
(build-system go-build-system)
(arguments
(list
;; Tests are implemented in GitHub Actions and require aditional
;; packaging, see
;; <https://github.com/pion/.goassets/blob/master/.github/workflows/test.reusable.yml>.
#:tests? #f
#:unpack-path "github.com/pion/mdns"
#:import-path "github.com/pion/mdns"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-transport-v3
go-golang-org-x-net))
(home-page "https://github.com/pion/mdns/")
(synopsis "Pure Go implementation of Multicast DNS")
(description
"This package implements a mDNS (multicast DNS) used by
@url{https://github.com/pion, Pion}.")
(license license:expat)))
(define-public go-github-com-pion-mdns-v2
(package
(inherit go-github-com-pion-mdns)
(name "go-github-com-pion-mdns-v2")
(version "2.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/mdns/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "03675hx82lx3c8akkxdbkch1z4dbq54r05jk6jgdyd7mrdh9k4lm"))))
(arguments
(substitute-keyword-arguments (package-arguments
go-github-com-pion-mdns)
((#:unpack-path flags ''())
"github.com/pion/mdns/v2")
((#:import-path flags ''())
"github.com/pion/mdns/v2")))))
(define-public go-github-com-pion-rtcp
(package
(name "go-github-com-pion-rtcp")
(version "1.2.14")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/rtcp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00hfq0l17zq47slzfbrghgfc0v808hqiyaab3ni9kh1v7nmvp5ic"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/rtcp"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/pion/rtcp")
(synopsis "Implementation of RTCP protocol in Golang")
(description
"Package rtcp implements encoding and decoding of RTCP packets according
to @url{https://www.rfc-editor.org/rfc/rfc3550, RFC 3550},
@url{https://www.rfc-editor.org/rfc/rfc5506, RFC 5506}.")
(license license:expat)))
(define-public go-github-com-pion-rtp
(package
(name "go-github-com-pion-rtp")
(version "1.8.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/rtp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1vrdvswvvbqq83kbjlyblarbsn5v0sjcwrcv03nncd605cggnbkx"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/rtp"))
(propagated-inputs
(list go-github-com-pion-randutil))
(home-page "https://github.com/pion/rtp")
(synopsis "Go implementation of RTP")
(description
"This package provides a @acronym{Real-time Transport Protocol, RTP}
packetizer and depacketizer.")
(license license:expat)))
(define-public go-github-com-pion-sctp
(package
(name "go-github-com-pion-sctp")
(version "1.8.19")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/sctp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "19yzpyrlmk3gvpkpn5846rad9cc8ffxw9jqwnpr6szqax7k0l0zw"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/sctp"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-randutil
go-github-com-pion-transport-v3))
(home-page "https://github.com/pion/sctp")
(synopsis "Implementation of SCTP in Golang")
(description
"This package implements the @acronym{Stream Control Transmission
Protocol,SCTP} as specified in
@uref{https://rfc-editor.org/rfc/rfc9260.html,RFC 9260}.")
(license license:expat)))
(define-public go-github-com-pion-sdp-v3
(package
(name "go-github-com-pion-sdp-v3")
(version "3.0.9")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/sdp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "08d3glli1n45ayc26qwaxm7k5knrf99x5nwkllmmhf29g8kwc89n"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/sdp/v3"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-randutil))
(home-page "https://github.com/pion/sdp")
(synopsis "Implementation of the SDP protocol in Golang")
(description
"Package sdp implements @acronym{Session Description Protocol,SDP}.")
(license license:expat)))
(define-public go-github-com-pion-srtp-v2
(package
(name "go-github-com-pion-srtp-v2")
(version "2.0.20")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/srtp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ijwx9mrc0ha8fam6y6xxih59dyr8hg9ly476kv6gfw564qfp7hk"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/srtp/v2"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-rtcp
go-github-com-pion-rtp
go-github-com-pion-transport-v2))
(home-page "https://github.com/pion/srtp")
(synopsis "Implementation of SRTP protocol in Golang")
(description
"Package srtp implements Secure Real-time Transport Protocol.")
(license license:expat)))
(define-public go-github-com-pion-stun
(package
(name "go-github-com-pion-stun")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/stun")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0172fcm1xvzvy3d5lcpscayzpf3i5w4bpfydifdc9l4n2wslx0sm"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pion/stun"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-dtls-v2
go-github-com-pion-logging
go-github-com-pion-transport-v2))
(home-page "https://github.com/pion/stun")
(synopsis "Go implementation of STUN")
(description
"Package @code{stun} implements Session Traversal Utilities for
+NAT (STUN) (@url{https://tools.ietf.org/html/rfc5389, RFC 5389}) protocol and
+@url{https://pkg.go.dev/github.com/pion/stun#Client, client} with no external
+dependencies and zero allocations in hot paths. Client
+@url{https://pkg.go.dev/github.com/pion/stun#WithRTO, supports} automatic
+request retransmissions.")
(license license:expat)))
(define-public go-github-com-pion-stun-v2
(package
(inherit go-github-com-pion-stun)
(name "go-github-com-pion-stun-v2")
(version "2.0.0")
(source
(origin
(inherit (package-source go-github-com-pion-stun))
(uri (git-reference
(url "https://github.com/pion/stun")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0zli55ls5izpr6cw0wj0gy44872xn9rk20i8ay9cfk7j2rb60y60"))))
(arguments
(list
#:import-path "github.com/pion/stun/v2"))
(propagated-inputs
(list go-github-com-pion-dtls-v2
go-github-com-pion-logging
go-github-com-pion-transport-v3
go-golang-org-x-crypto
go-golang-org-x-net))))
(define-public go-github-com-pion-transport
(package
(name "go-github-com-pion-transport")
(version "0.14.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/transport")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0331kywqaa6fymc64wrqgwnxlhx31qdf299i927vifx1wdcl9ikp"))))
(build-system go-build-system)
(arguments
(list
;; Source-only package
#:tests? #f
#:import-path "github.com/pion/transport"
#:phases
#~(modify-phases %standard-phases
(delete 'build))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-golang-org-x-net
go-golang-org-x-sys))
(home-page "https://github.com/pion/transport")
(synopsis "Golang networking related functions")
(description
"This package implements a various networking related functions used
throughout the @url{https://github.com/pion, Pion} modules.")
(license license:expat)))
(define-public go-github-com-pion-transport-v2
(package
(inherit go-github-com-pion-transport)
(name "go-github-com-pion-transport-v2")
(version "2.2.10")
(source
(origin
(inherit (package-source go-github-com-pion-transport))
(uri (git-reference
(url "https://github.com/pion/transport/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0g5pg6mz61blprccxzysbwldkil84qgwp6404lsp4m9wh44312hf"))))
(arguments
(list
#:import-path "github.com/pion/transport/v2"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(modify-inputs (package-propagated-inputs go-github-com-pion-transport)
(prepend go-github-com-wlynxg-anet)))))
(define-public go-github-com-pion-transport-v3
(package
(inherit go-github-com-pion-transport)
(name "go-github-com-pion-transport-v3")
(version "3.0.2")
(source
(origin
(inherit (package-source go-github-com-pion-transport))
(uri (git-reference
(url "https://github.com/pion/transport/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0j7ljkbyf2qd7daxg7d1rd6c92md64agi59b69g6jyqpz5jww998"))))
(arguments
(list
#:import-path "github.com/pion/transport/v3"))))
(define-public go-github-com-pion-turn
(package
(name "go-github-com-pion-turn")
(version "1.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/turn/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "16lkgmrlks0qdzbk8jj0c0j66qfxhb54cvzgrfn4imvm56dbxp2n"))))
(build-system go-build-system)
(arguments
(list
#:tests? #f ;Tests require network access.
#:import-path "github.com/pion/turn"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-stun
go-github-com-pion-transport
go-github-com-pkg-errors))
(home-page "https://github.com/pion/turn/")
(synopsis "API for building TURN clients and servers in Golang")
(description
"This package provides a toolkit for building @acronym{TURN, Traversal
Using Relays around NAT}, specified in
@url{https://datatracker.ietf.org/doc/html/rfc8656, RFC 8656}, servers and
clients.
@code{pion/turn} is an API for building STUN/TURN clients and servers, not a
binary you deploy then configure. It may require copying the examples and
making minor modifications to fit your need, no knowledge of Go is required
however.
The advantage of this is that you don't need to deal with complicated
configuration files, or custom APIs to modify the state of Pion TURN. After
you instantiate an instance of a Pion TURN server or client you interact with
it like any library. The quickest way to get started is to look at the
@url{https://github.com/pion/turn/blob/master/examples, examples} or
@url{https://godoc.org/github.com/pion/turn, GoDoc}.")
(license license:expat)))
(define-public go-github-com-pion-turn-v2
(package
(inherit go-github-com-pion-turn)
(name "go-github-com-pion-turn-v2")
(version "2.1.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/turn/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0iw7nvqsxpqy90k5a8mq3dyask272391m59cbiy30aak1y2wwaac"))))
(arguments
(substitute-keyword-arguments (package-arguments
go-github-com-pion-turn)
((#:import-path flags ''())
"github.com/pion/turn/v2")))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-randutil
go-github-com-pion-stun
go-github-com-pion-transport-v2
go-golang-org-x-sys))))
(define-public go-github-com-pion-turn-v3
(package
(inherit go-github-com-pion-turn)
(name "go-github-com-pion-turn-v3")
(version "3.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/turn/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0l78m9ym0sv1zfalbv95lwblmr789fc53d957ph5mdznhjx89lyx"))))
(arguments
(substitute-keyword-arguments (package-arguments
go-github-com-pion-turn)
((#:import-path flags ''())
"github.com/pion/turn/v3")))
(propagated-inputs
(list go-github-com-pion-logging
go-github-com-pion-randutil
go-github-com-pion-stun-v2
go-github-com-pion-transport-v3
go-golang-org-x-sys))))
(define-public go-github-com-pion-webrtc-v3
(package
(name "go-github-com-pion-webrtc-v3")
(version "3.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pion/webrtc")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1f421a2s00mj5l9bj96xlignwfdfkp6kwk9qjs3vhazpmvqxzsgi"))))
(build-system go-build-system)
(arguments
(list
;; XXX: Figure out why tests timeout and fail eventually.
#:tests? #f
#:import-path "github.com/pion/webrtc/v3"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-examples-and-benchmarks
(lambda* (#:key tests? import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file-recursively
(list "examples"))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-pion-datachannel
go-github-com-pion-dtls-v2
go-github-com-pion-ice-v2
go-github-com-pion-interceptor
go-github-com-pion-logging
go-github-com-pion-randutil
go-github-com-pion-rtcp
go-github-com-pion-rtp
go-github-com-pion-sctp
go-github-com-pion-sdp-v3
go-github-com-pion-srtp-v2
go-github-com-pion-stun
go-github-com-pion-transport-v2
go-golang-org-x-net))
(home-page "https://github.com/pion/webrtc")
(synopsis "Implementation of the WebRTC API in Golang")
(description
"Package webrtc implements the @code{WebRTC} (Real-Time Communication in
Browsers) 1.0 as defined in W3C @url{https://www.w3.org/TR/webrtc/,WebRTC}
specification document.
Features:
@itemize
@item implementation of @url{https://w3c.github.io/webrtc-pc/,webrtc-pc} and
@code{https://www.w3.org/TR/webrtc-stats/,webrtc-stats}
@item DataChannels
@item Send/Receive audio and video
@item Renegotiation
@item Plan-B and Unified Plan
@item SettingEngine for Pion specific extensions
@item implemented connectivity - Full ICE Agent, ICE Restart, Trickle ICE,
STUN, TURN mDNS candidates
@end itemize")
(license license:expat)))
(define-public go-github-com-pires-go-proxyproto
(package
(name "go-github-com-pires-go-proxyproto")
(version "0.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pires/go-proxyproto")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1p18w555xp187fl807h1yd092cvs8jarp98pa76zl84rxlk4k2h4"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pires/go-proxyproto"))
(home-page "https://github.com/pires/go-proxyproto")
(synopsis "Implementation of the PROXY protocol")
(description
"Package proxyproto implements Proxy Protocol (v1 and v2) parser and
writer, as per specification:
@@url{https://www.haproxy.org/download/2.3/doc/proxy-protocol.txt}. It is to
be used in one of or both proxy clients and proxy servers that need to support
said protocol. Both protocol versions, 1 (text-based) and 2 (binary-based)
are supported. @acronym{TLV, tag-length-value} parsers extensions comming with
this library support AWS, Azure and GCP.")
(license license:asl2.0)))
(define-public go-github-com-pkg-sftp
(package
(name "go-github-com-pkg-sftp")
(version "1.13.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pkg/sftp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0n35lzfrnrffjqy34ny6gxs27kq81s67ply6q8s1g19mhfzm6my7"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pkg/sftp"))
(propagated-inputs (list go-golang-org-x-crypto go-github-com-kr-fs))
(native-inputs (list go-github-com-stretchr-testify))
(home-page "https://github.com/pkg/sftp")
(synopsis "SFTP implementation for Go")
(description
"This package provides an @acronym{SFTP, SSH File Transfer Protocol}
implementation, as described in
@url{https://filezilla-project.org/specs/draft-ietf-secsh-filexfer-02.txt},
for Go.")
(license license:bsd-2)))
(define-public go-github-com-pquerna-cachecontrol
(package
(name "go-github-com-pquerna-cachecontrol")
(version "0.2.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pquerna/cachecontrol")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0d5zgv2w0sinh9m41pw3n015zzyabk7awgwwga7nmhjz452c9r5n"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/pquerna/cachecontrol"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/pquerna/cachecontrol")
(synopsis "Golang HTTP Cache-Control Parser and Interpretation")
(description
"This package implements RFC 7234 Hypertext Transfer Protocol (HTTP/1.1):
Caching.")
(license license:asl2.0)))
(define-public go-github-com-puerkitobio-goquery
(package
(name "go-github-com-puerkitobio-goquery")
(version "1.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PuerkitoBio/goquery")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0gh1d99l5xc9hvwa4j40pfq3y9vfyq52mnrz6bf1kw2r2zr2gbcc"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/PuerkitoBio/goquery"))
(propagated-inputs
(list go-github-com-andybalholm-cascadia go-golang-org-x-net))
(home-page "https://github.com/PuerkitoBio/goquery")
(synopsis "Features similar to jQuery to the Go language")
(description "@code{goquery} brings a syntax and a set of features similar
to jQuery to the Go language.")
(license license:bsd-3)))
(define-public go-github-com-puerkitobio-purell
(package
(name "go-github-com-puerkitobio-purell")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PuerkitoBio/purell")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1zv1pkfvnrpv18ji3mgqa1k77h066yz5hvhdr1mxdz19kdjc5l43"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/PuerkitoBio/purell"))
(propagated-inputs
(list go-golang-org-x-net go-golang-org-x-text))
(home-page "https://github.com/PuerkitoBio/purell")
(synopsis "Tiny Go library to normalize URLs")
(description
"This package provides implements a functionality of URL normalizer as
described in @url{http://tools.ietf.org/html/rfc3986#section-6, RFC 3986}.")
(license license:bsd-3)))
(define-public go-github-com-puerkitobio-urlesc
(package
(name "go-github-com-puerkitobio-urlesc")
(version "0.0.0-20170810143723-de5bf2ad4578")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PuerkitoBio/urlesc")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0n0srpqwbaan1wrhh2b7ysz543pjs1xw2rghvqyffg9l0g8kzgcw"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/PuerkitoBio/urlesc"))
(home-page "https://github.com/PuerkitoBio/urlesc")
(synopsis "Proper URL escaping as per RFC 3986")
(description
"Package @code{urlesc} implements query escaping as per
@url{https://rfc-editor.org/rfc/rfc3986.html,RFC 3986}. It contains some
parts of the @code{net/url} package, modified so as to allow some reserved
characters incorrectly escaped by net/url.")
(license license:bsd-3)))
(define-public go-github-com-quic-go-qpack
(package
(name "go-github-com-quic-go-qpack")
(version "0.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/quic-go/qpack")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00mjz445hhx4yar5l8p21bpp4d06jyg2ajw0ax7bh64d37l4kx39"))))
(build-system go-build-system)
(arguments
(list
;; Tests require ginkgo v2.
#:tests? #f
#:import-path "github.com/quic-go/qpack"))
(propagated-inputs
(list go-github-com-onsi-ginkgo
go-github-com-onsi-gomega
go-golang-org-x-net))
(home-page "https://github.com/quic-go/qpack")
(synopsis "Minimal QPACK (RFC 9204) implementation for Go")
(description
"A minimal QPACK (RFC 9204) implementation in Go. It is minimal in the sense
that it doesn't use the dynamic table at all, but just the static table and (Huffman
encoded) string literals. Wherever possible, it reuses code from the
@url{https://github.com/golang/net/tree/master/http2/hpack, HPACK implementation in
the Go standard library}.")
(license license:expat)))
(define-public go-github-com-quic-go-quic-go
(package
(name "go-github-com-quic-go-quic-go")
(version "0.45.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/quic-go/quic-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0skg771b6h9xlssf7prkryypz4j8hnkz7k3i76qhxdc4iz4rqyfz"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/quic-go/quic-go"
#:phases
#~(modify-phases %standard-phases
;; TODO: Figure out why some tests fail.
(add-after 'unpack 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(for-each delete-file
(list "integrationtests/self/timeout_test.go"
"server_test.go")))))
;; Test steps are taken from GitHub Actions -
;; <https://github.com/quic-go/quic-go/blob/v0.42.0/.github/workflows/unit.yml>.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "ginkgo" "-r" "-v"
(string-append "--procs="
(number->string (parallel-job-count)))
"--randomize-all"
"--randomize-suites"
"--skip-package"
"integrationtests"))))))))
(native-inputs
(list go-ginkgo
go-github-com-onsi-ginkgo-v2
go-go-uber-org-mock
go-golang-org-x-time))
(propagated-inputs
(list go-github-com-francoispqt-gojay
go-github-com-quic-go-qpack
go-golang-org-x-crypto
go-golang-org-x-exp
go-golang-org-x-net
go-golang-org-x-sync
go-golang-org-x-sys))
(home-page "https://github.com/quic-go/quic-go")
(synopsis "QUIC in Go")
(description
"This package provides a Go language implementation of the QUIC network
protocol.")
(license license:expat)))
(define-public go-github-com-quic-go-webtransport-go
(package
(name "go-github-com-quic-go-webtransport-go")
(version "0.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/quic-go/webtransport-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0zwr4jg4dg2b14kkypkbs8dpai5b5s44gm5gq0vrs3mmg6vq0v97"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/quic-go/webtransport-go"))
(native-inputs
(list go-go-uber-org-mock
go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-quic-go-quic-go
go-golang-org-x-exp))
(home-page "https://github.com/quic-go/webtransport-go")
(synopsis "WebTransport implementation based on quic-go")
(description
"webtransport-go is an implementation of the @code{WebTransport} protocol, based
on @@url{https://github.com/quic-go/quic-go,quic-go}. It currently implements
@@url{https://www.ietf.org/archive/id/draft-ietf-webtrans-http3-02.html,draft-02}
of the specification.")
(license license:expat)))
(define-public go-github-com-rs-cors
(package
(name "go-github-com-rs-cors")
(version "1.11.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rs/cors")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qbzxk1aabn8k2smrkpz3h59mwr6s2zvg4faj6kjsp78hyi172xn"))
(modules '((guix build utils)))
(snippet
#~(begin
;; Submodule(s) with their own go.mod files and packed as
;; separated packages:
;;
;; - github.com/rs/cors/wrapper/gin
(for-each delete-file-recursively
(list "wrapper/gin"))))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/rs/cors"
#:phases
#~(modify-phases %standard-phases
;; Examples requires additional dependencies and comes with their
;; own go.mod, consider to pack it as separate package if required.
(add-after 'unpack 'remove-examples
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
(string-append "src/" import-path "/examples")))))))
(home-page "https://github.com/rs/cors")
(synopsis "Golang @code{net/http} configurable handler for CORS requests")
(description
"Package cors is @code{net/http} handler to handle @acronym{Cross-origin
resource sharing,CORS} related requests as defined by
@url{http://www.w3.org/TR/cors/,http://www.w3.org/TR/cors/}.")
(license license:expat)))
(define-public go-github-com-sherclockholmes-webpush-go
(package
(name "go-github-com-sherclockholmes-webpush-go")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/SherClockHolmes/webpush-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qv16zvkd1c7q81v2ai8pfz590fxdrk4lfbgyymln0q7jn5wlvki"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/SherClockHolmes/webpush-go"))
(propagated-inputs
(list go-github-com-golang-jwt-jwt go-golang-org-x-crypto))
(home-page "https://github.com/SherClockHolmes/webpush-go")
(synopsis "Web Push API Encryption with VAPID support")
(description
"Web Push API Encryption with
@url{https://datatracker.ietf.org/doc/html/draft-ietf-webpush-vapid-01, VAPID}
support.")
(license license:expat)))
(define-public go-github-com-shurcool-httpfs
(package
(name "go-github-com-shurcool-httpfs")
(version "0.0.0-20230704072500-f1e31cf0ba5c")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/shurcooL/httpfs")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1m0jjnfzr8372cjx0zjm2zm695kwaz8l1yk7gzgn05biadsklprm"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/shurcooL/httpfs"
#:phases
#~(modify-phases %standard-phases
;; XXX: Replace when go-build-system supports nested path.
(delete 'build)
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
(native-inputs
(list go-golang-org-x-tools))
(propagated-inputs
(list go-github-com-shurcool-httpgzip))
(home-page "https://github.com/shurcooL/httpfs")
(synopsis "Utilities for @code{http.FileSystem}")
(description
"Collection of Go packages for working with the +@code{http.FileSystem}
interface.")
(license license:expat)))
(define-public go-github-com-shurcool-httpgzip
(package
(name "go-github-com-shurcool-httpgzip")
(version "0.0.0-20230704072819-d1585fc322fa")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/shurcooL/httpgzip")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "10fnndia8ij3hwwvknn8qy8z3955bm7xyvqd69yh5g2zh25zc5x2"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/shurcooL/httpgzip"))
(native-inputs
(list go-golang-org-x-tools))
(propagated-inputs
(list go-golang-org-x-net))
(home-page "https://github.com/shurcooL/httpgzip")
(synopsis "Primitives of @code{net-http}-like with gzip compression")
(description
"Package @code{httpgzip} provides @code{net/http}-like primitives that
use gzip compression when serving HTTP requests.")
(license license:expat)))
(define-public go-github-com-shurcool-vfsgen
(package
(name "go-github-com-shurcool-vfsgen")
(version "0.0.0-20230704071429-0000e147ea92")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/shurcooL/vfsgen")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ypfdiv56ckb0yc7mccc2l8vc3gmfws2p7bcf9f0j415m7r0aq6q"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/shurcooL/vfsgen"))
(native-inputs
(list go-golang-org-x-tools))
(propagated-inputs
(list go-github-com-shurcool-httpfs))
(home-page "https://github.com/shurcooL/vfsgen")
(synopsis "Generate Go code from an @code{http.FileSystem}")
(description
"Package @code{vfsgen} takes an @code{http.FileSystem} (likely at
@code{go generate} time) and generates Go code that statically implements the
provided @code{http.FileSystem}.")
(license license:expat)))
(define-public go-github-com-sourcegraph-jsonrpc2
(package
(name "go-github-com-sourcegraph-jsonrpc2")
(version "0.2.0")
(home-page "https://github.com/sourcegraph/jsonrpc2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1id35b4mhif9gy1b70mv0x7xkmpm2p8xydix8six10yjyhvm1wjh"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/sourcegraph/jsonrpc2"))
(propagated-inputs
(list go-github-com-gorilla-websocket))
(synopsis "Provides a client and server implementation of JSON-RPC 2.0")
(description
"Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.")
(license license:expat)))
(define-public go-github-com-tdewolff-minify-v2
(package
(name "go-github-com-tdewolff-minify-v2")
(version "2.12.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tdewolff/minify")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qhslaq885zbqs83nvbi29yh09b89kkb6ycami8lz28wkwrlayap"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/tdewolff/minify/v2"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'regenerate-hash
(lambda* (#:key import-path #:allow-other-keys)
(for-each
(lambda (dir)
(with-directory-excursion
(format #f "src/~a/~a" import-path dir)
(make-file-writable "hash.go")
(format #t "Generating `hash.go' for ~a...~%" dir)
(invoke "go" "generate")))
'("css" "html" "svg")))))))
(propagated-inputs
(list go-github-com-tdewolff-parse-v2))
(native-inputs
(list go-github-com-tdewolff-hasher
go-github-com-tdewolff-test))
(home-page "https://go.tacodewolff.nl/minify")
(synopsis "Go minifiers for web formats")
(description
"This package provides HTML5, CSS3, JS, JSON, SVG and XML minifiers and
an interface to implement any other minifier.")
(license license:expat)))
(define-public go-github-com-tdewolff-parse-v2
(package
(name "go-github-com-tdewolff-parse-v2")
(version "2.6.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tdewolff/parse")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1dqki9ima079k9a3l72igmx5dml8qsl9z8rzw8a433f4gjhlv320"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/tdewolff/parse/v2"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'regenerate-hash
(lambda* (#:key import-path #:allow-other-keys)
(for-each
(lambda (dir)
(with-directory-excursion
(format #f "src/~a/~a" import-path dir)
(make-file-writable "hash.go")
(format #t "Generating `hash.go' for ~a...~%" dir)
(invoke "go" "generate")))
'("css" "html")))))))
(native-inputs
(list go-github-com-tdewolff-hasher
go-github-com-tdewolff-test))
(home-page "https://github.com/tdewolff/parse")
(synopsis "Go parsers for web formats")
(description
"This package contains several lexers and parsers written in Go.")
(license license:expat)))
(define-public go-github-com-tv42-httpunix
(let ((commit "2ba4b9c3382c77e7b9ea89d00746e6111d142a22")
(revision "0"))
(package
(name "go-github-com-tv42-httpunix")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tv42/httpunix")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0xbwpip2hsfhd2kd878jn5ndl8y1i9658lggha4x3xb5m1rsds9w"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/tv42/httpunix"))
(home-page "https://github.com/tv42/httpunix")
(synopsis "Go library to talk HTTP over Unix domain sockets")
(description "This package is a Go library to talk HTTP over Unix domain
sockets.")
(license license:expat))))
(define-public go-github-com-ucarion-urlpath
(package
(name "go-github-com-ucarion-urlpath")
(version "0.0.0-20200424170820-7ccc79b76bbb")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ucarion/urlpath")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "12ns9lqdz566agdp4y0whgksmidi0zp7759akvx0b79mjzyvypax"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/ucarion/urlpath"))
(home-page "https://github.com/ucarion/urlpath")
(synopsis "REST-like URL path patterns matching")
(description
"Package urlpath matches paths against a template. It's meant for
applications that take in REST-like URL paths, and need to validate and
extract data from those paths.")
(license license:expat)))
(define-public go-github-com-ugorji-go-codec
(package
(name "go-github-com-ugorji-go-codec")
(version "1.2.12")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ugorji/go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11j0sd7kli2bh2npfr2znnvdjsk118rs8khqzfdp6pb5jm0l20ib"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/ugorji/go/codec"
#:unpack-path "github.com/ugorji/go"
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'remove-benchmarks
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively (string-append "src/"
import-path
"/bench")))))))
(propagated-inputs (list go-golang-org-x-tools))
(home-page "https://github.com/ugorji/go")
(synopsis "Codec and encoding library for various serialization formats")
(description
"This package provides a high performance and feature rich codec and
encoding library for the MessagePack, CBOR, JSON and the Binc formats.")
(license license:expat)))
(define-public go-github-com-valyala-fasthttp
(package
(name "go-github-com-valyala-fasthttp")
(version "1.39.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/valyala/fasthttp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "12qwx0yk7wjj25v4fswgmj28r69gk94kqdmzavca8k9f0yznniz1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/valyala/fasthttp"
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs #:allow-other-keys #:rest args)
(unless
;; Tests hang forever with gccgo.
(false-if-exception (search-input-file inputs "/bin/gccgo"))
(apply (assoc-ref %standard-phases 'check) args)))))))
(propagated-inputs
(list go-github-com-andybalholm-brotli
go-github-com-klauspost-compress
go-github-com-valyala-bytebufferpool
go-github-com-valyala-tcplisten
go-golang-org-x-crypto
go-golang-org-x-net
go-golang-org-x-sys
go-golang-org-x-text))
(home-page "https://github.com/valyala/fasthttp")
(synopsis "Provides fast HTTP server and client API")
(description
"This package provides a Go module @code{fasthttp} which may be used as
replacement for native @code{net/http} module.")
(license license:expat)))
(define-public go-github-com-whyrusleeping-cbor
(package
(name "go-github-com-whyrusleeping-cbor")
(version "0.0.0-20171005072247-63513f603b11")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/whyrusleeping/cbor")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0v3kgzk8grz17my2vhv12qi9dgpx3z86hy9ff1c4qw83mg8hm67s"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/whyrusleeping/cbor"
#:phases
#~(modify-phases %standard-phases
;; XXX: Replace when go-build-system supports nested path.
(delete 'build)
(replace 'check
(lambda* (#:key import-path tests? #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
;; No test vectors were provided with git checkout:
;; var errpath string = "../test-vectors/appendix_a.json"
(substitute* "go/cbor_test.go"
(("TestDecodeVectors") "offTestDecodeVectors"))
(invoke "go" "test" "-v" "./..."))))))))
(home-page "https://github.com/whyrusleeping/cbor")
(synopsis "Concise Binary Object Representation in Golang")
(description
"@acronym{Concise Binary Object Representation,CBOR} is a superset of
JSON's schema that's faster and more compact.")
(license license:asl2.0)))
(define-public go-github-com-whyrusleeping-chunker
(package
(name "go-github-com-whyrusleeping-chunker")
(version "0.0.0-20181014151217-fe64bd25879f")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/whyrusleeping/chunker")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "13q4flp9iwwyi0izqar786h42713rf3m22qlvg0masbmdi69qjr2"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/whyrusleeping/chunker"))
(home-page "https://github.com/whyrusleeping/chunker")
(synopsis "Implementation of Content Defined Chunking in Golang")
(description
"Package chunker implements @acronym{Content Defined Chunking,CDC} based
on a rolling Rabin Checksum. This package provides a modified fork of
https://github.com/restic/restic project.")
(license license:bsd-2)))
(define-public go-github-com-whyrusleeping-json-filter
(let ((commit "ff25329a9528f01c5175414f16cc0a6a162a5b8b")
(revision "0"))
(package
(name "go-github-com-whyrusleeping-json-filter")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/whyrusleeping/json-filter")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0cai0drvx4c8j686l908vpcsz3mw3vxi3ziz94b0f3c5ylpj07j7"))))
(build-system go-build-system)
(arguments
'(#:import-path
"github.com/whyrusleeping/json-filter"))
(home-page "https://github.com/whyrusleeping/json-filter")
(synopsis "Library to query JSON objects marshalled into map[string]interface")
(description "A library to query JSON objects marshalled into
@command{map[string]interface{}}.")
(license license:expat))))
(define-public go-github-com-whyrusleeping-multiaddr-filter
(package
(name "go-github-com-whyrusleeping-multiaddr-filter")
(version "0.0.0-20160516205228-e903e4adabd7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/whyrusleeping/multiaddr-filter")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ksd8vnp207dvphmhrazwldj8if900fnyc1pqa9pfvj04qp92640"))))
(build-system go-build-system)
(arguments
(list
;; (*testing.common).Fatalf format %s has arg val of wrong type bool
#:tests? #f
#:import-path "github.com/whyrusleeping/multiaddr-filter"))
(home-page "https://github.com/whyrusleeping/multiaddr-filter")
(synopsis "Parsing ip filters and masks in the multiaddr format")
(description
"This module creates very simple
@url{https://github.com/jbenet/go-multiaddr,multiaddr} formatted cidr
netmasks.")
(license license:expat)))
(define-public go-github-com-wlynxg-anet
(package
(name "go-github-com-wlynxg-anet")
(version "0.0.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/wlynxg/anet")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "09s3x28qb571xs92gnbqzkyiah4vhk56hqqb4cc4yfrzfv3430hp"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/wlynxg/anet"))
(home-page "https://github.com/wlynxg/anet")
(synopsis "Adjusted @code{net.Interfaces()} for Golang")
(description
"This package implements a functionality to resolve some problems for
Android environment where standard @code{net} and @code{golang.org/x/net}
missing it. It address the issues
@url{https://github.com/golang/go/issues/40569, #40569} and
@url{https://github.com/golang/go/issues/68082, #68082}.")
(license license:bsd-3)))
(define-public go-github-com-xeipuuv-gojsonpointer
(let ((commit "4e3ac2762d5f479393488629ee9370b50873b3a6")
(revision "0"))
(package
(name "go-github-com-xeipuuv-gojsonpointer")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xeipuuv/gojsonpointer")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "13y6iq2nzf9z4ls66bfgnnamj2m3438absmbpqry64bpwjfbsi9q"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/xeipuuv/gojsonpointer"))
(home-page "https://github.com/xeipuuv/gojsonpointer")
(synopsis "Implementation of JSON Pointer for Go")
(description
"This package provides an implementation of JSON Pointer for the Go
programming language.")
(license license:asl2.0))))
(define-public go-github-com-xeipuuv-gojsonreference
(let ((commit "bd5ef7bd5415a7ac448318e64f11a24cd21e594b")
(revision "0"))
(package
(name "go-github-com-xeipuuv-gojsonreference")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xeipuuv/gojsonreference")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1xby79padc7bmyb8rfbad8wfnfdzpnh51b1n8c0kibch0kwc1db5"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/xeipuuv/gojsonreference"))
(propagated-inputs
(list go-github-com-xeipuuv-gojsonpointer))
(home-page "https://github.com/xeipuuv/gojsonreference")
(synopsis "Implementation of JSON Reference for Go")
(description
"This package provides an implementation of JSON Reference for the Go
programming language.")
(license license:asl2.0))))
(define-public go-github-com-xeipuuv-gojsonschema
(let ((commit "6b67b3fab74d992bd07f72550006ab2c6907c416")
(revision "0"))
(package
(name "go-github-com-xeipuuv-gojsonschema")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xeipuuv/gojsonschema")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1q937a6q7canlr3dllqdw0qwa6z2fpwn1w9kycavx8jmwh6q3f69"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/xeipuuv/gojsonschema"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(substitute* "schema_test.go"
(("\\{\"phase\": \"remote ref, " all)
(string-append "// " all))
(("\\{\"phase\": \"valid definition" all)
(string-append "// " all))
(("\\{\"phase\": \"invalid definition" all)
(string-append "// " all)))))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-xeipuuv-gojsonreference
go-github-com-xeipuuv-gojsonpointer))
(home-page "https://github.com/xeipuuv/gojsonschema")
(synopsis "Implementation of JSON Schema for Go")
(description
"This package provides an implementation of JSON Schema for the Go
programming language, which supports draft-04, draft-06 and draft-07.")
(license license:asl2.0))))
(define-public go-golang-org-x-oauth2
(package
(name "go-golang-org-x-oauth2")
(version "0.21.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://go.googlesource.com/oauth2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0pzpa9jqrfxxhxi1w7n5ljnvr9qfw42hzavz62fc9i6z9vk2466k"))))
(build-system go-build-system)
(arguments
(list
#:import-path "golang.org/x/oauth2"))
(propagated-inputs
(list go-cloud-google-com-go-compute-metadata
go-github-com-google-go-cmp))
(home-page "https://go.googlesource.com/oauth2")
(synopsis "Client implementation of the OAuth 2.0 spec")
(description
"This package contains a client implementation for OAuth 2.0
spec in Go.")
(license license:bsd-3)))
(define-public go-golang-zx2c4-com-wireguard
(package
(name "go-golang-zx2c4-com-wireguard")
(version "0.0.0-20231211153847-12269c276173")
(source
(origin
(method git-fetch)
;; NOTE: module URL is a redirect
;; target: git.zx2c4.com/wireguard-go
;; source: golang.zx2c4.com/wireguard
(uri (git-reference
(url "https://git.zx2c4.com/wireguard-go/")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fbc6m0ahifhrd6jdrpdxi8l3b2slpp8fmv20kpq2yzz19vzzgkf"))))
(build-system go-build-system)
(arguments
(list
#:import-path "golang.zx2c4.com/wireguard"
#:phases
#~(modify-phases %standard-phases
;; XXX: Workaround for go-build-system's lack of Go modules
;; support.
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v"
;; "./tune/..." ; Requires gvisor.dev/gvisor, not packed yet
"./"
"./conn/..."
"./device/..."
"./ipc/..."
"./ratelimiter/..."
"./replay/..."
"./rwcancel/..."
"./tai64n/..."))))))))
(propagated-inputs
(list go-golang-org-x-crypto
go-golang-org-x-net
go-golang-org-x-sys))
(home-page "https://git.zx2c4.com/wireguard")
(synopsis "Implementation of WireGuard in Go")
(description "This package is a Go Implementation of WireGuard.")
(license license:expat)))
;; XXX: This repository has been archived by the owner on Feb 27, 2023. It is
;; now read-only and it is DEPRECATED.
(define-public go-gopkg-in-square-go-jose-v2
(package
(name "go-gopkg-in-square-go-jose-v2")
(version "2.6.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/square/go-jose")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1b1nhqxfmhzwrfk7pkvp2w3z3d0pf5ir00vizmy2d4xdbnldn70r"))))
(build-system go-build-system)
(arguments
(list
;; XXX: We strongly encourage users of square/go-jose to migrate to v3
;; of go-jose/go-jose. No support, security fixes or updates will be
;; delivered to the v1/v2 branches in the Square repository.
#:tests? #f
#:import-path "gopkg.in/square/go-jose.v2"))
(propagated-inputs
(list go-golang-org-x-crypto))
(native-inputs
(list go-github-com-google-go-cmp
go-github-com-stretchr-testify))
(home-page "https://gopkg.in/square/go-jose.v2")
(synopsis "Implementation of JOSE standards (JWE, JWS, JWT) in Go")
(description
"This package aims to provide an implementation of the Javascript Object
Signing and Encryption set of standards. This includes support for JSON Web
Encryption, JSON Web Signature, and JSON Web Token standards.")
(license license:asl2.0)))
(define-public go-mvdan-cc-xurls
(package
(name "go-mvdan-cc-xurls")
(version "2.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mvdan/xurls")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1516hwlxbnhdca56qy7sx9h2n5askq6ddqpqyp3f5rvmzdkxf4zn"))))
(build-system go-build-system)
(arguments
(list
#:import-path "mvdan.cc/xurls/v2"))
(propagated-inputs
(list go-github-com-rogpeppe-go-internal
go-golang-org-x-mod
go-golang-org-x-sync))
(home-page "https://mvdan.cc/xurls/v2/")
(synopsis "Extracts URLs from text")
(description
"Xurls extracts urls from plain text using regular expressions. It can
be used as both a binary and a library.")
(license license:bsd-3)))
(define-public go-nhooyr-io-websocket
(package
(name "go-nhooyr-io-websocket")
(version "1.8.11")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nhooyr/websocket")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "019pm2bkzwyvzl61127nqzihchk35q5xh57wy50aa2syn9214fxm"))))
(build-system go-build-system)
(arguments
(list
;; Tests require additional dependencies like `wasmbrowsertest`.
#:tests? #f
#:import-path "nhooyr.io/websocket"))
(home-page "https://nhooyr.io/websocket")
(synopsis "Minimal and idiomatic WebSocket library for Go")
(description
"Package websocket implements the
@@url{https://rfc-editor.org/rfc/rfc6455.html,RFC 6455} @code{WebSocket}
protocol.")
(license license:isc)))
;;;
;;; Executables:
;;;
(define-public go-madns
(package
(inherit go-github-com-multiformats-go-multiaddr-dns)
(name "go-madns")
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-multiformats-go-multiaddr-dns)
((#:install-source? _ #t) #f)
((#:import-path _ "github.com/multiformats/go-multiaddr-dns")
"github.com/multiformats/go-multiaddr-dns/madns")))
(description
"This package provides a CLI binary executible built from
go-github-com-multiformats-go-multiaddr-dns.")))
(define-public go-minify
(package
(inherit go-github-com-tdewolff-minify-v2)
(name "go-minify")
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-tdewolff-minify-v2)
((#:install-source? _ #t) #f)
((#:import-path _ "github.com/tdewolff/minify/v2")
"github.com/tdewolff/minify/cmd/minify")))
(inputs
(list go-github-com-djherbis-atime
go-github-com-dustin-go-humanize
go-github-com-fsnotify-fsnotify
go-github-com-matryer-try
go-github-com-spf13-pflag))
(description "This package provides a CLI binary executible built from
go-github-com-tdewolff-minify-v2 source.")))
(define-public xurls
(package
(inherit go-mvdan-cc-xurls)
(name "xurls")
(arguments
(list
#:import-path "mvdan.cc/xurls/v2/cmd/xurls"
#:unpack-path "mvdan.cc/xurls/v2"
#:install-source? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(delete-file "testdata/script/version.txtar")))))))))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
;;; functionality or similar names.
;;;
|