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 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 23889 23890 23891 23892 23893 23894 23895 23896 23897 23898 23899 23900 23901 23902 23903 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124 24125 24126 24127 24128 24129 24130 24131 24132 24133 24134 24135 24136 24137 24138 24139 24140 24141 24142 24143 24144 24145 24146 24147 24148 24149 24150 24151 24152 24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 24261 24262 24263 24264 24265 24266 24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 24341 24342 24343 24344 24345 24346 24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 24393 24394 24395 24396 24397 24398 24399 24400 24401 24402 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 24561 24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 24620 24621 24622 24623 24624 24625 24626 24627 24628 24629 24630 24631 24632 24633 24634 24635 24636 24637 24638 24639 24640 24641 24642 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 24654 24655 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 24670 24671 24672 24673 24674 24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 24780 24781 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 24861 24862 24863 24864 24865 24866 24867 24868 24869 24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951 24952 24953 24954 24955 24956 24957 24958 24959 24960 24961 24962 24963 24964 24965 24966 24967 24968 24969 24970 24971 24972 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020 25021 25022 25023 25024 25025 25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 25094 25095 25096 25097 25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 25152 25153 25154 25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 25191 25192 25193 25194 25195 25196 25197 25198 25199 25200 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 25277 25278 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 25620 25621 25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 26446 26447 26448 26449 26450 26451 26452 26453 26454 26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 26692 26693 26694 26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 26750 26751 26752 26753 26754 26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 27008 27009 27010 27011 27012 27013 27014 27015 27016 27017 27018 27019 27020 27021 27022 27023 27024 27025 27026 27027 27028 27029 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 27040 27041 27042 27043 27044 27045 27046 27047 27048 27049 27050 27051 27052 27053 27054 27055 27056 27057 27058 27059 27060 27061 27062 27063 27064 27065 27066 27067 27068 27069 27070 27071 27072 27073 27074 27075 27076 27077 27078 27079 27080 27081 27082 27083 27084 27085 27086 27087 27088 27089 27090 27091 27092 27093 27094 27095 27096 27097 27098 27099 27100 27101 27102 27103 27104 27105 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 27302 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 27313 27314 27315 27316 27317 27318 27319 27320 27321 27322 27323 27324 27325 27326 27327 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 27338 27339 27340 27341 27342 27343 27344 27345 27346 27347 27348 27349 27350 27351 27352 27353 27354 27355 27356 27357 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 27369 27370 27371 27372 27373 27374 27375 27376 27377 27378 27379 27380 27381 27382 27383 27384 27385 27386 27387 27388 27389 27390 27391 27392 27393 27394 27395 27396 27397 27398 27399 27400 27401 27402 27403 27404 27405 27406 27407 27408 27409 27410 27411 27412 27413 27414 27415 27416 27417 27418 27419 27420 27421 27422 27423 27424 27425 27426 27427 27428 27429 27430 27431 27432 27433 27434 27435 27436 27437 27438 27439 27440 27441 27442 27443 27444 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 27455 27456 27457 27458 27459 27460 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 27480 27481 27482 27483 27484 27485 27486 27487 27488 27489 27490 27491 27492 27493 27494 27495 27496 27497 27498 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509 27510 27511 27512 27513 27514 27515 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 27533 27534 27535 27536 27537 27538 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 27556 27557 27558 27559 27560 27561 27562 27563 27564 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739 27740 27741 27742 27743 27744 27745 27746 27747 27748 27749 27750 27751 27752 27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 27766 27767 27768 27769 27770 27771 27772 27773 27774 27775 27776 27777 27778 27779 27780 27781 27782 27783 27784 27785 27786 27787 27788 27789 27790 27791 27792 27793 27794 27795 27796 27797 27798 27799 27800 27801 27802 27803 27804 27805 27806 27807 27808 27809 27810 27811 27812 27813 27814 27815 27816 27817 27818 27819 27820 27821 27822 27823 27824 27825 27826 27827 27828 27829 27830 27831 27832 27833 27834 27835 27836 27837 27838 27839 27840 27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868 27869 27870 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 27889 27890 27891 27892 27893 27894 27895 27896 27897 27898 27899 27900 27901 27902 27903 27904 27905 27906 27907 27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 27923 27924 27925 27926 27927 27928 27929 27930 27931 27932 27933 27934 27935 27936 27937 27938 27939 27940 27941 27942 27943 27944 27945 27946 27947 27948 27949 27950 27951 27952 27953 27954 27955 27956 27957 27958 27959 27960 27961 27962 27963 27964 27965 27966 27967 27968 27969 27970 27971 27972 27973 27974 27975 27976 27977 27978 27979 27980 27981 27982 27983 27984 27985 27986 27987 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 28031 28032 28033 28034 28035 28036 28037 28038 28039 28040 28041 28042 28043 28044 28045 28046 28047 28048 28049 28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 28060 28061 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 28086 28087 28088 28089 28090 28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 28101 28102 28103 28104 28105 28106 28107 28108 28109 28110 28111 28112 28113 28114 28115 28116 28117 28118 28119 28120 28121 28122 28123 28124 28125 28126 28127 28128 28129 28130 28131 28132 28133 28134 28135 28136 28137 28138 28139 28140 28141 28142 28143 28144 28145 28146 28147 28148 28149 28150 28151 28152 28153 28154 28155 28156 28157 28158 28159 28160 28161 28162 28163 28164 28165 28166 28167 28168 28169 28170 28171 28172 28173 28174 28175 28176 28177 28178 28179 28180 28181 28182 28183 28184 28185 28186 28187 28188 28189 28190 28191 28192 28193 28194 28195 28196 28197 28198 28199 28200 28201 28202 28203 28204 28205 28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 28267 28268 28269 28270 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 28282 28283 28284 28285 28286 28287 28288 28289 28290 28291 28292 28293 28294 28295 28296 28297 28298 28299 28300 28301 28302 28303 28304 28305 28306 28307 28308 28309 28310 28311 28312 28313 28314 28315 28316 28317 28318 28319 28320 28321 28322 28323 28324 28325 28326 28327 28328 28329 28330 28331 28332 28333 28334 28335 28336 28337 28338 28339 28340 28341 28342 28343 28344 28345 28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 28400 28401 28402 28403 28404 28405 28406 28407 28408 28409 28410 28411 28412 28413 28414 28415 28416 28417 28418 28419 28420 28421 28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 28450 28451 28452 28453 28454 28455 28456 28457 28458 28459 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 28481 28482 28483 28484 28485 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 28545 28546 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 28672 28673 28674 28675 28676 28677 28678 28679 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 28695 28696 28697 28698 28699 28700 28701 28702 28703 28704 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 28737 28738 28739 28740 28741 28742 28743 28744 28745 28746 28747 28748 28749 28750 28751 28752 28753 28754 28755 28756 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 28769 28770 28771 28772 28773 28774 28775 28776 28777 28778 28779 28780 28781 28782 28783 28784 28785 28786 28787 28788 28789 28790 28791 28792 28793 28794 28795 28796 28797 28798 28799 28800 28801 28802 28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 28886 28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022 29023 29024 29025 29026 29027 29028 29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 29047 29048 29049 29050 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166 29167 29168 29169 29170 29171 29172 29173 29174 29175 29176 29177 29178 29179 29180 29181 29182 29183 29184 29185 29186 29187 29188 29189 29190 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 29206 29207 29208 29209 29210 29211 29212 29213 29214 29215 29216 29217 29218 29219 29220 29221 29222 29223 29224 29225 29226 29227 29228 29229 29230 29231 29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 29243 29244 29245 29246 29247 29248 29249 29250 29251 29252 29253 29254 29255 29256 29257 29258 29259 29260 29261 29262 29263 29264 29265 29266 29267 29268 29269 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 29285 29286 29287 29288 29289 29290 29291 29292 29293 29294 29295 29296 29297 29298 29299 29300 29301 29302 29303 29304 29305 29306 29307 29308 29309 29310 29311 29312 29313 29314 29315 29316 29317 29318 29319 29320 29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 29454 29455 29456 29457 29458 29459 29460 29461 29462 29463 29464 29465 29466 29467 29468 29469 29470 29471 29472 29473 29474 29475 29476 29477 29478 29479 29480 29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 29499 29500 29501 29502 29503 29504 29505 29506 29507 29508 29509 29510 29511 29512 29513 29514 29515 29516 29517 29518 29519 29520 29521 29522 29523 29524 29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 29539 29540 29541 29542 29543 29544 29545 29546 29547 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 29564 29565 29566 29567 29568 29569 29570 29571 29572 29573 29574 29575 29576 29577 29578 29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 29601 29602 29603 29604 29605 29606 29607 29608 29609 29610 29611 29612 29613 29614 29615 29616 29617 29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 29673 29674 29675 29676 29677 29678 29679 29680 29681 29682 29683 29684 29685 29686 29687 29688 29689 29690 29691 29692 29693 29694 29695 29696 29697 29698 29699 29700 29701 29702 29703 29704 29705 29706 29707 29708 29709 29710 29711 29712 29713 29714 29715 29716 29717 29718 29719 29720 29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 29821 29822 29823 29824 29825 29826 29827 29828 29829 29830 29831 29832 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 29896 29897 29898 29899 29900 29901 29902 29903 29904 29905 29906 29907 29908 29909 29910 29911 29912 29913 29914 29915 29916 29917 29918 29919 29920 29921 29922 29923 29924 29925 29926 29927 29928 29929 29930 29931 29932 29933 29934 29935 29936 29937 29938 29939 29940 29941 29942 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 30119 30120 30121 30122 30123 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 30206 30207 30208 30209 30210 30211 30212 30213 30214 30215 30216 30217 30218 30219 30220 30221 30222 30223 30224 30225 30226 30227 30228 30229 30230 30231 30232 30233 30234 30235 30236 30237 30238 30239 30240 30241 30242 30243 30244 30245 30246 30247 30248 30249 30250 30251 30252 30253 30254 30255 30256 30257 30258 30259 30260 30261 30262 30263 30264 30265 30266 30267 30268 30269 30270 30271 30272 30273 30274 30275 30276 30277 30278 30279 30280 30281 30282 30283 30284 30285 30286 30287 30288 30289 30290 30291 30292 30293 30294 30295 30296 30297 30298 30299 30300 30301 30302 30303 30304 30305 30306 30307 30308 30309 30310 30311 30312 30313 30314 30315 30316 30317 30318 30319 30320 30321 30322 30323 30324 30325 30326 30327 30328 30329 30330 30331 30332 30333 30334 30335 30336 30337 30338 30339 30340 30341 30342 30343 30344 30345 30346 30347 30348 30349 30350 30351 30352 30353 30354 30355 30356 30357 30358 30359 30360 30361 30362 30363 30364 30365 30366 30367 30368 30369 30370 30371 30372 30373 30374 30375 30376 30377 30378 30379 30380 30381 30382 30383 30384 30385 30386 30387 30388 30389 30390 30391 30392 30393 30394 30395 30396 30397 30398 30399 30400 30401 30402 30403 30404 30405 30406 30407 30408 30409 30410 30411 30412 30413 30414 30415 30416 30417 30418 30419 30420 30421 30422 30423 30424 30425 30426 30427 30428 30429 30430 30431 30432 30433 30434 30435 30436 30437 30438 30439 30440 30441 30442 30443 30444 30445 30446 30447 30448 30449 30450 30451 30452 30453 30454 30455 30456 30457 30458 30459 30460 30461 30462 30463 30464 30465 30466 30467 30468 30469 30470 30471 30472 30473 30474 30475 30476 30477 30478 30479 30480 30481 30482 30483 30484 30485 30486 30487 30488 30489 30490 30491 30492 30493 30494 30495 30496 30497 30498 30499 30500 30501 30502 30503 30504 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 30565 30566 30567 30568 30569 30570 30571 30572 30573 30574 30575 30576 30577 30578 30579 30580 30581 30582 30583 30584 30585 30586 30587 30588 30589 30590 30591 30592 30593 30594 30595 30596 30597 30598 30599 30600 30601 30602 30603 30604 30605 30606 30607 30608 30609 30610 30611 30612 30613 30614 30615 30616 30617 30618 30619 30620 30621 30622 30623 30624 30625 30626 30627 30628 30629 30630 30631 30632 30633 30634 30635 30636 30637 30638 30639 30640 30641 30642 30643 30644 30645 30646 30647 30648 30649 30650 30651 30652 30653 30654 30655 30656 30657 30658 30659 30660 30661 30662 30663 30664 30665 30666 30667 30668 30669 30670 30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 30681 30682 30683 30684 30685 30686 30687 30688 30689 30690 30691 30692 30693 30694 30695 30696 30697 30698 30699 30700 30701 30702 30703 30704 30705 30706 30707 30708 30709 30710 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 30729 30730 30731 30732 30733 30734 30735 30736 30737 30738 30739 30740 30741 30742 30743 30744 30745 30746 30747 30748 30749 30750 30751 30752 30753 30754 30755 30756 30757 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775 30776 30777 30778 30779 30780 30781 30782 30783 30784 30785 30786 30787 30788 30789 30790 30791 30792 30793 30794 30795 30796 30797 30798 30799 30800 30801 30802 30803 30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 30831 30832 30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 30885 30886 30887 30888 30889 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 30900 30901 30902 30903 30904 30905 30906 30907 30908 30909 30910 30911 30912 30913 30914 30915 30916 30917 30918 30919 30920 30921 30922 30923 30924 30925 30926 30927 30928 30929 30930 30931 30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 30946 30947 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 30974 30975 30976 30977 30978 30979 30980 30981 30982 30983 30984 30985 30986 30987 30988 30989 30990 30991 30992 30993 30994 30995 30996 30997 30998 30999 31000 31001 31002 31003 31004 31005 31006 31007 31008 31009 31010 31011 31012 31013 31014 31015 31016 31017 31018 31019 31020 31021 31022 31023 31024 31025 31026 31027 31028 31029 31030 31031 31032 31033 31034 31035 31036 31037 31038 31039 31040 31041 31042 31043 31044 31045 31046 31047 31048 31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 31069 31070 31071 31072 31073 31074 31075 31076 31077 31078 31079 31080 31081 31082 31083 31084 31085 31086 31087 31088 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 31112 31113 31114 31115 31116 31117 31118 31119 31120 31121 31122 31123 31124 31125 31126 31127 31128 31129 31130 31131 31132 31133 31134 31135 31136 31137 31138 31139 31140 31141 31142 31143 31144 31145 31146 31147 31148 31149 31150 31151 31152 31153 31154 31155 31156 31157 31158 31159 31160 31161 31162 31163 31164 31165 31166 31167 31168 31169 31170 31171 31172 31173 31174 31175 31176 31177 31178 31179 31180 31181 31182 31183 31184 31185 31186 31187 31188 31189 31190 31191 31192 31193 31194 31195 31196 31197 31198 31199 31200 31201 31202 31203 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 31295 31296 31297 31298 31299 31300 31301 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312 31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364 31365 31366 31367 31368 31369 31370 31371 31372 31373 31374 31375 31376 31377 31378 31379 31380 31381 31382 31383 31384 31385 31386 31387 31388 31389 31390 31391 31392 31393 31394 31395 31396 31397 31398 31399 31400 31401 31402 31403 31404 31405 31406 31407 31408 31409 31410 31411 31412 31413 31414 31415 31416 31417 31418 31419 31420 31421 31422 31423 31424 31425 31426 31427 31428 31429 31430 31431 31432 31433 31434 31435 31436 31437 31438 31439 31440 31441 31442 31443 31444 31445 31446 31447 31448 31449 31450 31451 31452 31453 31454 31455 31456 31457 31458 31459 31460 31461 31462 31463 31464 31465 31466 31467 31468 31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488
|
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016, 2019 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014, 2017, 2021, 2022 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
;;; Copyright © 2015 Pierre-Antoine Rault <par@rigelk.eu>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015, 2016, 2020 Christine Lemmer-Webber <cwebber@dustycloud.org>
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
;;; Copyright © 2015, 2016, 2017, 2019, 2022 Leo Famulari <leo@famulari.name>
;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2015, 2017, 2020 Kyle Meyer <kyle@kyleam.com>
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
;;; Copyright © 2016, 2018, 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2016-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2016, 2017, 2021, 2022 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2016, 2017, 2019 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2016, 2017, 2018, 2021, 2022 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2016, 2017, 2018, 2020, 2021 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2016–2022 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2016, 2017 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
;;; Copyright © 2017 Frederick M. Muriithi <fredmanglis@gmail.com>
;;; Copyright © 2017, 2018 Adriano Peluso <catonano@gmail.com>
;;; Copyright © 2017 Ben Sturmfels <ben@sturm.com.au>
;;; Copyright © 2017, 2018, 2019, 2021, 2022 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
;;; Copyright © 2017, 2020, 2021 Roel Janssen <roel@gnu.org>
;;; Copyright © 2017, 2018, 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
;;; Copyright © 2017, 2019, 2021 Brendan Tildesley <mail@brendan.scot>
;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2018 Adam Massmann <massmannak@gmail.com>
;;; Copyright © 2016, 2018 Tomáš Čech <sleep_walker@gnu.org>
;;; Copyright © 2018-2022 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2018, 2019, 2021 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2018, 2019, 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2019, 2020, 2021, 2022 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2019, 2020, 2021, 2022 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
;;; Copyright © 2019, 2020, 2021 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2019, 2021, 2022 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
;;; Copyright © 2020 Riku Viitanen <riku.viitanen@protonmail.com>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 sirgazil <sirgazil@zoho.com>
;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org>
;;; Copyright © 2020, 2021 Alexandros Theodotou <alex@zrythm.org>
;;; Copyright © 2020 Josh Marshall <joshua.r.marshall.1991@gmail.com>
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
;;; Copyright © 2020, 2022 Matthew James Kraai <kraai@ftbfs.org>
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
;;; Copyright © 2020, 2022 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
;;; Copyright © 2020 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
;;; Copyright © 2020, 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de>
;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com>
;;; Copyright © 2019 Kristian Trandem <kristian@devup.no>
;;; Copyright © 2020, 2021 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2020 EuAndreh <eu@euandre.org>
;;; Copyright © 2021, 2022 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2021, 2022 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2021 Ellis Kenyő <me@elken.dev>
;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 jgart <jgart@dismail.de>
;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
;;; Copyright © 2021 Franck Pérignon <franck.perignon@univ-grenoble-alpes.fr>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
;;; Copyright © 2021 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
;;; Copyright © 2021, 2022 Pradana Aumars <paumars@courrier.dev>
;;; Copyright © 2021, 2022 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Sébastien Lerique <sl@eauchat.org>
;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj@protonmail.com>
;;; Copyright © 2021 Filip Lajszczak <filip@lajszczak.dev>
;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
;;; Copyright © 2022 Evgeny Pisemsky <evgeny@pisemsky.com>
;;; Copyright © 2022 drozdov <drozdov@portalenergy.tech>
;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;; Copyright © 2022 Wamm K. D. <jaft.r@outlook.com>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
;;; Copyright © 2022 Philip McGrath <philip@philipmcgrath.com>
;;; Copyright © 2022 Marek Felšöci <marek@felsoci.sk>
;;; Copyright © 2022 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2022 Tomasz Jeneralczyk <tj@schwi.pl>
;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
;;; Copyright © 2022 Garek Dyszel <garekdyszel@disroot.org>
;;; Copyright © 2022 Baptiste Strazzulla <bstrazzull@hotmail.fr>
;;;
;;; 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 python-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages algebra)
#:use-module (gnu packages adns)
#:use-module (gnu packages aidc)
#:use-module (gnu packages attr)
#:use-module (gnu packages backup)
#:use-module (gnu packages bash)
#:use-module (gnu packages check)
#:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages databases)
#:use-module (gnu packages dbm)
#:use-module (gnu packages django)
#:use-module (gnu packages djvu)
#:use-module (gnu packages docker)
#:use-module (gnu packages documentation)
#:use-module (gnu packages enchant)
#:use-module (gnu packages file)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages fonts)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gdb)
#:use-module (gnu packages gcc)
#:use-module (gnu packages geo)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages graphics)
#:use-module (gnu packages gsasl)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages gtk)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages inkscape)
#:use-module (gnu packages image)
#:use-module (gnu packages image-processing)
#:use-module (gnu packages imagemagick)
#:use-module (gnu packages jupyter)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
#:use-module (gnu packages libidn)
#:use-module (gnu packages libusb)
#:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
#:use-module (gnu packages man)
#:use-module (gnu packages markup)
#:use-module (gnu packages maths)
#:use-module (gnu packages monitoring)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages networking)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages node)
#:use-module (gnu packages ninja)
#:use-module (gnu packages openstack)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pdf)
#:use-module (gnu packages perl)
#:use-module (gnu packages photo)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages protobuf)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-compression)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-web)
#:use-module (gnu packages qt)
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages regex)
#:use-module (gnu packages sdl)
#:use-module (gnu packages scanner)
#:use-module (gnu packages search)
#:use-module (gnu packages serialization)
#:use-module (gnu packages shells)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages ssh)
#:use-module (gnu packages swig)
#:use-module (gnu packages terminals)
#:use-module (gnu packages tex)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages textutils)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
#:use-module (gnu packages video)
#:use-module (gnu packages web)
#:use-module (gnu packages wxwidgets)
#:use-module (gnu packages base)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages tcl)
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages serialization)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix hg-download)
#:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix build-system trivial)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
(define-public python-xmldiff
(package
(name "python-xmldiff")
(version "2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xmldiff" version))
(sha256
(base32 "0qygxi3z1jwb0471k7bh5gcqf7wqm4xhrkmwhf36gjgjw46a5gh5"))))
(build-system python-build-system)
(propagated-inputs (list python-lxml python-six))
(home-page "https://github.com/Shoobx/xmldiff")
(synopsis "Creates diffs of XML files")
(description "This Python tool figures out the differences between two
similar XML files, in the same way the @command{diff} utility does it.")
(license license:expat)))
(define-public python-janus
(package
(name "python-janus")
(version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "janus" version))
(sha256
(base32 "030xvl2vghi5ispfalhvch1rl6i2jsy5bf1dgjafa7vifppy04j7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "--cov=janus" "--cov=tests")))))))
(native-inputs
(list python-pytest python-pytest-cov python-pytest-asyncio))
(home-page "https://github.com/aio-libs/janus/")
(synopsis
"Sync-async queue to interoperate between asyncio tasks and classic threads")
(description
"Mixed sync-async queue, supposed to be used for communicating between
classic synchronous (threaded) code and asynchronous (in terms of
@url{https://docs.python.org/3/library/asyncio.html,asyncio}) one. Like
@url{https://en.wikipedia.org/wiki/Janus,Janus god} the queue object from the
library has two faces: synchronous and asynchronous interface. Synchronous is
fully compatible with
@url{https://docs.python.org/3/library/queue.html,standard queue},
asynchronous one follows
@url{https://docs.python.org/3/library/asyncio-queue.html,asyncio queue
design}.")
(license license:asl2.0)))
(define-public python-jupytext
(package
(name "python-jupytext")
(version "1.14.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mwouts/jupytext")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0gqpvphrp2ja9ggadx0rrk0sqbpz6kqqg62qqmw4k17469lphc8c"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
;; some tests fail when HOME=/homeless-shelter.
(setenv "HOME" "/tmp")
;; OSError: [Errno 18] Invalid cross-device link
(setenv "TMPDIR" "/tmp")
(when tests?
(let ((disabled-tests
(list "test_create_header_with_set_formats"
"test_pre_commit_hook"
"test_sync_with_pre_commit_hook")))
(invoke "pytest" "-vv" "-k"
(string-append "not "
(string-join disabled-tests
" and not "))))))))))
(native-inputs
(list git-minimal
python-autopep8
python-black
python-flake8
python-gitpython
python-isort
python-ipython-genutils
python-jupyter-server
python-pre-commit
python-pytest
python-pyaml))
(propagated-inputs
(list python-markdown-it-py
python-mdit-py-plugins
python-nbformat))
(home-page "https://github.com/mwouts/jupytext")
(synopsis
"Jupyter notebooks as Markdown documents, Julia, Python or R scripts")
(description
"Jupytext is a plugin for Jupyter that can save Jupyter notebooks as
either Markdown files or scripts in many languages. Common use cases for
Jupytext are:
@itemize
@item version control on Jupyter Notebooks
@item editing, merging or refactoring notebooks in your favorite text editor
@item applying Q&A checks on notebooks.
@end itemize
")
(license license:expat)))
(define-public python-logzero
(package
(name "python-logzero")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "logzero" version))
(sha256
(base32 "10nh186vk6hpnpfycym44gja4fja0jyzw7q8dwimfd1rmv9xswvz"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-pytest-runner))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest")))))))
(home-page "https://github.com/metachris/logzero")
(synopsis "Robust and effective logging for Python")
(description
"@code{logzero} provides a fully configured Python logger object for
easy logging and rotating to a console or a file.")
(license license:expat)))
(define-public python-logbook
(package
(name "python-logbook")
(version "1.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Logbook" version))
(sha256
(base32 "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'cythonize-sources
(lambda _
(with-directory-excursion "logbook"
(invoke "cython" "_speedups.pyx"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Check cython build also
(setenv "CYBUILD" "True")
(invoke "pytest" "--cov=logbook" "-r" "s" "tests")))))))
(native-inputs
(list python-cython python-mock python-pytest python-pytest-cov
python-brotli))
(home-page "https://github.com/getlogbook/logbook")
(synopsis "Logbook is a logging replacement for Python")
(description
"Logbook is a logging system for Python that replaces the standard
library’s logging module. It was designed with both complex and simple
applications in mind and the idea to make logging fun.")
(license license:bsd-3)))
(define-public python-ubelt
(package
(name "python-ubelt")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Erotemic/ubelt")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0hac9nqqvqfbca2s4g0mp1fnj0ah60bg9fb8234ibna3jww8qs33"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp") ;else the test suite hangs
(invoke "pytest" "-vv" "-k"
(string-append
;; The builder user home doesn't match HOME,
;; which causes this test to fail.
"not userhome "
;; This one pointlessly tries
;; locating various binaries on
;; the path.
"and not find_exe"))))))))
(propagated-inputs (list python-ordered-set))
(native-inputs
(list python-pytest
python-requests
python-xdoctest))
(home-page "https://github.com/Erotemic/ubelt")
(synopsis "Python library for hashing, caching, timing and more")
(description "Ubelt is a small library of simple functions that extend the
Python standard library. It includes an @acronym{API, Application Programming
Interface} to simplify common problems such as caching, timing, computing
progress, among other things.")
(license license:asl2.0)))
(define-public python-ueberzug
(package
(name "python-ueberzug")
(version "18.1.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ueberzug" version))
(sha256
(base32
"1hxd45dnwa9yv908acarr98n2drmar66wzq9z2qd3irj24srzr3w"))))
(build-system python-build-system)
(inputs
(list libx11 libxext))
(propagated-inputs
(list python-attrs python-docopt python-pillow python-xlib))
(home-page "https://github.com/seebye/ueberzug")
(synopsis "Command line util to display images in combination with X11")
(description "Überzug is a command line util which draws images on
terminals by using child windows. The advantages of using Überzug are:
@itemize
@item No race conditions as a new window is created to display images.
@item Expose events will be processed, so images will be redrawn on switch
workspaces.
@item Tmux support (excluding multi pane windows).
@item Terminals without the WINDOWID environment variable are supported.
@item Chars are used as position - and size unit.
@item No memory leak (/ unlimited cache).
@end itemize")
(license license:gpl3+)))
(define-public python-fire
(package
(name "python-fire")
(version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fire" version))
(sha256
(base32
"0qka44n88y3qcj7xz0k0f3qb4phcg4z0wvd4jcii9lcr6rvbiqn5"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(inputs
(list python-six python-termcolor))
(synopsis "Library for automatically generating command line interfaces")
(description
"Fire is a library for automatically generating command line interfaces
from absolutely any Python object. The following are the advantages:
@itemize
@item A simple way to create a CLI in Python.
@item A helpful tool for developing and debugging Python code.
@item Helps with exploring existing code or turning other people's code into a
command line interface.
@item Makes transitioning between Bash and Python easier.
@item Makes using a Python REPL easier by setting up the REPL with the modules
and variables you'll need already imported and created.
@end itemize")
(home-page "https://github.com/google/python-fire")
(license license:asl2.0)))
(define-public python-dotmap
(package
(name "python-dotmap")
(version "1.3.30")
(source (origin
(method url-fetch)
(uri (pypi-uri "dotmap" version))
(sha256
(base32
"0s5kb2v7jd0narz6m6jcicak3h5pw290wz21cdsv8pq77y9sf8aq"))))
(build-system python-build-system)
(home-page "https://github.com/drgrib/dotmap")
(synopsis "Ordered, dynamically-expandable dot-access dictionary")
(description
"DotMap is a dot-access dictionary subclass that has dynamic
hierarchy creation, can be initialized with keys, can be initialized from a
dictionary, can be convert to a dictionary, and is ordered by insertion.")
(license license:expat)))
(define-public python-twodict
(package
(name "python-twodict")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "twodict" version))
(sha256
(base32 "0ifv7dv18jn2lg0a3l6zdlvmmlda2ivixfjbsda58a2ay6kxznr0"))))
(build-system python-build-system)
(home-page "https://github.com/MrS0m30n3/twodict")
(synopsis "Two way ordered dictionary for Python")
(description "TwoDict is a custom dictionary in which you can get the
key:value relationship but you can also get the value:key relationship. It also
remembers the order in which the items were inserted and supports almost all the
features of the Python's built-in dict.")
(license license:unlicense)))
(define-public python-argopt
(package
(name "python-argopt")
(version "0.7.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "argopt" version))
(sha256
(base32
"0ybs7kkp0cpl8zn1lvf7481xhssg1bbhh5la2cjzdm5yibashyxa"))))
(build-system python-build-system)
(native-inputs
(list python-coverage python-nose python-setuptools ; Won't build without this.
python-setuptools-scm))
(propagated-inputs
(list python-toml python-flake8))
(home-page "https://github.com/casperdcl/argopt")
(synopsis "Generate a command-line interface from a docstring")
(description "This package provides tools to define a command line interface
from a docstring rather than the other way around.")
(license license:mpl2.0)))
(define-public python-cachetools
(package
(name "python-cachetools")
(version "4.2.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "cachetools" version))
(sha256
(base32
"1zqc098gk6y614lxwqd9z2gm8lldgvrpid133pnlm4m048gfvdb1"))))
(build-system python-build-system)
(home-page "https://github.com/tkem/cachetools/")
(synopsis "Extensible memoizing collections and decorators")
(description "This module provides various memoizing collections and
decorators, including variants of the Python standard library's
@code{lru_cache} function decorator.")
(license license:expat)))
(define-public python-cobib
(package
(name "python-cobib")
(version "3.5.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "cobib" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"16nbrbvascbf6cb7yvn9q793dy8zx703pqrmk3mswib9a19mnx3n"))))
(build-system python-build-system)
(propagated-inputs
(list python-beautifulsoup4
python-bibtexparser
python-pylatexenc
python-requests
python-requests-oauthlib
python-ruamel.yaml))
(native-inputs
(list python-future
python-pyte
python-pytest))
(home-page "https://gitlab.com/mrossinek/cobib")
(synopsis "Terminal-based bibliography management tool")
(description
"@command{cobib} is a command-line based bibliography management tool.
It uses a plain-text database, a location-independent library, and features
git integration, command-line support, and a curses-based TUI.")
(license license:expat)))
(define-public python-colorful
(package
(name "python-colorful")
(version "0.5.4")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
(uri (git-reference
(url "https://github.com/timofurrer/colorful")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fcz5v8b318a3dsdha4c874jsf3wmcw3f25bv2csixclyzacli98"))))
(build-system pyproject-build-system)
(native-inputs
(list python-coverage python-flake8 python-pytest))
(propagated-inputs
(list python-colorama))
(home-page "http://github.com/timofurrer/colorful")
(synopsis "Terminal string styling")
(description "Colorful provides an array of text styles, that can be used
as functions or string constants to form colored terminal output.")
(license license:expat)))
(define-public python-yaspin
(package
(name "python-yaspin")
(version "1.5.0")
(source
(origin
(method url-fetch)
(uri
(pypi-uri "yaspin" version))
(sha256
(base32 "1iirah0kydrdp505qnjj6gi54avcr7z0hbkfx9vmh8myr30rpz6q"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/pavdmyt/yaspin")
(synopsis "Yet Another Terminal Spinner")
(description "Yaspin provides a terminal spinner to indicate the progress
during long operations.")
(license license:expat)))
(define-public python-lunr
(package
(name "python-lunr")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri
(pypi-uri "lunr" version))
(sha256
(base32 "106akalywfmnypzkdrhgz4n4740a8xayspybsw59kq06vz8i2qrc"))))
(build-system python-build-system)
(native-inputs
(list python-mock python-pytest))
(propagated-inputs
(list python-nltk-3.4))
(home-page
"https://github.com/yeraydiazdiaz/lunr.py")
(synopsis "Full-text search library")
(description "This package provides python library for full-text search.
It indexes documents and provides a search interface for retrieving documents
that best match text queries.")
(license license:expat)))
(define-public python-mdit-py-plugins
(package
(name "python-mdit-py-plugins")
(version "0.3.1")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/executablebooks/mdit-py-plugins")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"00ybbfb6dzn9q5qnvnm8bmhd84s215ik7pcdb4r35zhwiv2ikizz"))))
(build-system pyproject-build-system)
(propagated-inputs
(list python-markdown-it-py
python-attrs))
(native-inputs
(list python-coverage
python-flit-core
python-pytest
python-pytest-cov
python-pytest-regressions))
(home-page "https://github.com/executablebooks/mdit-py-plugins")
(synopsis "Collection of plugins for markdown-it-py")
(description "This package contains a collection of plugins for
@code{markdown-it-py} like:
@enumerate
@item amsmath,
@item attrs,
@item container,
@item definition list,
@item dollarmath,
@item field list,
@item footnote,
@item textmath, and
@item wordcount.
@end enumerate")
(license license:expat)))
(define-public python-mdurl
(package
(name "python-mdurl")
(version "0.1.2")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
(uri (git-reference
(url "https://github.com/executablebooks/mdurl")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0csc777q42jzv4zgdzxmwp8xqlb92ws1jvj09m2smh4klw67q5f3"))))
(build-system pyproject-build-system)
(native-inputs (list python-flit python-pytest))
(home-page "https://github.com/executablebooks/mdurl")
(synopsis "Markdown URL utilities")
(description
"This package implements a Python port of the JavaScript @code{mdurl}.")
(license license:expat)))
(define-public python-mrkd
(package
(name "python-mrkd")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mrkd" version))
(sha256
(base32 "1bvaqbna1ihb4y2mv9pmvqcq3r9j6lwbbii99dani8lxx4dqqvs5"))))
(build-system python-build-system)
(propagated-inputs
(list python-jinja2 python-mistune python-pygments))
(home-page "https://pypi.org/project/mrkd/")
(synopsis "Python Markdown implementation")
(description
"@code{mrkd} writes man pages using Markdown, and convert them to Roff or
HTML")
(license license:bsd-3)))
(define-public python-mkdocs
(package
(name "python-mkdocs")
(version "1.3.0")
(source
(origin
;; The tests suite appears to be incomplete in the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/mkdocs/mkdocs")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1n5rdllrxvhnxmdrddf55p3s86dakx0rq2gg6bj6pr6jg2pn932b"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; Requirements refer to a specific version of dependencies,
;; which are too old. So we patch to refer to any later version.
(add-after 'unpack 'patch-requirements
(lambda _
(substitute* "setup.py"
(("==") ">="))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest"
"discover" "-p" "*tests.py" "mkdocs"
"--top-level-directory" ".")))))))
(propagated-inputs
(list python-babel
python-click
python-ghp-import
python-importlib-metadata
python-jinja2
python-markdown
python-markupsafe
python-mdx-gh-links
python-mergedeep
python-packaging
python-pyyaml
python-pyyaml-env-tag
python-watchdog))
(home-page "https://www.mkdocs.org")
(synopsis "Project documentation with Markdown")
(description "MkDocs is a static site generator geared towards building
project documentation. Documentation source files are written in Markdown, and
configured with a single YAML configuration file.")
(license license:bsd-3)))
(define-public python-mkdocs-markdownextradata-plugin
(package
(name "python-mkdocs-markdownextradata-plugin")
(version "0.2.5")
(source (origin
;; Use git, as there are some test files missing from the PyPI release,
;; see https://github.com/rosscdh/mkdocs-markdownextradata-plugin/issues/41.
(method git-fetch)
(uri (git-reference
(url "https://github.com/rosscdh/mkdocs-markdownextradata-plugin")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1a3868s9m7pzyfncpjbjsa9vw5nihssl2v47pxj7h6qa67kvlk3g"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(propagated-inputs (list python-mkdocs python-pyyaml))
(home-page "https://github.com/rosscdh/mkdocs-markdownextradata-plugin/")
(synopsis "Inject mkdocs.yml extra variables into the MkDocs markdown
template")
(description
"This package provides a MkDocs plugin that injects the mkdocs.yml extra
variables into the markdown template")
(license license:expat)))
(define-public python-pymdown-extensions
(package
(name "python-pymdown-extensions")
(version "8.1.1")
(source
(origin
(method url-fetch)
(uri
(pypi-uri "pymdown-extensions" version))
(sha256
(base32 "0d8pdndrl1kj105lq7r6kw2dnhcvll6h2qs07w71mcpi7gx728v3"))))
(build-system python-build-system)
;; FIXME: "AssertionError: False is not true"
(arguments
`(#:tests? #f))
(propagated-inputs
(list python-markdown))
(home-page "https://github.com/facelessuser/pymdown-extensions")
(synopsis "Extension pack for Python Markdown")
(description "PyMdown Extensions is a collection of extensions for Python
Markdown. All extensions are found under the module namespace of pymdownx.")
(license license:expat)))
(define-public python-plotille
(package
(name "python-plotille")
(version "4.0.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "plotille" version))
(sha256
(base32
"0fvsk6glxfphhqy405h05rj3v95jd1byl5hv2fyd5l31wln23shj"))))
(build-system python-build-system)
(native-inputs (list python-six))
(home-page "https://github.com/tammoippen/plotille")
(synopsis "Plot in the terminal using braille dots")
(description
"Plotille provides a figure class and graphing functions to create plots,
scatter plots, histograms and heatmaps in the terminal using braille dots.")
(license license:expat)))
(define-public python-mdx-gh-links
(package
(name "python-mdx-gh-links")
(version "0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mdx_gh_links" version))
(sha256
(base32 "167k1jbp3jifxbnlpi6wy0z1skam7gqv2sixb5bhggb2vypqvysr"))))
(build-system python-build-system)
(arguments (list #:tests? #f)) ;tests connect github
(propagated-inputs (list python-markdown))
(home-page "https://github.com/Python-Markdown/github-links/")
(synopsis "Python-Markdown extension adding support for shorthand links")
(description "This package is an extension to Python-Markdown which adds
support for shorthand links to GitHub users, repositories, issues and
commits.")
(license license:bsd-3)))
(define-public python-mkdocs-material
(package
(name "python-mkdocs-material")
(version "7.1.3")
(source
(origin
(method url-fetch)
(uri
(pypi-uri "mkdocs-material" version))
(sha256
(base32 "0ci9xiasq9nfn09v11m7p49vzazdbgslw7rpzjd6y3hsmn9vljz3"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; Requirement mkdocs-material-extensions
;; in-turn requires mkdocs-material. This causes
;; circular dependency, so we remove this requirement.
(add-after 'unpack 'patch-requirements
(lambda _
(substitute* "requirements.txt"
(("mkdocs-material-extensions.*$") "")))))))
(propagated-inputs
(list python-markdown python-mkdocs python-pygments
python-pymdown-extensions))
(home-page "https://squidfunk.github.io/mkdocs-material/")
(synopsis "Material Design theme for MkDocs")
(description "This package provides a theme plugin for the static site
generator MkDocs.")
(license license:expat)))
(define-public python-slixmpp
(package
(name "python-slixmpp")
(version "1.5.2")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://lab.louiz.org/poezio/slixmpp.git")
(commit
(string-append "slix-" version))))
(file-name
(git-file-name name version))
(sha256
(base32 "15mqxcws14bjvh5jcfwl86zsvrymkdw3ya07vb44md7vfnsnclwx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
(substitute* "setup.py"
(("'CC', 'cc'")
"'CC', 'gcc'"))
#t)))))
(native-inputs
`(("cython" ,python-cython)
("gnupg" ,gnupg)
("pkg-config" ,pkg-config)))
(propagated-inputs
(list python-aiodns python-aiohttp python-pyasn1
python-pyasn1-modules))
(inputs
(list libidn python)) ; We are building a Python extension.
(synopsis "XMPP library without threads")
(description "Slixmpp is a XMPP library for Python 3.7+. It is a fork of
SleekXMPP. Its goal is to only rewrite the core of the library (the low level
socket handling, the timers, the events dispatching) in order to remove all
threads.")
(home-page "https://lab.louiz.org/poezio/slixmpp")
(license license:expat)))
(define-public python-tenacity
(package
(name "python-tenacity")
(version "8.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "tenacity" version))
(sha256
(base32
"0bwkvjpjfyi9dgszzad9aww2vc00w3bczjnbifi92cp7wch2l923"))))
(build-system python-build-system)
(native-inputs
(list python-setuptools-scm python-tornado python-typeguard
python-pytest))
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "pytest" "-vv"))))))
(home-page "https://github.com/jd/tenacity")
(synopsis "Retrying library for python")
(description "Tenacity is a general-purpose python library to simplify the
task of adding retry behavior to just about anything.")
(license license:asl2.0)))
(define-public python-pytelegrambotapi
(package
(name "python-pytelegrambotapi")
(version "3.7.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/eternnoir/pyTelegramBotAPI")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0r7g5zs0fk3g2dxvbpl0pi730x7r2kalrhn30fs0pvc15a59fmxz"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "tests"
(invoke "py.test")))
#t)))))
(propagated-inputs
(list python-requests))
(native-inputs
(list python-pytest))
(home-page "https://github.com/eternnoir/pyTelegramBotAPI")
(synopsis "Python Telegram bot api")
(description "This package provides a simple, but extensible Python
implementation for the Telegram Bot API.")
(license license:gpl2)))
(define-public python-colorlog
(package
(name "python-colorlog")
(version "6.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "colorlog" version))
(sha256
(base32 "1s7x0v872h8aks8xp01wmv6hzisxqjrh1svbbcycir0980h76krl"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/borntyping/python-colorlog")
(synopsis "Log formatting with colors for python")
(description "The @code{colorlog.ColoredFormatter} is a formatter for use
with Python's logging module that outputs records using terminal colors.")
(license license:expat)))
(define-public python-pyprind
(package
(name "python-pyprind")
(version "2.11.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "PyPrind" version))
(sha256
(base32
"1gscnlvj37m421ch3akm3kddxqkrgbg5zrpwy2ky1j59w6vclzg3"))))
(build-system python-build-system)
(propagated-inputs
(list python-psutil))
(home-page "https://github.com/rasbt/pyprind")
(synopsis "Python Progress Bar and Percent Indicator Utility")
(description "The PyPrind (Python Progress Indicator) module provides a
progress bar and a percentage indicator object that let you track the progress
of a loop structure or other iterative computation.")
(license license:bsd-3)))
(define-public python-glymur
(package
(name "python-glymur")
(version "0.12.0")
(source
(origin
(method git-fetch) ; no tests data in PyPi package
(uri (git-reference
(url "https://github.com/quintusdias/glymur")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "03nny8k42yxdyw7sjv43szmg23x3rqplbaf7m0a0lpvwla1dl78i"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-library-locations
(lambda* (#:key inputs #:allow-other-keys)
;; XXX: It's a workaround for Python inability to find the
;; .so libraries with ctypes.util.find_library()
(substitute* '("glymur/config.py")
(("path = find_library\\(libname\\)")
(string-append
"if libname == \"openjp2\":\n"
" path = \""
(search-input-file inputs "/lib/libopenjp2.so") "\"\n"
" elif libname == \"tiff\":\n"
" path = \""
(search-input-file inputs "/lib/libtiff.so") "\"\n"
" elif libname == \"c\":\n"
" path = \""
(search-input-file inputs "/lib/libc.so.6") "\"\n")))))
(add-before 'check 'disable-failing-tests
(lambda _
;; Failing test due to inability of
;; ctypes.util.find_library() to determine library path,
;; which is patched above.
(delete-file "tests/test_config.py"))))))
(native-inputs
(list python-pytest))
(inputs
(list openjpeg ; glymur/lib/openjp2.py
libtiff)) ; glymur/lib/tiff.py
(propagated-inputs
(list python-lxml
python-numpy
python-packaging))
(home-page "https://github.com/quintusdias/glymur")
(synopsis "Python interface to OpenJPEG and LibTIFF")
(description
"This package provides Python interface to the OpenJPEG library which
allows one to read and write JPEG 2000 files")
(license license:expat)))
(define-public python-gphoto2
(package
(name "python-gphoto2")
(version "2.2.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "gphoto2" version))
(sha256
(base32
"118zm25c8mlajfl0pzssnwz4b8lamj9dgymla9rn4nla7l244a0r"))))
(build-system python-build-system)
(native-inputs
(list pkg-config))
(inputs
(list libgphoto2))
(home-page "https://github.com/jim-easterbrook/python-gphoto2")
(synopsis "Python interface to libgphoto2")
(description "@code{python-gphoto2} is a comprehensive Python interface
(or binding) to @code{libgphoto2}. It is built using @code{SWIG} to
automatically generate the interface code.")
(license license:gpl3+)))
(define-public python-colour
(package
(name "python-colour")
(version "0.1.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "colour" version))
(sha256
(base32
"1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g"))))
(build-system python-build-system)
(native-inputs
(list python-d2to1))
(home-page "https://github.com/vaab/colour")
(synopsis "Convert and manipulate various color representations")
(description "Pythonic way to manipulate color representations (HSL, RVB,
web, X11, ...).")
(license license:expat)))
(define-public python-d2to1
(package
(name "python-d2to1")
(version "0.2.12.post1")
(source (origin
(method url-fetch)
(uri (pypi-uri "d2to1" version))
(sha256
(base32
"09fq7pq1z8d006xh5z75rm2lk61v6yn2xhy53z4gsgibhqb2vvs9"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/embray/d2to1")
(synopsis "Allows for distutils2-like setup.cfg files as package metadata
in python")
(description "The python package d2to1 (the d is for distutils) allows
using distutils2-like setup.cfg files for a package's metadata with a
distribute/setuptools setup.py script.")
(license license:bsd-2)))
(define-public python-rawkit
(package
(name "python-rawkit")
(version "0.6.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "rawkit" version))
(sha256
(base32
"0vrhrpr70i61y5q5ysk341x1539ff1q1k82g59zq69lv16s0f76s"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-mock))
(inputs
(list libraw))
(home-page "https://rawkit.readthedocs.io")
(synopsis "Ctypes-based LibRaw binding for Python")
(description "The rawkit package provides two modules: rawkit and libraw.
The rawkit module provides a high-level Pythonic interface for developing raw
photos, while the libraw module provides a CTypes based interface for
interacting with the low-level LibRaw C APIs.")
(license license:expat)))
(define-public python-easygui
(package
(name "python-easygui")
(version "0.98.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "easygui" version))
(sha256
(base32
"1zmvmwgxyzvm83818skhn8b4wrci4kmnixaax8q3ia5cn7xrmj6v"))))
(build-system python-build-system)
(propagated-inputs
(list `(,python "tk")))
(home-page "https://github.com/robertlugg/easygui")
(synopsis "GUI programming module for Python")
(description "EasyGUI is a module for very simple, very easy GUI
programming in Python. EasyGUI is different from other GUI generators in that
EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by
simple function calls.")
(license license:bsd-3)))
(define-public python-pymd4c
(package
(name "python-pymd4c")
(version "0.4.6.0b1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pymd4c" version))
(sha256
(base32 "07s3arn85ri92im6x3ipljdmrxmpik7irs06i6lm17j1x6j9841d"))))
(build-system python-build-system)
(inputs
(list md4c))
(native-inputs
(list python-flake8 python-pkgconfig pkg-config))
(home-page "https://github.com/dominickpastore/pymd4c")
(synopsis "Python bindings for MD4C")
(description
"PyMD4C provides Python bindings for MD4c, a C Markdown parser, compliant
to CommonMark.")
(license license:expat)))
(define-public python-pymediainfo
(package
(name "python-pymediainfo")
(version "4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pymediainfo" version))
(sha256
(base32
"0mhpxs7vlqx8w75z93dy7nnvx89kwfdjkla03l19an15rlyqyspd"))))
(build-system python-build-system)
(native-inputs
(list python-setuptools-scm python-pytest))
(inputs
(list libmediainfo))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-libmediainfo
(lambda _
(substitute* "pymediainfo/__init__.py"
(("libmediainfo.so.0")
(search-input-file %build-inputs
"/lib/libmediainfo.so.0")))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
;; Skip the only failing test "test_parse_url" because it tries
;; to access the internet.
(invoke "pytest" "-vv" "-k" "not test_parse_url")))))))
(home-page
"https://github.com/sbraz/pymediainfo")
(synopsis
"Python wrapper for the mediainfo library")
(description
"This package provides a Python wrapper for the mediainfo library to
access the technical and tag data for video and audio files.")
(license license:expat)))
(define-public python-psutil
(package
(name "python-psutil")
(version "5.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "psutil" version))
(sha256
(base32 "0p1bf6ndcssqh0ic828ggwhzhm67mzj3ffq6043v0fvc1fhn3f7y"))))
(build-system python-build-system)
(arguments
;; FIXME: some tests do not return and time out. Some tests fail because
;; some processes survive kill().
'(#:tests? #f))
(home-page "https://github.com/giampaolo/psutil")
(synopsis "Library for retrieving information on running processes")
(description
"@code{psutil} (Python system and process utilities) is a library for
retrieving information on running processes and system utilization (CPU,
memory, disks, network) in Python. It is useful mainly for system monitoring,
profiling and limiting process resources and management of running processes.
It implements many functionalities offered by command line tools such as: ps,
top, lsof, netstat, ifconfig, who, df, kill, free, nice, ionice, iostat,
iotop, uptime, pidof, tty, taskset, pmap.")
(license license:bsd-3)))
(define-public python-shapely
(package
(name "python-shapely")
(version "1.8.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Shapely" version))
(sha256
(base32 "130rqd0czi128wm5pdn47v4m6czxd7pkzanbya8q48gsm8ffb5d1"))))
(build-system python-build-system)
(native-inputs
(list python-cython python-matplotlib python-pytest
python-pytest-cov))
(inputs
(list geos))
(propagated-inputs
(list python-numpy))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-geos-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((geos (assoc-ref inputs "geos"))
(glibc (assoc-ref inputs ,(if (%current-target-system)
"cross-libc" "libc"))))
(substitute* '("shapely/geos.py" "shapely/_buildcfg.py")
(("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
(string-append "_lgeos = load_dll('geos_c', fallbacks=['"
geos "/lib/libgeos_c.so'])"))
(("free = load_dll\\('c'\\)\\.free")
(string-append "free = load_dll('c', fallbacks=['"
glibc "/lib/libc.so.6']).free"))
(("free = load_dll\\('c', fallbacks=.*\\)\\.free")
(string-append "free = load_dll('c', fallbacks=['"
glibc "/lib/libc.so.6']).free"))))
#t)))))
(home-page "https://github.com/Toblerity/Shapely")
(synopsis "Library for the manipulation and analysis of geometric objects")
(description "Shapely is a Python package for manipulation and analysis of
planar geometric objects. It is based on the @code{GEOS} library.")
(license license:bsd-3)))
(define-public python-shortuuid
(package
(name "python-shortuuid")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "shortuuid" version))
(sha256
(base32
"1f8i4zwj5vmpzbz6b17bljy4399gx5aq7vsyw63sz2qgyjcd73yh"))))
(build-system python-build-system)
(native-inputs
(list python-pep8))
(home-page "https://github.com/skorokithakis/shortuuid")
(synopsis "Generator library for concise, unambiguous and URL-safe UUIDs")
(description
"@code{shortuuid} is a Python library for generating concise, unambiguous
and URL-safe UUIDs. UUIDs are generated using the built-in Python @code{uuid}
module and then similar looking characters are removed.")
(license license:bsd-3)))
(define-public python-logwrap
(package
(name "python-logwrap")
(version "8.2.0.post0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "logwrap" version))
(sha256
(base32
"1dv7gny3rfci5cal2ipr6d0pcz3yhka7af96dfsd3ir1mxy8p1j9"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Tests not included in pypi release.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest"))
#t)))))
(native-inputs
(list python-cython python-pytest python-setuptools-scm python-toml
python-wheel))
(home-page "https://github.com/python-useful-helpers/logwrap")
(synopsis "Decorator for logging function arguments")
(description "This package provides a decorator to log function arguments
and function call return values in a human-readable way.")
(license license:asl2.0)))
(define-public python-clyent
(package
(name "python-clyent")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "clyent" version))
(sha256
(base32
"1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
(build-system python-build-system)
(native-inputs
(list python-mock))
(home-page "https://github.com/Anaconda-Platform/clyent")
(synopsis "Command line client library")
(description "Clyent is a Python command line utility library. It is used
by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
(license license:bsd-3)))
(define-public python-babel
(package
(name "python-babel")
(version "2.10.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Babel" version))
(sha256
(base32
"0l9cvfmsz0hlvcinxaf6xf2f02ldgw3xq9i1fc7lk5zf24vma53n"))))
(build-system python-build-system)
(native-inputs
(list python-freezegun python-pytest tzdata-for-tests))
(propagated-inputs
(list python-pytz))
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(home-page "https://babel.pocoo.org/")
(synopsis
"Tools for internationalizing Python applications")
(description
"Babel is composed of two major parts:
- tools to build and work with gettext message catalogs
- a Python interface to the CLDR (Common Locale Data Repository), providing
access to various locale display names, localized number and date formatting,
etc.")
(license license:bsd-3)))
(define-public python-bidict
(package
(name "python-bidict")
(version "0.21.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bidict" version))
(sha256
(base32
"02dy0b1k7qlhn7ajyzkrvxhyhjj0hzcq6ws3zjml9hkdz5znz92g"))))
(build-system python-build-system)
(native-inputs
(list python-coverage
python-hypothesis
python-pre-commit
python-py
python-pytest
python-pytest-benchmark
python-pytest-cov
python-setuptools-scm
python-sortedcollections
python-sortedcontainers
python-sphinx
python-sphinx-autodoc-typehints
python-tox))
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'relax-reqs
(lambda _
(substitute* "setup.py"
(("sortedcollections < 2") "sortedcollections"))
#t))
(replace 'check
(lambda _ (invoke "./run_tests.py"))))))
(home-page "https://bidict.readthedocs.io")
(synopsis "Bidirectional mapping library")
(description "The @code{bidict} library provides several data structures
for working with bidirectional mappings in Python.")
(license license:mpl2.0)))
(define-public python-bip39
(package
(name "python-bip39")
(version "0.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bip39" version))
(sha256
(base32 "18m7d3gi7vj2zi0bl1z7m0nhcj6i8j9vj4vil276siagnpkv64ry"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/de-centralized-systems/python-bip39/")
(synopsis "Self-contained and simple BIP39 implementation in Python")
(description
"This package provides a self-contained and simple BIP39
implementation written in Python. It includes a @code{bip39.py} executable.
BIP39 is a standardized mapping between binary data (the @emph{entropy}),
and a list of words that are easier to remember for humans (the
@emph{mnemonic}).")
(license license:expat)))
(define-public python-bitarray
(package
(name "python-bitarray")
(version "1.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "bitarray" version))
(sha256
(base32
"177fj6wbw5jln54wpp6plcqy2329wjkwqwvgz7022rrg3xfrq49g"))))
(build-system python-build-system)
(home-page "https://github.com/ilanschnell/bitarray")
(synopsis "Efficient arrays of booleans")
(description "This package provides an object type which efficiently
represents an array of booleans. Bitarrays are sequence types and behave very
much like usual lists. Eight bits are represented by one byte in a contiguous
block of memory. The user can select between two representations:
little-endian and big-endian. All of the functionality is implemented in C.
Methods for accessing the machine representation are provided. This can be
useful when bit level access to binary files is required, such as portable
bitmap image files. Also, when dealing with compressed data which uses
variable bit length encoding, you may find this module useful.")
(license license:psfl)))
(define-public python-boolean.py
(package
(name "python-boolean.py")
(version "3.6")
(source
(origin
;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/bastikr/boolean.py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1wc89y73va58cj7dsx6c199zpxsy9q53dsffsdj6zmc90inqz6qs"))))
(build-system python-build-system)
(home-page "https://github.com/bastikr/boolean.py")
(synopsis "Boolean algebra in one Python module")
(description
"This is a small Python library that implements boolean algebra.
It defines two base elements, @code{TRUE} and @code{FALSE}, and a
@code{Symbol} class that can take on one of these two values. Calculations
are done only in terms of @code{AND}, @code{OR}, and @code{NOT}---other
compositions like @code{XOR} and @code{NAND} are emulated on top of them.
Expressions are constructed from parsed strings or directly in Python.")
(license license:bsd-2)))
(define-public python-hdf4
(package
(name "python-hdf4")
(version "0.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
(base32
"1hjiyrxvxk9817qyqky3nar4y3fs4z8wxz0n884zzb5wi6skrjks"))))
(build-system python-build-system)
(native-inputs `(("nose" ,python-nose)))
(propagated-inputs `(("numpy" ,python-numpy)))
(inputs
`(("hdf4" ,hdf4)
("libjpeg" ,libjpeg-turbo)
("zlib" ,zlib)))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "./runexamples.sh")
(invoke "nosetests" "-v"))))))
(home-page "https://github.com/fhs/python-hdf4")
(synopsis "Python interface to the NCSA HDF4 library")
(description
"Python-HDF4 is a python wrapper around the NCSA HDF version 4 library,
which implements the SD (Scientific Dataset), VS (Vdata) and V (Vgroup) API’s.
NetCDF files can also be read and modified. Python-HDF4 is a fork of
@url{http://hdfeos.org/software/pyhdf.php,pyhdf}.")
(license license:expat)))
(define-public python-h5netcdf
(package
(name "python-h5netcdf")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "h5netcdf" version))
(sha256
(base32 "1b2dcgf5rwy7pb7hr4prkc5vgcw9qc2was20dmnj90lbrpx08rvp"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "h5netcdf/tests")))))))
(native-inputs
(list python-netcdf4
python-pytest
python-setuptools-scm))
(propagated-inputs
(list python-h5py python-packaging))
(home-page "https://h5netcdf.org")
(synopsis "Python interface for the netCDF4 file-format based on h5py")
(description "This package provides Python interface for the netCDF4
file-format that reads and writes local or remote HDF5 files directly via h5py
or h5pyd, without relying on the Unidata netCDF library")
(license license:bsd-3)))
(define-public python-h5py
(package
(name "python-h5py")
(version "3.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "h5py" version))
(sha256
(base32
"0afv805vqrm5071g7alwv41920nhh8kjv4m5nbia9awj9a0x4ll7"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; no test target
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-hdf5-paths
(lambda* (#:key inputs #:allow-other-keys)
(setenv "HDF5_DIR" (assoc-ref inputs "hdf5")))))))
(propagated-inputs
(list python-six python-numpy))
(inputs
(list hdf5-1.10))
(native-inputs
(list python-cython python-pkgconfig pkg-config))
(home-page "https://www.h5py.org/")
(synopsis "Read and write HDF5 files from Python")
(description
"The h5py package provides both a high- and low-level interface to the
HDF5 library from Python. The low-level interface is intended to be a
complete wrapping of the HDF5 API, while the high-level component supports
access to HDF5 files, datasets and groups using established Python and NumPy
concepts.")
(license license:bsd-3)))
(define-public python-hnswlib
(package
(name "python-hnswlib")
(version "0.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "hnswlib" version))
(sha256
(base32 "0wf1cwmxmdzfqmfhrkqdxb5spf21ylgl2bidswhzjrqhwf35c9qf"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-native-optimization
(lambda _
(substitute* "setup.py"
((", '-march=native'") "")))))))
(propagated-inputs
(list python-numpy))
(native-inputs
(list pybind11))
(home-page "https://github.com/nmslib/hnswlib")
(synopsis "Fast approximate nearest neighbor search")
(description "Hnswlib is a header-only C++ implementation of fast
approximate nearest neighbor search with Python bindings.")
(license license:asl2.0)))
(define-public python-pylatexenc
(package
(name "python-pylatexenc")
(version "2.10")
(source (origin
(method url-fetch)
(uri (pypi-uri "pylatexenc" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1ls09z47b5md71gkxcj7fd87ynpvv2walgp2w6z31p26xf2gvn1x"))))
(build-system python-build-system)
(home-page "https://github.com/phfaist/pylatexenc")
(synopsis "LaTeX parser for Unicode/LaTeX conversion")
(description
"@code{python-pylatexenc} is a LaTeX parser providing LaTeX-to-Unicode and
Unicode-to-LaTeX conversion.")
(license license:expat)))
(define-public python-pyls-black
(package
(name "python-pyls-black")
(version "0.4.7")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/rupert/pyls-black/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj"))
;; Patch to work with python-lsp-server. Taken from
;; <https://github.com/rupert/pyls-black/pull/37>.
(modules '((guix build utils)))
(snippet
'(begin
(substitute* "setup.cfg"
(("python-language-server")
"python-lsp-server"))
(substitute* '("pyls_black/plugin.py" "tests/test_plugin.py")
(("pyls_format_document")
"pylsp_format_document")
(("pyls_format_range")
"pylsp_format_range")
(("from pyls([ \\.])" _ char)
(string-append "from pylsp" char)))))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"))
(propagated-inputs
(list python-black python-lsp-server python-tomli))
(native-inputs
(list python-flake8 python-isort python-mypy python-pytest
python-pytest-runner))
(home-page "https://github.com/rupert/pyls-black")
(synopsis "Black plugin for the Python Language Server")
(description "Black plugin for the Python Language Server.")
(license license:expat)))
(define-public python-sh
(package
(name "python-sh")
(version "1.14.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sh" version))
(sha256
(base32
"03gyss1rhj4in7pgysg4q0hxp3230whinlpy1532ljs99lrx0ywx"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; XXX: A Python 2 test fails when HOME=/homeless-shelter.
(setenv "HOME" "/tmp")
(invoke "python" "sh.py" "test"))))))
(native-inputs
(list python-coverage))
(home-page "https://github.com/amoffat/sh")
(synopsis "Python subprocess replacement")
(description "This package provides a replacement for Python's
@code{subprocess} feature.")
(license license:expat)))
(define-public python-cftime
(package
(name "python-cftime")
(version "1.5.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cftime" version))
(sha256
(base32 "0l1a22zlhdpgaisibvvm7dhij4vzfm661rnv00y2snpyqxpdgi3d"))))
(build-system python-build-system)
(propagated-inputs
(list python-numpy))
(native-inputs
(list python-check-manifest
python-coverage
python-coveralls
python-cython
python-pytest-cov
python-sphinx
python-twine
python-wheel))
(home-page "https://unidata.github.io/cftime/")
(synopsis "Library for time handling")
(description
"This package provides time-handling functionality that used to be part
of the netcdf4 package before.")
(license license:expat)))
(define-public python-netcdf4
(package
(name "python-netcdf4")
(version "1.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "netCDF4" version))
(sha256
(base32
"0qxs8r1qmsmg760wm5q0wqlcm7hdd3k7cghryw6wvqd3v5rs7vwm"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'configure-locations
(lambda* (#:key inputs #:allow-other-keys)
(setenv "HDF5_DIR" (assoc-ref inputs "hdf5"))
#t)))))
(native-inputs
(list python-cython))
(propagated-inputs
(list python-numpy python-cftime))
(inputs
(list netcdf hdf4 hdf5))
(home-page "https://github.com/Unidata/netcdf4-python")
(synopsis "Python/numpy interface to the netCDF library")
(description "Netcdf4-python is a Python interface to the netCDF C
library. netCDF version 4 has many features not found in earlier
versions of the library and is implemented on top of HDF5. This module
can read and write files in both the new netCDF 4 and the old netCDF 3
format, and can create files that are readable by HDF5 clients. The
API is modelled after @code{Scientific.IO.NetCDF}, and should be familiar
to users of that module.")
;; The software is mainly ISC, but includes some files covered
;; by the Expat license.
(license (list license:isc license:expat))))
(define-public python-ncclient
(package
(name "python-ncclient")
(version "0.6.12")
(source
(origin
(method git-fetch) ;no tests in PyPI release
(uri (git-reference
(url "https://github.com/ncclient/ncclient")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0cb568z5syg6hh0dv813bw7s1mjy7ga5xzxbm9naf4zz2qfdg4js"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-lxml python-paramiko))
(home-page "https://github.com/ncclient/ncclient")
(synopsis "Python library for NETCONF clients")
(description "@code{ncclient} is a Python library that facilitates
client-side scripting and application development around the NETCONF
protocol.")
(license license:asl2.0)))
(define-public python-ncls
(package
(name "python-ncls")
(version "0.0.65")
(source (origin
(method url-fetch)
(uri (pypi-uri "ncls" version))
(sha256
(base32
"1wx06xqknd2r98w8z93f47g5dpxzn92kamhj8vkq0nj569hf7cg1"))))
(build-system python-build-system)
(propagated-inputs (list python-numpy))
(home-page "https://github.com/endrebak/ncls")
(synopsis "Nested containment list data structure")
(description
"This package provides a wrapper for the nested containment list data
structure. It is a static interval-tree that is fast for both construction
and lookups.")
(license license:bsd-3)))
(define-public python-license-expression
(package
(name "python-license-expression")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "license-expression" version))
(sha256
(base32 "1g0sgphss8hbi1rpl4avy1nmbixmy9v194xdbvkjgl90vzgy2q3r"))))
(build-system python-build-system)
(propagated-inputs
(list python-boolean.py))
(home-page "https://github.com/nexB/license-expression")
(synopsis "Apply boolean logic to license expressions")
(description
"This Python module defines a tiny language to evaluate and compare
license expressions using boolean logic. Logical combinations of licenses can
be tested for equality, containment, and equivalence. They can be normalised
and simplified. It supports SPDX license expressions as well as other naming
conventions and aliases in the same expression.")
(license license:gpl2+)))
(define-public python-wand
(package
(name "python-wand")
(version "0.6.10")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Wand" version))
(sha256
(base32 "0mywzs235skwq670c80achrd34kangwy24793k1nij3651zllgrp"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'find-magickwand
(lambda* (#:key inputs #:allow-other-keys)
(setenv "MAGICK_HOME" (assoc-ref inputs "imagemagick"))
(setenv "WAND_MAGICK_LIBRARY_SUFFIX" ".Q16"))))))
(native-inputs
(list python-pytest))
(inputs
(list imagemagick))
(home-page "https://docs.wand-py.org/")
(synopsis "MagickWand API binding for Python")
(description
"Wand is a ctypes-based binding for ImageMagick's MagickWand library.")
(license license:expat)))
(define-public python-lockfile
(package
(name "python-lockfile")
(version "0.12.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lockfile" version))
(sha256
(base32
"16gpx5hm73ah5n1079ng0vy381hl802v606npkx4x8nb0gg05vba"))))
(build-system python-build-system)
(arguments '(#:test-target "check"))
(native-inputs
(list python-pbr))
(home-page "https://launchpad.net/pylockfile")
(synopsis "Platform-independent file locking module")
(description
"The lockfile package exports a LockFile class which provides a simple
API for locking files.")
(license license:expat)))
(define-public python-fb-re2
(package
(name "python-fb-re2")
(version "1.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/facebook/pyre2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0snprxdnh3m45r3b0az4v0l28h90ycmfbybzla6xg1qviwv9w1ak"))))
(build-system python-build-system)
(inputs
(list re2))
(home-page "https://github.com/facebook/pyre2")
(synopsis "Python wrapper for RE2")
(description "This package provides a Python extension that wraps Google's
RE2 regular expression library. It implements many of the features of
Python's built-in @code{re} module with compatible interfaces.")
(license license:bsd-3)))
(define-public python-filelock
(package
(name "python-filelock")
(version "3.0.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "filelock" version))
(sha256
(base32
"0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
(build-system python-build-system)
(home-page
"https://github.com/benediktschmitt/py-filelock")
(synopsis "Platform independent file lock")
(description "@code{filelock} contains a single module implementing
a platform independent file lock in Python, which provides a simple way of
inter-process communication.")
(license license:unlicense)))
(define-public python-semantic-version
(package
(name "python-semantic-version")
(version "2.8.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "semantic_version" version))
(sha256
(base32
"0m4avx8zdkzc7qglv5zlr54g8yna5vl098drg5396ql7aph2vjyj"))))
(build-system python-build-system)
(home-page "https://github.com/rbarrois/python-semanticversion")
(synopsis "Semantic versioning module for Python")
(description
"The @code{semantic_version} class is a small library for handling
@uref{https://semver.org/, semantic versioning} (@dfn{SemVer}) in Python.
It can compare versions, generate a new version that represents a bump in one of
the version levels, and check whether any given string is a proper semantic
version identifier.")
(license license:bsd-3)))
(define-public python-serpent
(package
(name "python-serpent")
(version "1.28")
(source
(origin
(method url-fetch)
(uri (pypi-uri "serpent" version))
(sha256
(base32 "1arnckykpkvv2qrp49l1k7q5mr5pisswl0rvdx98x8wsl1n361pk"))))
(build-system python-build-system)
(native-inputs
(list python-attrs python-pytz))
(home-page "https://github.com/irmen/Serpent")
(synopsis "Serializer for literal Python expressions")
(description
"Serpent provides @code{ast.literal_eval()}-compatible object tree
serialization. It serializes an object tree into bytes (an utf-8 encoded
string) that can be decoded and then passed as-is to @code{ast.literal_eval()}
to rebuild the original object tree.
Because only safe literals are encoded, it is safe to send serpent data to
other machines, such as over the network.")
(license license:expat)))
(define-public python-setuptools-declarative-requirements
(package
(name "python-setuptools-declarative-requirements")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri
"setuptools-declarative-requirements"
version))
(sha256
(base32
"1l8zmcnp9h8sp8hsw7b81djaa1a9yig0y7i4phh5pihqz1gdn7yi"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-setuptools-scm))
(propagated-inputs
(list python-toml python-wheel))
(home-page
"https://github.com/s0undt3ch/setuptools-declarative-requirements")
(synopsis "File support for setuptools declarative setup.cfg")
(description
"This package provides file support for setuptools declarative
@code{setup.cfg}.")
(license license:asl2.0)))
;; The setuptools provided by Python 3.9 is too new for Tensorflow.
(define-public python-setuptools-for-tensorflow
(hidden-package
(package
(inherit python-setuptools)
(version "39.1.0")
(source (origin
(inherit (package-source python-setuptools))
(uri (pypi-uri "setuptools" version ".zip"))
(sha256
(base32
"1mzdhvfhnv4lggxa8rjl0dzqxvfx377gg5sqs57v89wrp09lwj65"))))
(arguments
`(#:tests? #f ; tests require vendored resources
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'compatibility-fixes
(lambda _
;; Python 3.9 no longer has HTMLParser
(substitute* "setuptools/py33compat.py"
(("html_parser.HTMLParser\\(\\).unescape")
"html.unescape"))
;; This needs distutils.msvc9compiler
(delete-file "setuptools/tests/test_msvc.py"))))))
(native-inputs
(list python-pytest python-mock python-six)))))
(define-public python-uniseg
(package
(name "python-uniseg")
(version "0.7.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "uniseg" version ".zip"))
(sha256
(base32
"05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; The test suite requires network access.
(native-inputs
(list unzip))
(home-page
"https://bitbucket.org/emptypage/uniseg-python")
(synopsis
"Python library to determine Unicode text segmentations")
(description
"Uniseg is a Python package used to determine Unicode text segmentations.
Supported segmentations include:
@enumerate
@item @dfn{Code point} (any value in the Unicode codespace)
@item @dfn{Grapheme cluster} (user-perceived character made of a single or
multiple Unicode code points, e.g. \"G\" + acute-accent)
@item Word break
@item Sentence break
@item Line break
@end enumerate")
(license license:expat)))
(define-public python-humanfriendly
(package
(name "python-humanfriendly")
(version "8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "humanfriendly" version))
(sha256
(base32
"04ixg8b7p6xc8x8lffhi7wfl77xhszakhd0s6j0cf6a84j8yqlmz"))))
(build-system python-build-system)
(arguments
`(;; XXX: Tests depend on coloredlogs, which in turn depends on humanfriendly.
#:tests? #f))
(home-page "https://humanfriendly.readthedocs.io")
(synopsis "Human-friendly input and output in Python")
(description
"The functions and classes in @code{humanfriendly} can be used to make
text interfaces more user-friendly. It includes tools to parse and format
numbers, file sizes, and timespans, timers for long-running operations, menus
to allow the user to choose from a list of options, and terminal interaction
helpers.")
(license license:expat)))
(define-public python-textparser
(package
(name "python-textparser")
(version "0.23.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "textparser" version))
(sha256
(base32
"0w5lyhrsvzs5a9q1l3sjgxgljrvd3ybf796w93kc39wayzvd02gh"))))
(build-system python-build-system)
(home-page "https://github.com/eerimoq/textparser")
(synopsis "Fast text parser for Python")
(description "This library provides a text parser written in the Python
language. It aims to be fast.")
(license license:expat)))
(define-public python-aenum
(package
(name "python-aenum")
(version "2.2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aenum" version))
(sha256
(base32 "0r1812bjm72x73pl7y4yhffr4zbdjgxa08avsy4b3di0pqgqv0l1"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
;; We must run the test suite module directly, as it
;; fails to define the 'tempdir' variable in scope for
;; the tests otherwise
;; (see:https://bitbucket.org/stoneleaf/aenum/\
;; issues/32/running-tests-with-python-setuppy-test).
(invoke "python3" "aenum/test.py")
;; This one fails with "NameError: name
;; 'test_pickle_dump_load' is not defined" (see:
;; https://bitbucket.org/stoneleaf/aenum/issues/33
;; /error-running-the-test_v3py-test-suite).
;; (invoke "python3" "aenum/test_v3.py")
#t)))))
(home-page "https://bitbucket.org/stoneleaf/aenum")
(synopsis "Advanced enumerations, namedtuples and constants for Python")
(description "The aenum library includes an @code{Enum} base class, a
metaclass-based @code{NamedTuple} implementation and a @code{NamedConstant}
class.")
(license license:bsd-3)))
(define-public python-can
(package
(name "python-can")
(version "4.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-can" version))
(sha256
(base32
"0pcbdgdw94lc2sxd56w6wdsshrs9dd5d3wp0x4sfd0drzx32inar"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'relax-version-requirements
(lambda _
(substitute* "setup.py"
(("mock~=2\\.0") "mock")
(("coverage<5") "coverage")
(("pytest~=4\\.6") "pytest")
(("pytest-timeout~=1\\.3") "pytest-timeout")
(("pytest-cov.*") "pytest-cov\n")
(("hypothesis~=4\\.56") "hypothesis"))))
(add-after 'unpack 'fix-broken-tests
;; The tests try to run two scripts it expects should be
;; in PATH, but they aren't at this time (see:
;; https://github.com/hardbyte/python-can/issues/805).
(lambda _
(substitute* "test/test_scripts.py"
(("\"can_logger\\.py --help\"") "")
(("\"can_player\\.py --help\"") ""))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "test"
;; Disable tests which require specific CAN
;; drivers we have no package for in Guix.
"--ignore" "test/test_interface_canalystii.py"
;; These tests fail with "OSError: [Errno 19]
;; No such device".
"-k" "not BasicTestUdpMulticastBusIPv")))))))
(propagated-inputs
(list python-msgpack python-typing-extensions python-wrapt))
(native-inputs
(list python-codecov
python-coverage
python-future
python-hypothesis
python-mock
python-parameterized
python-pyserial
python-pytest
python-pytest-cov
python-pytest-runner
python-pytest-timeout))
(home-page "https://github.com/hardbyte/python-can")
(synopsis "Controller Area Network (CAN) interface module for Python")
(description "This package defines the @code{can} module, which provides
controller area network (CAN) support for Python developers; providing common
abstractions to different hardware devices, and a suite of utilities for
sending and receiving messages on a CAN bus.")
(license license:lgpl3+)))
(define-public python-canopen
(package
(name "python-canopen")
(version "2.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "canopen" version))
(sha256
(base32 "1nb543wb37kj95v6bhh272lm5gkpi41q3pnsl1fxlyizm2gamj5w"))))
(build-system python-build-system)
(native-inputs (list python-packaging))
(propagated-inputs (list python-can))
(home-page "https://github.com/christiansandberg/canopen")
(synopsis "CANopen stack implementation")
(description
"This package provides a Python implementation of the
@uref{https://www.can-cia.org/canopen/,CANopen standard} for
@acronym{CANs, controller-area networks}. The aim of the project is to
support the most common parts of the CiA 301 standard in a simple
Pythonic interface. It is mainly targeted for testing and automation
tasks rather than a standard compliant master implementation.")
(license license:expat)))
(define-public python-caniusepython3
(package
(name "python-caniusepython3")
(version "7.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "caniusepython3" version))
(sha256
(base32
"0a755444ln38j8d7xb3yw0wzpd0mjrzfn6zqvsh06nw1vdaq4l28"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
;; These are for compatibility with Python 2.
((".*'argparse', 'backports.functools_lru_cache',.*")
""))
(substitute* "dev_requirements.txt"
((".*pylint.*") "")) ;not actually required
#t))
(replace 'check
(lambda _
(invoke "py.test" "-k" "not NetworkTests"))))))
(propagated-inputs
(list python-distlib python-packaging python-requests))
(native-inputs
(list python-mock python-pytest))
(home-page "https://github.com/brettcannon/caniusepython3")
(synopsis "Check for Python 3-incompatible Python libraries")
(description "The @command{caniusepython3} command scans your project and
reports the Python 3-incompatible libraries it found. It can also be used as
a library.")
(license license:asl2.0)))
(define-public python-diskcache
(package
(name "python-diskcache")
(version "4.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "diskcache" version))
(sha256
(base32
"1q2wz5sj16zgyy1zpq516qgbnfwsavk1pl2qks0f4r62z5cmmvmw"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;test suite not included in the release
(home-page "http://www.grantjenks.com/docs/diskcache/")
(synopsis "Disk and file backed cache library")
(description "DiskCache is a disk and file backed persistent cache.")
(license license:asl2.0)))
(define-public python-argparse-addons
(package
(name "python-argparse-addons")
(version "0.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "argparse_addons" version))
(sha256
(base32 "1yx54dmnr3xggjcjk6bbdafvzp6cynrakl56wyz3jglmfvk0znpm"))))
(build-system python-build-system)
(home-page "https://github.com/eerimoq/argparse_addons")
(synopsis "Extensions for Python's @code{argparse} library")
(description "This Python library provides additional types and actions
for the standard @code{argparse} library.")
(license license:expat)))
(define-public python-bitstruct
(package
(name "python-bitstruct")
(version "8.14.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bitstruct" version))
(sha256
(base32
"149c73yrqbph71bbyf925r2mbh2jdymqxc6d49lnylpiflf1j313"))))
(build-system python-build-system)
(home-page "https://github.com/eerimoq/bitstruct")
(synopsis "Python values to and C bit field structs converter")
(description "This module performs conversions between Python values and C
bit field structs represented as Python byte strings. It is intended to have
a similar interface as the @code{struct} module from Python, but working on
bits instead of primitive data types like @code{char}, @code{int}, etc.")
(license license:expat)))
(define-public python-cantools
(package
(name "python-cantools")
(version "37.0.7")
(source
(origin
;; We take the sources from the Git repository as the documentation is
;; not included with the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/eerimoq/cantools")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1qcf1fcwif7w70qmhxw2b8kqh420igbinq60p1chzf98xcb0ansx"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'build 'build-doc
(lambda _
;; See: https://github.com/eerimoq/cantools/issues/190.
(substitute* "README.rst"
(("https://github.com/eerimoq/cantools/raw/master\
/docs/monitor.png")
"monitor.png"))
(invoke "make" "-C" "docs" "man" "info")))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((info (string-append #$output "/share/info"))
(man1 (string-append #$output "/share/man/man1")))
(install-file "docs/_build/texinfo/cantools.info" info)
(install-file "docs/_build/man/cantools.1" man1)))))))
(native-inputs (list python-sphinx texinfo))
(propagated-inputs
(list python-argparse-addons
python-bitstruct
python-can
python-crccheck
python-diskcache
python-matplotlib
python-parameterized
python-textparser))
(home-page "https://github.com/eerimoq/cantools")
(synopsis "Tools for the Controller Area Network (CAN) bus protocol")
(description "This package includes Controller Area Network (CAN) related
tools that can be used to:
@itemize
@item parse DBC, KCD, SYM, ARXML 4 and CDD files
@item encode and decode CAN messages
@item multiplex simple and extended signals
@item diagnose DID encoding and decoding
@item dump the CAN decoder output
@item test CAN nodes
@item generate C source code
@item monitor the CAN bus
@end itemize")
(license license:expat)))
(define-public python-capturer
(package
(name "python-capturer")
(version "2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "capturer" version))
(sha256
(base32
"05d6ji4j8ipiq0br7bwam38qc6hd9l1djmfxlzrxx19ziyjl4089"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(propagated-inputs
(list python-humanfriendly))
(home-page "https://capturer.readthedocs.io")
(synopsis "Capture stdout and stderr streams of the current process")
(description
"The capturer package makes it easy to capture the stdout and stderr
streams of the current process and subprocesses. Output can be relayed
to the terminal in real time but is also available to the Python program
for additional processing.")
(license license:expat)))
(define-public python-case
(package
(name "python-case")
(version "1.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "case" version))
(sha256
(base32
"1cagg06vfph864s6l5jb0zqliwxh647bki8j6lf4a4qrv40jnhs8"))))
(build-system python-build-system)
(propagated-inputs
(list python-mock python-nose python-six))
(native-inputs
(list python-coverage))
(home-page "https://github.com/celery/case")
(synopsis "Unittest utilities and convenience methods")
(description
"The @code{case} package provides utilities on top of unittest, including
some helpful Python 2 compatibility convenience methods.")
(license license:bsd-3)))
(define-public python-verboselogs
(package
(name "python-verboselogs")
(version "1.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "verboselogs" version))
(sha256
(base32
"09z4d1jiasn7k1hs5af2ckmnrd0i1d1m04bhfjhv7z6svzfdwgg3"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; Do not run pylint plugin test, as astroid is an old
;; unsupported version.
(invoke "pytest" "-v" "-k" "not test_pylint_plugin"
"verboselogs/tests.py"))))))
(native-inputs
(list python-mock python-pytest))
(home-page "https://verboselogs.readthedocs.io")
(synopsis "Verbose logging level for Python's logging module")
(description
"The @code{verboselogs} package extends Python's @code{logging} module to
add the log levels NOTICE, SPAM, SUCCESS and VERBOSE.")
(license license:expat)))
(define-public python-coloredlogs
(package
(name "python-coloredlogs")
(version "10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "coloredlogs" version))
(sha256
(base32
"0dkw6xp0r1dwgz4s2f58npx5nxfq51wf4l6qkm5ib27slgfs4sdq"))))
(build-system python-build-system)
(arguments
`(;Tests require some updated modules
#:tests? #f))
(propagated-inputs
(list python-capturer))
(home-page "https://coloredlogs.readthedocs.io")
(synopsis "Colored stream handler for Python's logging module")
(description
"The @code{coloredlogs} package enables colored terminal output for
Python's logging module. The @code{ColoredFormatter} class inherits from
@code{logging.Formatter} and uses ANSI escape sequences to render your logging
messages in color.")
(license license:expat)))
(define-public python-editorconfig
(package
(name "python-editorconfig")
(version "0.12.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "EditorConfig" version))
(sha256
(base32
"0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv"))))
(build-system python-build-system)
(home-page "https://editorconfig.org/")
(synopsis "EditorConfig bindings for python")
(description "The EditorConfig project consists of a file format for
defining coding styles and a collection of text editor plugins that enable
editors to read the file format and adhere to defined styles. EditorConfig
files are easily readable and they work nicely with version control systems.")
;; "fnmatch.py" and "ini.py" are licensed under psfl, the rest is bsd-2.
(license (list license:bsd-2 license:psfl))))
(define-public dosage
(package
(name "dosage")
(version "2.17")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dosage" version))
(sha256
(base32
"0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0"))))
(build-system python-build-system)
(propagated-inputs
(list python-cached-property
python-colorama
python-imagesize
python-importlib-metadata
python-lxml
python-requests
python-six))
(native-inputs
(list python-pytest-cov python-pytest-xdist python-responses
python-setuptools-scm))
(home-page "https://github.com/webcomics/dosage")
(synopsis "Comic strip downloader and archiver")
(description "Dosage is designed to keep a local copy of specific webcomics and other
picture-based content such as Picture of the Day sites. With the @command{dosage}
command-line script you can get the latest strip of a webcomic, catch-up to the last strip
downloaded, or download a strip for a particular date or index, if possible.")
(license license:expat)))
(define-public python-et-xmlfile
(package
(name "python-et-xmlfile")
(version "1.1")
(source
(origin
;; Use a checkout because the PyPI archive does not contain tests.
(method hg-fetch)
(uri (hg-reference
(url "https://foss.heptapod.net/openpyxl/et_xmlfile")
(changeset version)))
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32 "09r8rjc5bhkqrm5c4n9jrlvad8vrvbyswl9g0wrc1qc7nzh9mpw7"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest python-lxml)) ;used for the tests
(home-page "https://bitbucket.org/openpyxl/et_xmlfile")
(synopsis "Low memory implementation of @code{lxml.xmlfile}")
(description "This Python library is based upon the @code{xmlfile} module
from @code{lxml}. It aims to provide a low memory, compatible implementation
of @code{xmlfile}.")
(license license:expat)))
(define-public python-openpyxl
(package
(name "python-openpyxl")
(version "3.0.9")
(source
(origin
;; We use the upstream repository, as the tests are not included in the
;; PyPI releases.
(method hg-fetch)
(uri (hg-reference
(url "https://foss.heptapod.net/openpyxl/openpyxl")
(changeset version)))
(file-name (string-append name "-" version "-checkout"))
(sha256
(base32 "1p8xvc2gjw6zyzbd7qdvc3x178sm00ymrbyh9539l4fpzgxh0j9c"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest"))))))
(native-inputs (list python-lxml python-pillow python-pytest))
(propagated-inputs (list python-et-xmlfile python-jdcal))
(home-page "https://openpyxl.readthedocs.io")
(synopsis "Python library to read/write Excel 2010 XLSX/XLSM files")
(description
"This Python library allows reading and writing to the Excel XLSX, XLSM,
XLTX and XLTM file formats that are defined by the Office Open XML (OOXML)
standard.")
(license license:expat)))
(define-public python-eventlet
(package
(name "python-eventlet")
(version "0.33.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "eventlet" version))
(sha256
(base32
"07qlyhcm0f28sxdizawvdf3d50m3hnbzz5kg3fjp7chvki44y540"))))
(build-system python-build-system)
(propagated-inputs
(list python-dnspython python-greenlet python-monotonic python-six))
(native-inputs
(list python-nose))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'avoid-OSError
(lambda _
;; If eventlet tries to load greendns, an OSError is thrown when
;; getprotobyname is called. Thankfully there is an environment
;; variable to disable the greendns import, so use it:
(setenv "EVENTLET_NO_GREENDNS" "yes")))
(add-after 'unpack 'delete-broken-tests
(lambda _
(delete-file "tests/greendns_test.py")
(delete-file "tests/socket_test.py")))
;; See https://github.com/eventlet/eventlet/issues/562#issuecomment-714183009
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "nosetests" "-v" "tests/")))))))
(home-page "https://eventlet.net")
(synopsis "Concurrent networking library for Python")
(description
"Eventlet is a concurrent networking library for Python that
allows you to change how you run your code, not how you write it.
It uses @code{epoll} or @code{libevent} for highly scalable non-blocking I/O.
Coroutines ensure that the developer uses a blocking style of programming
that is similar to threading, but provide the benefits of non-blocking I/O.
The event dispatch is implicit, which means you can easily use @code{Eventlet}
from the Python interpreter, or as a small part of a larger application.")
(license license:expat)))
(define-public python-sinfo
(package
(name "python-sinfo")
(version "0.3.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "sinfo" version))
(sha256
(base32
"0kdsp883mx0lfyykv0p12bvs203kdm3skb8bw5wf2pc7kb393sl1"))))
(build-system python-build-system)
(propagated-inputs
(list python-stdlib-list))
(home-page "https://gitlab.com/joelostblom/session_info")
(synopsis "Output module version information loaded in a Python session")
(description "This package outputs version information for modules loaded
in the current session, Python, and the OS.")
(license license:bsd-3)))
(define-public python-six
(package/inherit python-six-bootstrap
(name "python-six")
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-v"))))))
(native-inputs
`(("python-pytest" ,python-pytest-bootstrap)))))
(define-public python2-six
(let ((base (package-with-python2 python-six)))
(package
(inherit base)
;; Reduce Python 2 closure by disabling tests and removing the native
;; inputs.
(arguments (substitute-keyword-arguments (package-arguments base)
((#:phases phases)
`(modify-phases ,phases
(delete 'check)))))
(native-inputs '()))))
(define-public python-schedule
(package
(name "python-schedule")
(version "0.4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "schedule" version))
(sha256
(base32
"0vplyjcbfrq50sphlwya749z8p2pcyi2nycw3518i0qpd9a6189i"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-mock))
(home-page "https://github.com/dbader/schedule")
(synopsis "Schedule periodic function calls in Python")
(description
"Schedule is an in-process scheduler for periodic jobs that uses the
builder pattern for configuration. Schedule lets you run Python functions (or
any other callable) periodically at pre-determined intervals using a simple,
human-friendly syntax.")
(license license:expat)))
(define-public python-scour
(package
(name "python-scour")
(version "0.38.2")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/scour-project/scour")
(commit
(string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0mmfvx4wqp8gkpv0kbih89zfs9njvmd3v4dxfqii62xddpxq0f1k"))))
(propagated-inputs
(list python-six))
(build-system python-build-system)
(home-page "https://github.com/scour-project/scour")
(synopsis "Scour is an SVG optimizer/cleaner written in Python")
(description "The goal of Scour is to output a file that renders
identically at a fraction of the size by removing a lot of redundant
information created by most SVG editors. Optimization options are typically
lossless but can be tweaked for more aggressive cleaning.")
(license license:asl2.0)))
(define-public python-mechanize
(package
(name "python-mechanize")
(version "0.4.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mechanize" version))
(sha256
(base32
"1z9kqcwb8gfq2l6i42z624kxpd8692a0c8gw2x5bbm7n848w2mb3"))))
(build-system python-build-system)
(propagated-inputs
(list python-html5lib))
(home-page "https://github.com/python-mechanize/mechanize")
(synopsis
"Stateful programmatic web browsing in Python")
(description
"Mechanize implements stateful programmatic web browsing in Python,
after Andy Lester’s Perl module WWW::Mechanize.")
(license license:bsd-3)))
(define-public python-simpleaudio
(package
(name "python-simpleaudio")
(version "1.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "simpleaudio" version))
(sha256
(base32
"07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(inputs
(list alsa-lib))
(home-page
"https://github.com/hamiltron/py-simple-audio")
(synopsis "Simple, asynchronous audio playback for Python 3")
(description
"The @code{simplaudio} package provides cross-platform, dependency-free
audio playback capability for Python 3 on OSX, Windows, and Linux.")
(license license:expat))) ; MIT license
(define-public python-jsonalias
(package
(name "python-jsonalias")
(version "0.1.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "jsonalias" version))
(sha256
(base32
"0sd7c3vyvfhhpnan77ax4f0x1whjcb5iz7jhjky7kmcpaf9lvw34"))))
(build-system python-build-system)
(arguments (list #:tests? #f)) ; There are no tests.
(home-page "https://github.com/kevinheavey/jsonalias/")
(synopsis "JSON type alias for Python")
(description
"This package provides a microlibrary that defines a JSON type alias for
Python.")
(license license:expat)))
(define-public python-simplejson
(package
(name "python-simplejson")
(version "3.17.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "simplejson" version))
(sha256
(base32
"19pqqn01y6qmhhv8q6dh4p1acav49kl923kklnns2qxz5a6h766g"))))
(build-system python-build-system)
(native-inputs
(list python-toml))
(home-page "https://simplejson.readthedocs.io/en/latest")
(synopsis
"Json library for Python")
(description
"JSON (JavaScript Object Notation) is a subset of JavaScript
syntax (ECMA-262 3rd edition) used as a lightweight data interchange
format.
Simplejson exposes an API familiar to users of the standard library marshal
and pickle modules. It is the externally maintained version of the json
library contained in Python 2.6, but maintains compatibility with Python 2.5
and (currently) has significant performance advantages, even without using
the optional C extension for speedups. Simplejson is also supported on
Python 3.3+.")
(license license:x11)))
(define-public python-pyicu
(package
(name "python-pyicu")
(version "2.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyICU" version))
(sha256
(base32
"0y2qhh443vydi3y7kmhyb6kz3z6d7qq7ld0sg88mfqalcp7dca9w"))))
(build-system python-build-system)
(inputs
(list icu4c))
(native-inputs
(list python-pytest python-six))
(home-page "https://gitlab.pyicu.org/main/pyicu")
(synopsis "Python extension wrapping the ICU C++ API")
(description
"PyICU is a python extension wrapping the ICU C++ API.")
(license license:x11)))
(define-public python-dogtail
(package
(name "python-dogtail")
(version "0.9.11")
(source (origin
(method url-fetch)
(uri
(string-append
"https://gitlab.com/dogtail/dogtail/-/raw/released/"
"dogtail-" version ".tar.gz"))
(sha256
(base32
"0sr38z7b2n12bvfd4xw4b5dnnhkn5zl3h0ymmnnzavcihfqia6l0"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; TODO Launching dbus for the tests
; fails
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(system "Xvfb :1 &")
(setenv "DISPLAY" ":1")
(invoke "dbus-run-session" "--" "nosetests" "-v" "tests/"))
#t)))))
(propagated-inputs
(list python-pygobject python-pycairo python-pyatspi))
(native-inputs
`(("python-nose" ,python-nose)
("gtk+" ,gtk+)
("xvfb" ,xorg-server)
("dbus" ,dbus)
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
("gobject-introspection" ,gobject-introspection)))
(home-page "https://gitlab.com/dogtail/dogtail/")
(synopsis "GUI test tool and automation framework written in Python")
(description
"Dogtail is a GUI test tool and automation framework written in Python.
It uses Accessibility (a11y) technologies to communicate with desktop
applications. dogtail scripts are written in Python and executed like any
other Python program.")
(license license:gpl2+)))
(define-public python-doxyqml
(package
(name "python-doxyqml")
(version "0.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "doxyqml" version))
(sha256
(base32
"1f0jjqvamly4hn7f1palvq27z6yr694rfzyxrb6g0ysbbawxkvq9"))))
(build-system python-build-system)
(home-page "http://agateau.com/projects/doxyqml")
(synopsis "Doxygen input filter for QML files")
(description
"This package provides a Doxygen input filter for QML files.")
(license license:bsd-3)))
(define-public python-doxypypy
(package
(name "python-doxypypy")
(version "0.8.8.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "doxypypy" version))
(sha256
(base32
"06z0vbh975g42z5szbfvn9i3bif3xwr5pncqd4fvjzjkbi2p2xb2"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;no test suite
(home-page "https://github.com/Feneric/doxypypy")
(synopsis "Doxygen filter for Python")
(description
"This package provides a Doxygen filter for Python.")
(license license:gpl2+)))
(define-public python-empy
(package
(name "python-empy")
(version "3.3.3")
(source (origin
(method url-fetch)
(uri (string-append "http://www.alcyone.com/software/empy/empy-"
version ".tar.gz"))
(sha256
(base32
"1mxfy5mgp473ga1pgz2nvm8ds6z4g3hdky8523z6jzvcs9ny6hcq"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; python2 only
(home-page "http://www.alcyone.com/software/empy/")
(synopsis "Templating system for Python")
(description
"EmPy is a system for embedding Python expressions and statements in
template text; it takes an EmPy source file, processes it, and produces
output. This is accomplished via expansions, which are special signals to the
EmPy system and are set off by a special prefix (by default the at sign, @@).
EmPy can expand arbitrary Python expressions and statements in this way, as
well as a variety of special forms. Textual data not explicitly delimited in
this way is sent unaffected to the output, allowing Python to be used in
effect as a markup language. Also supported are callbacks via hooks,
recording and playback via diversions, and dynamic, chainable filters. The
system is highly configurable via command line options and embedded
commands.")
(license license:lgpl2.1+)))
(define-public python-parse-type
(package
(name "python-parse-type")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "parse_type" version))
(sha256
(base32
"07smqnzc9km7sbvxfyx4gdm9njrx58x8grdw6gs4gva81rk3rd10"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "-c" "/dev/null")))))))
(propagated-inputs (list python-six python-parse))
(native-inputs (list python-pytest))
(home-page "https://github.com/jenisys/parse_type")
(synopsis "Extended parse module")
(description "Parse_type extends the python parse module.")
(license license:bsd-3)))
(define-public python-parse
(package
(name "python-parse")
(version "1.18.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "parse" version))
(sha256
(base32
"19063x4xdjpaf7rfxai6jpgm2k4yvkq7wha8aa8cagbjsqr60rli"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "python" "test_parse.py"))))))
(home-page "https://github.com/r1chardj0n3s/parse")
(synopsis "Parse strings")
(description
"Parse strings using a specification based on the Python @code{format()}
syntax.")
(license license:x11)))
(define-public python-polib
(package
(name "python-polib")
(version "1.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "polib" version))
(sha256
(base32
"0aikb8gcarhifn3sadrbbs5czagih9hjv250gsrgy9v1d49pvn7s"))))
(build-system python-build-system)
(home-page "https://bitbucket.org/izi/polib/wiki/Home")
(synopsis "Manipulate, create and modify gettext files")
(description "Polib can manipulate any gettext format (po, pot and mo)
files. It can be used to create po files from scratch or to modify
existing ones.")
(license license:expat)))
(define-public python-polling2
(package
(name "python-polling2")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "polling2" version))
(sha256
(base32 "0hp3238fv6k1qk43gv4jwnv1mwlkmx33akbj560b9nvsry1dmdwh"))))
(build-system python-build-system)
(arguments '(#:tests? #false)) ; no tests included
(native-inputs
(list python-mock python-pytest python-pytest-runner))
(home-page "https://github.com/ddmee/polling2")
(synopsis "Polling utility with many configurable options")
(description "Polling2 is a utility used to wait for a function to return
a certain expected condition.")
(license license:expat)))
(define-public python-poyo
(package
(name "python-poyo")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "poyo" version))
(sha256
(base32
"1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
(build-system python-build-system)
(home-page "https://github.com/hackebrot/poyo")
(synopsis "Lightweight YAML Parser for Python")
(description
"This package provides a lightweight YAML Parser for Python. It supports
only a chosen subset of the YAML format that is required to parse cookiecutter
user configuration files. It does not have support for serializing into YAML
and is not compatible with JSON.")
(license license:expat)))
(define-public python-exceptiongroup
(package
(name "python-exceptiongroup")
(version "1.0.0rc8")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/agronholm/exceptiongroup")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0xsbpv22n51p6yvyvz231mf8zhbi1i88b4zmacaxxx31zrq5ifv4"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
;; XXX: PEP 517 manual build/install procedures copied from
;; python-isort.
(replace 'build
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "tests")))))))
(native-inputs (list python-flit-scm python-pypa-build python-pytest))
(home-page "https://github.com/agronholm/exceptiongroup")
(synopsis "PEP 654 backport from Python 3.11")
(description "This is a backport of the @code{BaseExceptionGroup} and
@code{ExceptionGroup} classes from Python 3.11.")
(license license:expat)))
(define-public python-extension-helpers
(package
(name "python-extension-helpers")
(version "0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "extension-helpers" version))
(sha256
(base32 "10iqjzmya2h4sk765dlm1pbqypwlqyh8rw59a5m9i63d3klnz2mc"))))
(build-system python-build-system)
(native-inputs
(list python-coverage python-pytest-astropy python-pytest-cov
python-setuptools-scm))
(home-page "https://github.com/astropy/astropy-helpers")
(synopsis
"Utilities for building and installing packages in the Astropy ecosystem")
(description
"The extension-helpers package includes many build, installation, and
documentation-related tools used by the Astropy project.")
(license license:bsd-3)))
(define-public python-extras
(package
(name "python-extras")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "extras" version))
(sha256
(base32
"0khvm08rcwm62wc47j8niyl6h13f8w51c8669ifivjdr23g3cbhk"))))
(build-system python-build-system)
(arguments
;; FIXME: Circular dependency on testtools.
'(#:tests? #f))
(home-page "https://github.com/testing-cabal/extras")
(synopsis "Useful extensions to the Python standard library")
(description
"Extras is a set of extensions to the Python standard library.")
(license license:expat)))
(define-public python-mimeparse
(package
(name "python-mimeparse")
(version "1.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-mimeparse" version))
(sha256
(base32
"0y2g6cl660bpz11srgqyvvm8gmywpgyx8g0xfvbiyr0af0yv1r3n"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "./mimeparse_test.py"))))))
(home-page
"https://github.com/dbtsai/python-mimeparse")
(synopsis "Python library for parsing MIME types")
(description
"Mimeparse provides basic functions for parsing MIME type names and
matching them against a list of media-ranges.")
(license license:expat)))
(define-public python-miniboa
(package
(name "python-miniboa")
(version "1.0.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "miniboa" version))
(sha256
(base32
"002c1aki9hsrwj5plrwdrf3sk8rn95fqylqyjx2arrjfpsih4dgs"))))
(build-system python-build-system)
(home-page "https://github.com/shmup/miniboa")
(synopsis "Simple, single-threaded Telnet server")
(description
"Miniboa is a simple, asynchronous, single-threaded, poll-based Telnet
server.")
(license license:asl2.0)))
(define-public python-pafy
(package
(name "python-pafy")
(version "0.5.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pafy" version))
(sha256
(base32
"1a7dxi95m1043rxx1r5x3ngb66nwlq6aqcasyqqjzmmmjps4zrim"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; Currently pafy can not find itself in the tests
(propagated-inputs
;; Youtube-dl is a python package which is imported in the file
;; "backend_youtube_dl.py", therefore it needs to be propagated.
(list youtube-dl))
(home-page "https://np1.github.io/pafy/")
(synopsis "Retrieve YouTube content and metadata")
(description
"@code{pafy} is a python library to retrieve YouTube content and metadata.")
(license license:lgpl3+)))
(define-public python-miniupnpc
(package
(name "python-miniupnpc")
(version "2.2.3")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/miniupnp/miniupnp")
(commit
(string-append
"miniupnpc_" (string-replace-substring version "." "_")))))
(file-name
(git-file-name name version))
(sha256
(base32 "03q1rlzvfzm15g1bfw2zqzavlsyaypnaf2k3cz6ha7k5rirkdy0l"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'subdir
(lambda* (#:key inputs #:allow-other-keys)
(chdir "miniupnpc")
(setenv "CC" #$(cc-for-target))
(substitute* "Makefile"
(("/bin/sh") (search-input-file inputs "/bin/sh")))))
(add-before 'subdir 'remove-kernel-version
;; Avoid embedding the running kernel version for reproducible builds
(lambda _
(substitute*
"miniupnpc/updateminiupnpcstrings.sh"
(("^OS_VERSION=`uname -r`") "OS_VERSION=Guix")))))))
(inputs (list python)) ;we are building a Python extension
(synopsis "UPnP client for Python")
(description "Miniupnpc is a client library for Python programs to set up
port forwards using @acronym{UPnP, Universal Plug and Play}.")
(home-page "http://miniupnp.free.fr")
(license license:bsd-3)))
(define-public python-py
(package
(name "python-py")
(version "1.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "py" version))
(sha256
(base32
"1lqvkqk3b440g9z82gqbzlzas84wrm6ir8kplzhzavmn2pd1pf11"))))
(build-system python-build-system)
(arguments
;; FIXME: "ImportError: 'test' module incorrectly imported from
;; '/gnu/store/...-python-pytest-mimimal-3.0.5/lib/python3.5/site-packages'.
;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'.
;; Is this module globally installed?"
'(#:tests? #f))
(native-inputs
(list python-setuptools-scm))
(home-page "https://github.com/pytest-dev/py")
(synopsis "Python library for parsing, I/O, instrospection, and logging")
(description
"Py is a Python library for file name parsing, .ini file parsing, I/O,
code introspection, and logging.")
(license license:expat)))
;; Recent versions of python-fixtures and python-testrepository need
;; python-pbr for packaging, which itself needs these two packages for
;; testing.
;; To fix this circular dependency, we use a build of python-pbr, based on the
;; same source, just without any test dependencies and with tests disabled.
;; python-pbr-minmal is then used to package python-fixtures and
;; python-testrepository.
;; Strictly speaking we currently could remove the test-requirements from the
;; normal python-pbr package (and save this package) since test are disabled
;; there anyway. But this may change in future.
(define-public python-pbr-minimal
(package
(name "python-pbr-minimal")
(version "5.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pbr" version))
(sha256
(base32
"1j8k5d4rdhy5bw5ai1vkjzln2albah94in3vvyvxa0n42fv81baz"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(home-page "https://docs.openstack.org/pbr/latest/")
(synopsis "Minimal build of python-pbr used for bootstrapping")
(description
"Used only for bootstrapping python2-pbr, you should not need this.")
(license license:asl2.0)))
(define-public python-pbr
(package
(inherit python-pbr-minimal)
(name "python-pbr")
(arguments
`(#:tests? #f)) ;; Most tests seem to use the Internet.
(propagated-inputs
(list git)) ;; pbr actually uses the "git" binary.
(native-inputs
`(("python-fixtures" ,python-fixtures-bootstrap)
;; discover, coverage, hacking, subunit
("python-mock" ,python-mock)
("python-six" ,python-six)
("python-sphinx" ,python-sphinx)
("python-testrepository" ,python-testrepository-bootstrap)
("python-testresources" ,python-testresources-bootstrap)
("python-testscenarios" ,python-testscenarios-bootstrap)
("python-testtools" ,python-testtools-bootstrap)
("python-virtualenv" ,python-virtualenv)))
(synopsis "Enhance the default behavior of Python’s setuptools")
(description
"Python Build Reasonableness (PBR) is a library that injects some useful
and sensible default behaviors into your setuptools run. It will set
versions, process requirements files and generate AUTHORS and ChangeLog file
from git information.
")))
(define-public python-pyrsistent
(package
(name "python-pyrsistent")
(version "0.16.0")
(home-page "https://github.com/tobgu/pyrsistent")
(source (origin
(method url-fetch)
(uri (pypi-uri "pyrsistent" version))
(sha256
(base32
"1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
;; The package works fine with newer Pytest and Hypothesis, but
;; has pinned older versions to stay compatible with Python 2.
(add-before 'check 'loosen-pytest-requirement
(lambda _
(substitute* "setup.py"
(("pytest<5") "pytest")
(("hypothesis<5") "hypothesis"))
#t)))))
(native-inputs
(list python-hypothesis python-pytest python-pytest-runner))
(propagated-inputs
(list python-six))
(synopsis "Persistent data structures for Python")
(description
"Pyrsistent is a number of persistent collections (by some referred to as
functional data structures). Persistent in the sense that they are immutable.
All methods on a data structure that would normally mutate it instead return a
new copy of the structure containing the requested updates. The original
structure is left untouched.")
(license license:expat)))
(define-public python-exif-read
(package
(name "python-exif-read")
(version "2.1.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "ExifRead" version))
(sha256
(base32
"1b90jf6m9vxh9nanhpyvqdq7hmfx5iggw1l8kq10jrs6xgr49qkr"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; no tests
(home-page "https://github.com/ianare/exif-py")
(synopsis "Python library to extract EXIF data from image files")
(description
"ExifRead is a Python library to extract EXIF data from tiff and jpeg
files.")
(license license:bsd-3)))
(define-public python-pyld
(package
(name "python-pyld")
(version "1.0.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "PyLD" version))
(sha256
(base32
"1ywbdbsrkg533qh8xn9ifjh2mvam6v5msrjyqq73jfpvcp89qvff"))))
(build-system python-build-system)
(home-page "https://github.com/digitalbazaar/pyld")
(synopsis "Python implementation of the JSON-LD specification")
(description
"PyLD is an implementation of the JSON-LD specification.")
(license license:bsd-3)))
(define-public python-cli-helpers
(package
(name "python-cli-helpers")
(version "2.2.1")
(source
(origin
;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/dbcli/cli_helpers")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hzavh9v9lkd1dn9f0nvg80f7v4banxvcrj10zy72przqz51k1sb"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-wcwidth python-configobj python-tabulate))
(home-page "https://github.com/dbcli/cli_helpers")
(synopsis "Helpers for building command-line apps")
(description
"CLI Helpers is a Python package that makes it easy to perform common
tasks when building command-line apps. It's a helper library for command-line
interfaces.")
(license license:bsd-3)))
(define-public python-click
(package
(name "python-click")
(version "8.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "click" version))
(sha256
(base32
"13kvp8visj5xh9d43brnda6q0kc1s40flxa5cw0p0a9hzf5dr0kn"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest))
(home-page "https://palletsprojects.com/p/click/")
(synopsis "Command line library for Python")
(description
"Click is a Python package for creating command line interfaces in a
composable way with as little code as necessary. Its name stands for
\"Command Line Interface Creation Kit\". It's highly configurable but comes
with sensible defaults out of the box.")
(license license:bsd-3)))
(define-public python-click-7
(package (inherit python-click)
(name "python-click")
(version "7.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "click" version))
(sha256
(base32 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
(arguments `())))
(define-public python-click-5
(package (inherit python-click)
(name "python-click")
(version "5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "click" version))
(sha256
(base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337"))))
(arguments `())))
(define-public python-cligj
(package
(name "python-cligj")
(version "0.7.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cligj" version))
(sha256
(base32
"09vbkik6kyn6yrqzl2r74vaybjk8kjykvi975hy3fsrm4gb17g54"))))
(build-system python-build-system)
(propagated-inputs
(list python-click))
(native-inputs
(list python-pytest-cov))
(home-page "https://github.com/mapbox/cligj")
(synopsis "Click params for command line interfaces to GeoJSON")
(description
"cligj is for Python developers who create command line interfaces
for geospatial data. cligj allows you to quickly build consistent,
well-tested and interoperable CLIs for handling GeoJSON.")
(license license:bsd-3)))
(define-public python-vcversioner
(package
(name "python-vcversioner")
(version "2.16.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "vcversioner" version))
(sha256
(base32
"16z10sm78jd7ca3jbkgc3q5i8a8q7y1h21q1li21yy3rlhbhrrns"))))
(build-system python-build-system)
(synopsis "Python library for version number discovery")
(description "Vcversioner is a Python library that inspects tagging
information in a variety of version control systems in order to discover
version numbers.")
(home-page "https://github.com/habnabit/vcversioner")
(license license:isc)))
(define-public python-jdcal
(package
(name "python-jdcal")
(version "1.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jdcal" version))
(sha256
(base32
"1j6g19jf21qprjsr8h0r7nsbss366gy8j9izq8cz53gbjvh74a27"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/phn/jdcal")
(synopsis "Functions to convert between Julian dates Gregorian dates")
(description "This Python library provides functions for converting
between Julian dates and Gregorian dates.")
(license license:bsd-2)))
(define-public python-jsondiff
(package
(name "python-jsondiff")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsondiff" version))
(sha256
(base32
"00v3689175aqzdscrxpffm712ylp8jvcpqdg51ca22ni6721p51l"))))
(build-system python-build-system)
(native-inputs
(list python-nose python-nose-random))
(home-page
"https://github.com/fzumstein/jsondiff")
(synopsis "Compare JSON and JSON-like structures in Python")
(description "@code{jsondiff} is a Python library which lets you
compare, diff, and patch JSON and JSON-like structures in Python.")
(license license:expat)))
(define-public python-jsonschema
(package
(name "python-jsonschema")
(version "3.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "jsonschema" version))
(sha256
(base32
"0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(setenv "JSON_SCHEMA_TEST_SUITE" "json")
(invoke "trial" "jsonschema")))))))
(native-inputs
`(("python-setuptools_scm" ,python-setuptools-scm)
("python-twisted" ,python-twisted)))
(propagated-inputs
(list python-attrs python-pyrsistent python-six))
(home-page "https://github.com/Julian/jsonschema")
(synopsis "Implementation of JSON Schema for Python")
(description
"Jsonschema is an implementation of JSON Schema for Python.")
(license license:expat)))
;;; TODO: Make the default python-jsonschema on core-updates
(define-public python-jsonschema-next
(package
(inherit python-jsonschema)
(version "4.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsonschema" version))
(sha256
(base32 "1z0x22691jva7lwfcfh377jdmlz68zhiawxzl53k631l34k8hvbw"))))
(arguments
(substitute-keyword-arguments (package-arguments python-jsonschema)
((#:phases phases)
#~(modify-phases #$phases
;; XXX: PEP 517 manual build/install procedures copied from
;; python-isort.
(replace 'build
(lambda _
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl))))))))
(native-inputs (list python-pypa-build
python-setuptools-scm
python-twisted))
(propagated-inputs
(list python-attrs
python-importlib-metadata
python-pyrsistent
python-typing-extensions))))
(define-public python-schema
(package
(name "python-schema")
(version "0.6.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "schema" version))
(sha256
(base32
"1lw28j9w9vxyigg7vkfkvi6ic9lgjkdnfvnxdr7pklslqvzmk2vm"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/keleshev/schema")
(synopsis "Simple data validation library")
(description
"@code{python-schema} is a library for validating Python data
structures, such as those obtained from config-files, forms, external
services or command-line parsing, converted from JSON/YAML (or
something else) to Python data-types.")
(license license:psfl)))
(define-public python-schema-0.5
(package (inherit python-schema)
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "schema" version))
(sha256
(base32
"10zqvpaky51kgb8nd42bk7jwl8cn2zvayxjpdc1wwmpybj92x67s"))))))
(define-public python-kitchen
(package
(name "python-kitchen")
(version "1.2.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "kitchen" version))
(sha256
(base32
"1zakh6l0yjvwic9p0nkvmbidpnkygkxbigh2skmb5gccyrhbp7xg"))))
(build-system python-build-system)
(propagated-inputs
(list python-chardet))
(home-page "https://github.com/fedora-infra/kitchen")
(synopsis "Python API for snippets")
(description "@code{kitchen} module provides a python API for all sorts of
little useful snippets of code that everybody ends up writing for their projects
but never seem big enough to build an independent release. Use kitchen and stop
cutting and pasting that code over and over.")
(license (list license:lgpl2.1+
;; subprocess.py, test_subprocess.py,
;; kitchen/pycompat25/defaultdict.py:
license:psfl))))
(define-public python-roman
(package
(name "python-roman")
(version "3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "roman" version))
(sha256
(base32
"0gyp2bmw47jgpm8j64gydzqq838bgxz5gh6cm57lxlr7p26sqiic"))))
(build-system python-build-system)
(home-page "https://github.com/zopefoundation/roman")
(synopsis "Integer to Roman numerals converter")
(description
"This package provides a small helper library to convert Arabic Numbers
to Roman Numerals.")
(license license:psfl)))
(define-public python-unidecode
(package
(name "python-unidecode")
(version "1.1.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "Unidecode" version))
(sha256
(base32
"1s6cp2lv4m0f00hjckjz8p6m7d3n3v16jvg353llf5ia1iqsnsib"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/Unidecode/")
(synopsis "ASCII transliterations of Unicode text")
(description
"Unidecode provides ASCII transliterations of Unicode text. Unidecode is
useful when integrating with legacy code that doesn't support Unicode, or for
ease of entry of non-Roman names on a US keyboard, or when constructing ASCII
machine identifiers from human-readable Unicode strings that should still be
somewhat intelligible.")
(license license:gpl2+)))
(define-public python-text-unidecode
(package
(name "python-text-unidecode")
(version "1.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "text-unidecode" version))
(sha256
(base32
"14xb99fdv52j21dsljgsbmbaqv10ps4b453p229r29sdn4xn1mms"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/kmike/text-unidecode/")
(synopsis "Decode Unicode data")
(description
"@code{text-unidecode} is a basic Python port of the @code{Text::Unidecode}
Perl library. It can create ASCII representations of Unicode data. In general
users should prefer the @code{python-unidecode} package which offers better
memory usage and transliteration quality.")
;; The user can choose either license.
(license (list license:clarified-artistic license:gpl2+))))
(define-public python-pyjwt
(package
(name "python-pyjwt")
(version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyJWT" version))
(sha256
(base32
"1fmbcwfw1463wjzwbcgg3s16rad6kfb1mc5y7jbkp6v9ihh0hafl"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-cryptography python-pytest))
(home-page "https://github.com/progrium/pyjwt")
(synopsis "JSON Web Token implementation in Python")
(description
"PyJWT is a JSON Web Token implementation written in Python.")
(license license:expat)))
(define-public python-pymsgbox
(package
(name "python-pymsgbox")
(version "1.0.6")
(source
(origin
(method git-fetch)
(uri (git-reference
;; LICENSE.txt is not present on pypi
(url "https://github.com/asweigart/PyMsgBox")
(commit "55926b55f46caa969c5ddb87990ebea2737bd66f")))
(file-name (git-file-name name version))
(sha256
(base32
"0zy7rjfpwlrd8b64j7jk2lb8m2npc21rnpwakpfvwgl4nxdy80rg"))))
(arguments
;; Circular dependency to run tests:
;; Tests need pyautogui, which depends on pymsgbox.
'(#:tests? #f))
(build-system python-build-system)
(home-page "https://github.com/asweigart/PyMsgBox")
(synopsis "Python module for JavaScript-like message boxes")
(description
"PyMsgBox is a simple, cross-platform, pure Python module for
JavaScript-like message boxes. Types of dialog boxes include:
@enumerate
@item alert
@item confirm
@item prompt
@item password
@end enumerate
")
(license license:bsd-3)))
(define-public python-pympler
(package
(name "python-pympler")
(home-page "https://pythonhosted.org/Pympler/")
(version "1.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "Pympler" version))
(sha256
(base32
"1ynkqpv2akldmvkll5vh5zhwj433s1d59iv0f76lygyak4silgwr"))))
(build-system python-build-system)
(synopsis "Measure, monitor and analyze memory behavior")
(description
"Pympler is a development tool to measure, monitor and analyze
the memory behavior of Python objects in a running Python application.
By pympling a Python application, detailed insight in the size and the
lifetime of Python objects can be obtained. Undesirable or unexpected
runtime behavior like memory bloat and other @samp{pymples} can easily
be identified.
A web profiling frontend exposes process statistics, garbage
visualisation and class tracker statistics.")
(license license:asl2.0)))
(define-public python-itsdangerous
(package
(name "python-itsdangerous")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "itsdangerous" version))
(sha256
(base32
"1w6gfb2zhbcmrfj6digwzw1z68w6zg1q87rm6la2m412zil4swly"))))
(build-system python-build-system)
(home-page "https://palletsprojects.com/p/itsdangerous/")
(synopsis "Python library for passing data to/from untrusted environments")
(description
"Itsdangerous provides various helpers to pass trusted data to untrusted
environments and back.")
(license license:bsd-3)))
(define-public python-pyyaml
(package
(name "python-pyyaml")
(version "6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyYAML" version))
(sha256
(base32
"18imkjacvpxfgg1lbpraqywx3j7hr5dv99d242byqvrh2jf53yv8"))))
(build-system python-build-system)
(inputs
(list libyaml python-cython))
(home-page "https://pyyaml.org")
(synopsis "YAML parser and emitter for Python")
(description
"PyYAML is a YAML parser and emitter for Python. PyYAML features a
complete YAML 1.1 parser, Unicode support, pickle support, capable extension
API, and sensible error messages. PyYAML supports standard YAML tags and
provides Python-specific tags that represent an arbitrary Python object.")
(license license:expat)))
(define-public python-pyyaml-5
(package
(inherit python-pyyaml)
(version "5.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyYAML" version))
(sha256
(base32
"0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0"))))))
(define-public python-vine
(package
(name "python-vine")
(version "5.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "vine" version))
(sha256
(base32 "0zk3pm0g7s4qfn0gk28lfmsyplvisaxi6826cgpq5njkm4j1cfvx"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-case))
(home-page "https://github.com/celery/vine")
(synopsis "Promises for Python")
(description
"@code{vine} provides a special implementation of promises in that it can
be used both for \"promise of a value\" and lazy evaluation. The biggest
upside for this is that everything in a promise can also be a promise,
e.g. filters, callbacks and errbacks can all be promises.")
(license license:bsd-3)))
(define-public python-virtualenv
(package
(name "python-virtualenv")
(version "20.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "virtualenv" version))
(sha256
(base32
"1nbhnpzswcf3lmzn5xabmfdd7ki8r2w2i37y6wml54di6qi1l48c"))))
(build-system python-build-system)
(native-inputs
(list python-mock python-pytest python-setuptools-scm))
(propagated-inputs
(list python-appdirs python-distlib python-filelock python-six))
(home-page "https://virtualenv.pypa.io/")
(synopsis "Virtual Python environment builder")
(description
"Virtualenv is a tool to create isolated Python environments.")
(license license:expat)))
(define-public python-crossenv
(package
(name "python-crossenv")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "crossenv" version))
(sha256
(base32
"07rv4650n19740ixmnsf4qbxyqlgi7f5m1cy8cq0gl01q3r6hps4"))))
(build-system python-build-system)
(arguments
(list #:tests? #f)) ; tests not distributed on pypi
(home-page "https://github.com/benfogle/virtualenv")
(synopsis "Cross-compiling virtualenv for Python")
(description "This package is a tool for cross-compiling extension
modules. It creates a special virtual environment such that @command{pip} or
@file{setup.py} will cross compile packages for you, usually with no further
work on your part.")
(license license:expat)))
(define-public python-uc-micro-py
(package
(name "python-uc-micro-py")
(version "1.0.1")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/tsutsu3/uc.micro-py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"17f55gi55rg47nm88fn3f8851ph03dgykdp011lxr3j6hk18lyfv"))))
(build-system pyproject-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/tsutsu3/uc.micro-py")
(synopsis "Unicode data files for linkify-it-py projects")
(description "This package contains a micro subset of Unicode data files
for linkify-it-py projects.")
(license license:expat)))
(define-public python-linkify-it-py
(package
(name "python-linkify-it-py")
(version "2.0.0")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/tsutsu3/linkify-it-py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0fg0a1lc8xbb62y9krxcp708ll58dxcwm8i7rrwpkd5sh2229f6x"))))
(build-system pyproject-build-system)
(propagated-inputs (list python-uc-micro-py))
(native-inputs (list python-pytest))
(home-page "https://github.com/tsutsu3/linkify-it-py")
(synopsis "Links recognition library with full Unicode support")
(description "This is Python port of
@url{https://github.com/markdown-it/linkify-it, linkify-it}, which is a links
recognition library with full Unicode support. It has features like:
@itemize
@item Full unicode support, with @i{astral} characters
@item International domains support
@item Allows rules extension and custom normalizers.
@end itemize")
(license license:expat)))
(define-public python-markdown-it-py
(package
(name "python-markdown-it-py")
(version "2.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "markdown-it-py" version))
(sha256
(base32
"1nh75i72584r70alhqc479gys04s5m5g3vq601yf2njbs7z5jzng"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f ;pypi source does not contains tests
#:phases
#~(modify-phases %standard-phases
(replace 'build
(lambda _ (invoke "flit" "build")))
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(for-each
(lambda (wheel)
(invoke "python" "-m" "pip" "install"
wheel (string-append "--prefix=" #$output)))
(find-files "dist" "\\.whl$")))))))
(native-inputs (list python-flit))
(propagated-inputs
(list python-mdurl
python-typing-extensions))
(home-page "https://github.com/executablebooks/markdown-it-py")
(synopsis "Python port of markdown-it")
(description
"This is a Python port of @code{markdown-it}, and some of its associated
plugins. The driving design philosophy of the port has been to change as
little of the fundamental code structure (file names, function name, etc) as
possible.")
(license license:expat)))
(define-public python-markupsafe
(package
(name "python-markupsafe")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "MarkupSafe" version))
(sha256
(base32
"02k2ynmqvvd0z0gakkf8s4idyb606r7zgga41jrkhqmigy06fk2r"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/mitsuhiko/markupsafe")
(synopsis "XML/HTML/XHTML markup safe string implementation for Python")
(description
"Markupsafe provides an XML/HTML/XHTML markup safe string implementation
for Python.")
(license license:bsd-3)))
(define-public python-jinja2
(package
(name "python-jinja2")
(version "3.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Jinja2" version))
(sha256
(base32
"1saawzys14l1p4kafs7hkihmnvqjq8fwxjmkjiqx3jq1nm5ys2v4"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-vv")
(format #t "test suite not run~%")))))))
(native-inputs (list python-pytest))
(propagated-inputs (list python-markupsafe))
(home-page "https://jinja.palletsprojects.com/")
(synopsis "Python template engine")
(description
"Jinja2 is a small but fast and easy to use stand-alone template engine
written in pure Python.")
(license license:bsd-3)))
(define-public python-jinja2-time
(package
(name "python-jinja2-time")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jinja2-time" version))
(sha256
(base32
"0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
(build-system python-build-system)
(propagated-inputs
(list python-arrow python-jinja2))
(home-page
"https://github.com/hackebrot/jinja2-time")
(synopsis "Jinja2 Extension for Dates and Times")
(description
"This package provides an extension for the template engine Jinja2. It
adds a 'now' tag providing a convenient access to the arrow.now() API from
templates. A format string can be provided to control the output.")
(license license:expat)))
(define-public python-pysdl2
(package
(name "python-pysdl2")
(version "0.9.11")
(source (origin
(method url-fetch)
(uri (pypi-uri "PySDL2" version))
(sha256
(base32
"19id1qswgcj4v4j5kn49shq1xxx3slhjpm0102w87mczsdbi1rck"))))
(build-system python-build-system)
(arguments
(list #:tests? #f ;; Requires /dev/dri, OpenGL module, etc.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "sdl2/dll.py"
;; Disable pysdl2-dll. It can't be packaged on GNU Guix
;; as it duplicates an existing package (sdl2).
(("prepath = os\\.getenv\\('PYSDL2_DLL_PATH'\\)")
"prepath = \"system\"")
(("^import sdl2dll$") "")
(("postpath = os\\.getenv\\('PYSDL2_DLL_PATH'\\)")
"postpath = \"system\"")
(("DLL\\(.*, os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)\\)")
(string-append
"DLL(\"SDL2\", [\"SDL2\", \"SDL2-2.0\", \"SDL2-2.0.0\"], \""
(dirname (search-input-file inputs "/lib/libSDL2.so"))
"\")")))
(substitute* "sdl2/sdlimage.py"
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
(string-append
"\""
(dirname (search-input-file inputs "/lib/libSDL2_image.so"))
"\"")))
(substitute* "sdl2/sdlgfx.py"
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
(string-append
"\""
(dirname (search-input-file inputs "/lib/libSDL2_gfx.so"))
"\"")))
(substitute* "sdl2/sdlmixer.py"
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
(string-append
"\""
(dirname (search-input-file inputs "/lib/libSDL2_mixer.so"))
"\"")))
(substitute* "sdl2/sdlttf.py"
(("os\\.getenv\\(\"PYSDL2_DLL_PATH\"\\)")
(string-append
"\""
(dirname (search-input-file inputs "/lib/libSDL2_ttf.so"))
"\""))))))))
(inputs
(list sdl2 sdl2-image sdl2-gfx sdl2-mixer sdl2-ttf))
(home-page "https://github.com/py-sdl/py-sdl2")
(synopsis "Python bindings around the SDL2 game development library")
(description "PySDL2 is a pure Python wrapper around the @code{SDL2},
@code{SDL2_mixer}, @code{SDL2_image}, @code{SDL2_ttf}, and @code{SDL2_gfx}
libraries. Instead of relying on C code, it uses the built-in ctypes module
to interface with SDL2, and provides simple Python classes and wrappers for
common SDL2 functionality.")
(license license:cc0)))
(define-public python-pystache
(package
(name "python-pystache")
(version "0.6.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pystache" version))
(sha256
(base32
"03a73ppf5vxnsk6az5ackvc0hp6xqv2f4hi1s5c4nk4s2jr95gwk"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Python 3 tests are failing.
(home-page "http://defunkt.io/pystache/")
(synopsis "Python logic-less template engine")
(description
"Pystache is a Python implementation of the framework agnostic,
logic-free templating system Mustache.")
(license license:expat)))
(define-public python-pystitcher
(package
(name "python-pystitcher")
(version "1.0.4")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/captn3m0/pystitcher")
(commit
(string-append "v" version))))
(file-name
(git-file-name name version))
(sha256
(base32 "03yrzqhcsjdj5zprrk3bh5bbyqfy3vfhxra9974vmkir3m121394"))))
(build-system python-build-system)
(inputs
(list python-html5lib python-importlib-metadata python-markdown
python-pypdf3 python-validators))
(home-page "https://github.com/captn3m0/pystitcher")
(synopsis "Declaratively stitch together a PDF file from multiple sources")
(description
"This package stitches your PDF files together, generating customizable
bookmarks using a declarative input in the form of a markdown file.")
(license license:expat)))
(define-public python-joblib
(package
(name "python-joblib")
(version "1.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "joblib" version))
(sha256
(base32
"0d8ypyhsw1bjr96zan9ms8wbvnzbjqxniq4vcszghcrps7ngqn21"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "JOBLIB_MULTIPROCESSING" "0")
(invoke "pytest" "-v" "joblib"
;; We disable this test to avoid having to depend on ipython/jupyter
"-k" "not test_parallel_call_cached_function_defined_in_jupyter")))))))
(native-inputs
(list python-pytest))
(home-page "https://joblib.readthedocs.io/")
(synopsis "Using Python functions as pipeline jobs")
(description
"Joblib is a set of tools to provide lightweight pipelining in Python.
In particular, joblib offers: transparent disk-caching of the output values
and lazy re-evaluation (memoize pattern), easy simple parallel computing
logging and tracing of the execution.")
(license license:bsd-3)))
(define-public python-daemon
(package
(name "python-daemon")
(version "2.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-daemon" version))
(sha256
(base32
"1bxfn2bq56sd4w0nm9mqy8y0905m7fc8vmhnjxlrf49vcbqr7adx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'adjust-tests
(lambda _
;; Drop use of testtools.helpers.safe_hasattr which has
;; been removed in favor of hasattr.
(substitute* "test/test_metadata.py"
(("testtools\\.helpers\\.safe_hasattr")
"hasattr"))
;; FIXME: Determine why test fails
(substitute* "test/test_daemon.py"
(("test_detaches_process_context")
"skip_test_detaches_process_context")))))))
(propagated-inputs
(list python-lockfile))
(native-inputs
(list python-coverage
python-testtools
python-testscenarios
python-twine
python-mock
python-docutils))
(home-page "https://pagure.io/python-daemon/")
(synopsis "Python library for making a Unix daemon process")
(description "Python-daemon is a library that assists a Python program to
turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
This library provides a @code{DaemonContext} class that manages the following
important tasks for becoming a daemon process:
@enumerate
@item Detach the process into its own process group.
@item Set process environment appropriate for running inside a chroot.
@item Renounce suid and sgid privileges.
@item Close all open file descriptors.
@item Change the working directory, uid, gid, and umask.
@item Set appropriate signal handlers.
@item Open new file descriptors for stdin, stdout, and stderr.
@item Manage a specified PID lock file.
@item Register cleanup functions for at-exit processing.
@end enumerate")
;; Only setup.py is gpl3+, everything else is apache 2.0 licensed.
(license (list license:asl2.0 license:gpl3+))))
(define-public python-anytree
(package
(name "python-anytree")
(version "2.8.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "anytree" version))
(sha256
(base32
"1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(native-inputs
(list ;; For tests.
graphviz ;for 'dot'
python-nose))
(home-page "https://github.com/c0fec0de/anytree")
(synopsis "Lightweight tree data library")
(description
"@code{anytree} is a simple, lightweight, and extensible tree data
structure for Python.")
(license license:asl2.0)))
(define-public autokey
(package
(name "autokey")
(version "0.95.10")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/autokey/autokey")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0f0cqfnb49wwdy7zl2f2ypcnd5pc8r8n7z7ssxkq20d4xfxlgamr"))))
(build-system python-build-system)
(arguments
(list
;; Tests are deprecated and broken until next version, see
;; https://github.com/autokey/autokey/issues/327
#:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "lib/autokey/scripting.py"
(("\"wmctrl\"")
(string-append "\"" (search-input-file inputs "bin/wmctrl") "\""))
(("\"zenity\"")
(string-append "\"" (search-input-file inputs "bin/zenity") "\"")))
(substitute* "autokey-shell"
(("'ipython3'")
(string-append "'" (search-input-file inputs "bin/ipython3") "'"))
(("'python3'")
(string-append "'" (search-input-file inputs "bin/python3") "'")))))
;; Use 'prefix' instead of '=' to allow the user to use additional
;; GI paths from their autokey scripts. GUIX_PYTHONPATH is already
;; wrapped with prefix in python-build-system's wrap.
(add-before 'wrap 'wrap-autokey-gi
(lambda _
(let ((gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(for-each
(lambda (program)
(wrap-program program
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
(map (lambda (name)
(string-append #$output "/bin/" name))
'("autokey-gtk"
"autokey-shell")))))))))
(inputs
(list bash-minimal ; for wrap-program
gtksourceview-3
libappindicator
libnotify
python-dbus
python-ipython
python-pygobject
python-pyinotify
python-pyqt+qscintilla
python-xlib
wmctrl
zenity))
(home-page "https://github.com/autokey/autokey")
(synopsis
"Keyboard and GUI automation utility")
(description
"AutoKey is a desktop automation utility for X11. It allows the automation of
virtually any task by responding to typed abbreviations and hotkeys. It
offers a full-featured GUI (GTK and QT versions) that makes it highly
accessible for novices, as well as a scripting interface offering the full
flexibility and power of the Python language.")
(license license:gpl3+)))
(define-public python-docutils
(package
(name "python-docutils")
(version "0.17.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "docutils" version))
(sha256
(base32
"09gii36lp1bs26cpxqyfd20xahnpbrbjzcnba2xq08y3wk97frb8"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "python" "test/alltests.py")
(format #t "test suite not run~%"))
#t)))))
(home-page "http://docutils.sourceforge.net/")
(synopsis "Python Documentation Utilities")
(description
"Docutils is a modular system for processing documentation into useful
formats, such as HTML, XML, and LaTeX. It uses @dfn{reStructuredText}, an
easy to use markup language, for input.
This package provides tools for converting @file{.rst} files to other formats
via commands such as @command{rst2man}, as well as supporting Python code.")
;; Most of the source code is public domain, but some source files are
;; licensed under the PFSL, BSD 2-clause, and GPLv3+ licenses.
(license (list license:public-domain license:psfl license:bsd-2 license:gpl3+))))
;; TODO: Make this the default in the next rebuild cycle.
(define-public python-docutils-0.19
(package
(inherit python-docutils)
(version "0.19")
(source (origin
(method url-fetch)
(uri (pypi-uri "docutils" version))
(sha256
(base32
"1rprvir116g5rz2bgzkzgyn6mv0z8582rz7bgxbpy2y3adkmm69k"))))))
;; awscli refuses to be built with docutils < 0.16.
(define-public python-docutils-0.15
(package
(inherit python-docutils)
(version "0.15")
(source (origin
(method url-fetch)
(uri (pypi-uri "docutils" version))
(sha256
(base32
"0ja8q6mdj6xv62jjw3phv8j5nfqi5x8hnfy4pqfcjcgz4b34k8sl"))))
;; tests contain Python 2 syntax.
(arguments '(#:tests? #false))))
(define-public python-restructuredtext-lint
(package
(name "python-restructuredtext-lint")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "restructuredtext-lint" version))
(sha256
(base32
"026rdy5h82ng4vqxk8fnprii9d6qxf7hkygiv0a8afjvdlsxmcwp"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "nosetests" "-v"))
#t)))))
(propagated-inputs
(list python-docutils))
(native-inputs
(list python-nose))
(home-page "https://github.com/twolfson/restructuredtext-lint")
(synopsis "reStructuredText linter")
(description "This package provides a linter for the reStructuredText
format.")
(license license:unlicense)))
(define-public python-click-repl
(package
(name "python-click-repl")
(version "0.2.0")
(source
(origin
(method git-fetch) ; no tests in PyPI release
(uri (git-reference
(url "https://github.com/click-contrib/click-repl")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "16ybsnwlj2jlqcfxflky8jz7i3nhrd3f6mvkpgs95618l8lx994i"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-click python-prompt-toolkit python-six))
(home-page "https://github.com/untitaker/click-repl")
(synopsis "REPL plugin for Click")
(description "This package provides a REPL plugin for Click.")
(license license:expat)))
(define-public python-doc8
(package
(name "python-doc8")
(version "0.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "doc8" version))
(sha256
(base32
"0hw5w8mpgsp51qg8nnq28p7y1jiksvz7a0axnn5bkgss3af9zy1d"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v"))
#t)))))
(propagated-inputs
(list python-chardet python-docutils python-restructuredtext-lint
python-six python-stevedore))
(native-inputs
(list python-testtools python-pytest))
(home-page "https://launchpad.net/doc8")
(synopsis
"Style checker for Sphinx (or other) RST documentation")
(description
"Doc8 is an opinionated style checker for reStructured Text and plain
text styles of documentation.")
(license license:asl2.0)))
(define-public python-pygments
(package
(name "python-pygments")
(version "2.12.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Pygments" version))
(sha256
(base32
"1sr6iqh21xi6p8aba4wa9pqfhjbbpcvn9jcsx0ggy4lniw8idcay"))))
(build-system python-build-system)
(arguments
;; FIXME: Tests require sphinx, which depends on this.
'(#:tests? #f))
(home-page "https://pygments.org/")
(synopsis "Syntax highlighting")
(description
"Pygments is a syntax highlighting package written in Python.")
(license license:bsd-2)))
(define-public python-pygments-github-lexers
(package
(name "python-pygments-github-lexers")
(version "0.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pygments-github-lexers" version))
(sha256
(base32
"0cz14clcc9z4pn79ll8hp3xzgsrfjscak5zfsvlgrz6ngkkmgjma"))))
(build-system python-build-system)
(propagated-inputs
(list python-pygments))
(home-page "https://github.com/liluo/pygments-github-lexers")
(synopsis "Pygments Github custom lexers")
(description "This package installs Github custom lexers to Pygments.")
(license license:bsd-3)))
(define-public python-bump2version
(package
(name "python-bump2version")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bump2version" version))
(sha256
(base32 "1rinm4gv1fyh7xjv3v6r1p3zh5kl4ry2qifz5f7frx31mnzv4b3n"))))
(build-system python-build-system)
(arguments
;; XXX: Tests fail with "bumpversion: error: the following arguments are
;; required: --new-version".
`(#:tests? #false))
(home-page "https://github.com/c4urself/bump2version")
(synopsis "Version-bump your software with a single command!")
(description
"This package provides a small command line tool to simplify releasing
software by updating all version strings in your source code by the correct
increment. It also creates commits and tags.")
(license license:expat)))
(define-public python-bumpversion
(package
(name "python-bumpversion")
(version "0.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bumpversion" version))
(sha256
(base32
"0zn7694yfipxg35ikkfh7kvgl2fissha3dnqad2c5bvsvmrwhi37"))))
(build-system python-build-system)
(home-page "https://github.com/peritus/bumpversion")
(synopsis "Tool to bump software version")
(description "This tool provides a command-line interface (CLI) to bump a
software version simply.")
(license license:expat)))
(define-public python-deprecated
(package
(name "python-deprecated")
(version "1.2.13")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tantale/deprecated")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0v4ys9xr8lski2r98da99spsj6hjlnnqgnhhmyhrm66myiix885c"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(propagated-inputs
(list python-wrapt))
(native-inputs
(list python-bumpversion python-pytest python-pytest-cov
python-sphinx python-tox))
(home-page "https://github.com/tantale/deprecated")
(synopsis "Python decorator to deprecate classes, functions or methods")
(description "The @code{deprecated} decorator provides a convenient way to deprecate
to deprecate classes, functions or methods.")
(license license:expat)))
(define-public python-pygithub
(package
(name "python-pygithub")
(version "1.55")
(source
;; We fetch from the Git repo because there are no tests in the PyPI
;; archive.
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PyGithub/PyGithub")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "082bxffpy4h97dsay3l75cpgfjj10kywkvicnm6xscwvah285q9y"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest"))
#t)))))
(propagated-inputs
(list python-cryptography python-deprecated python-pyjwt
python-pynacl python-requests))
(native-inputs
(list python-httpretty python-pytest))
(home-page "https://pygithub.readthedocs.io/en/latest/")
(synopsis "Python library for the GitHub API")
(description "This library allows managing GitHub resources such as
repositories, user profiles, and organizations in your Python applications,
using version 3 of the GitHub application programming interface (API).")
(license license:lgpl3+)))
(define-public python-rellu
(package
(name "python-rellu")
(version "0.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rellu" version))
(sha256
(base32
"1w0arpj1sm7vh29nrbnca4pnp8sx42l07r17inwqcjjf9bhng66x"))))
(build-system python-build-system)
(propagated-inputs
(list python-invoke python-pygithub))
(home-page "https://github.com/robotframework/rellu")
(synopsis "Utilities to create PyPI releases")
(description "This collection of utilities contains tooling and templates
to assist in creating releases on GitHub and publishing them on PyPI. It is
designed to be used by Robot Framework and tools and libraries in its
ecosystem, but can naturally be used also by other projects.")
(license license:asl2.0)))
(define-public python-robotframework
(package
(name "python-robotframework")
(version "5.0.1")
;; There are no tests in the PyPI archive.
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/robotframework/robotframework")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0jjr71npzrm5mv16pya3m2dqaqgf6sc45yca5kfmc5lfislig5b8"))
(patches (search-patches
"python-robotframework-atest.patch"
"python-robotframework-source-date-epoch.patch"))))
(build-system python-build-system)
(arguments
(list
#:modules '((guix build python-build-system)
(guix build utils)
(ice-9 ftw)
(ice-9 match)
(srfi srfi-26))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'delete-problematic-tests
(lambda _
;; Tests such as 'Tilde and username in path' rely on HOME and
;; USER being set, on top of the user's /etc/passwd home
;; directory not being '/', as is the case in the Guix build
;; container.
(delete-file "atest/robot/standard_libraries/\
operating_system/path_expansion.robot")))
(add-before 'build 'build-and-install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let ((doc (string-append (assoc-ref outputs "doc")
"/share/doc/robotframework")))
(invoke "invoke" "library-docs" "all")
(invoke "doc/userguide/ug2html.py" "dist") ;user guide
(mkdir-p doc)
(with-directory-excursion "dist"
(define user-guide-dir
(match (scandir "." (cut string-prefix?
"robotframework-userguide-" <>))
((dir) dir)
(_ (error "could not find the user guide directory"))))
(copy-recursively user-guide-dir doc)))))
(replace 'check
(lambda* (#:key native-inputs inputs tests?
#:allow-other-keys)
(when tests?
;; Some tests require timezone data. Otherwise, they
;; look up /etc/localtime, which doesn't exist, and
;; fail with:
;;
;; OverflowError: mktime argument out of range
(setenv "TZDIR"
(search-input-directory
(or native-inputs inputs) "share/zoneinfo"))
(setenv "TZ" "Europe/Paris")
(format #t "Running unit tests...~%")
(invoke "utest/run.py")
(format #t "Running acceptance tests...~%")
(invoke "xvfb-run" "atest/run.py")))))))
(native-inputs
(list python-docutils
python-jsonschema-next
python-invoke
python-lxml
python-pygments
python-pyyaml
python-rellu
`(,python "tk") ;used when building the HTML doc
python-xmlschema
scrot ;for taking screenshots
tzdata-for-tests
xvfb-run))
(outputs '("out" "doc"))
(home-page "https://robotframework.org")
(synopsis "Generic automation framework")
(description "Robot Framework is a generic automation framework for
acceptance testing, acceptance test driven development (ATDD), and robotic
process automation (RPA).")
(license license:asl2.0)))
(define-public python-robotframework-datadriver
(package
(name "python-robotframework-datadriver")
(version "1.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "robotframework-datadriver" version))
(sha256
(base32 "0mcyr3v98nvfnvffy096qp3jqslas7l8hh0j00lpi0mp12cd0qk9"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'skip-problematic-tests
(lambda _
;; The test file 'tab-csv-file-name.tsv' contains special
;; characters for which there is no locale in the build
;; environment, causing one test to fail.
(delete-file-recursively "atest/TestCases/csv_reader_config")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "atest"
(invoke "sh" "run_atest.sh"))))))))
(native-inputs (list python-docutils
python-robotframework-stacktrace))
(propagated-inputs (list python-openpyxl
python-pandas
python-pygments
python-robotframework))
(home-page "https://github.com/Snooz82/robotframework-datadriver")
(synopsis "Data-driven test extension for Robot Framework")
(description "DataDriver is a data-driven extension for Robot Framework.
DataDriver uses the Listener Interface of Robot Framework to create new test
cases based on a data file that contains the test data. DataDriver supports
data files in the CSV, XLS or XLSX formats.")
(license license:asl2.0)))
(define-public python-robotframework-lint
;; There is no properly tagged release; the commit below seems to correspond
;; to the 0.9 stable release available from PyPI. The tests are not
;; included in the PyPI archive, so we fetch the sources from the upstream
;; Git repo.
(let ((commit "b0619ac58a8b1be125f9c98856a664594614570f")
(revision "0"))
(package
(name "python-robotframework-lint")
(version (git-version "1.1" ;version taken from 'rflint/version.py'
revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/boakley/robotframework-lint")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"180npmvzqync25b2scs878gv8q4y17dsinxyjcc10bw22msfap6b"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-m" "robot" "-A"
"tests/conf/default.args" "tests"))))))
(propagated-inputs
(list python-robotframework))
(home-page "https://github.com/boakley/robotframework-lint/")
(synopsis "Static analysis tool (linter) for Robot Framework")
(description "This package provides the @code{rflint} command-line
utility, a static analysis tool (linter) for Robot Framework source files.")
(license license:asl2.0))))
(define-public python-robotframework-pabot
(package
(name "python-robotframework-pabot")
(version "2.7.0")
(source
(origin
;; There are no tests in the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/mkorpela/pabot")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0246vvyaxax0nzlrffvp9vg6mh5jmvbbm87azignf0gakjidr7nn"))))
(build-system python-build-system)
(arguments
(list
#:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "tests")))))))
(propagated-inputs
(list python-robotframework python-robotframework-stacktrace))
(native-inputs
(list python-pytest))
(home-page "https://pabot.org")
(synopsis "Parallel test runner for Robot Framework")
(description "Pabot is a parallel executor for Robot Framework tests.")
(license license:asl2.0)))
(define-public python-sshtunnel
(package
(name "python-sshtunnel")
(version "0.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "sshtunnel" version))
(sha256
(base32
"1z7rdgpp9m36ysh9pfzrn3vyiaj05bkjvcjdhj8vz0fvfjkhxjz7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv" "tests")))))))
(propagated-inputs (list python-paramiko))
(native-inputs (list openssh python-pytest))
(home-page "https://github.com/pahaz/sshtunnel")
(synopsis "Python SSH tunnels library")
(description "@code{sshtunnel} is a Python module for easily creating SSH
tunnels in the background, using Python.")
(license license:expat)))
(define-public python-robotframework-sshtunnellibrary
(package
(name "python-robotframework-sshtunnellibrary")
(version "1.0.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/C-Squad/robotframework-sshtunnellibrary")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1vkkmkb8iql13xpbyj4hvnnmfgzqlr8rffgryp2082cadb3w7xrd"))))
(build-system python-build-system)
(arguments
(list #:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest"
"discover" "-s" "test")))))))
(propagated-inputs (list python-robotframework python-sshtunnel))
(home-page "https://github.com/C-Squad/robotframework-sshtunnellibrary")
(synopsis "Alternative RobotFramework library for SSH tunnels")
(description "SSHTunnelLibrary is an alternative RobotFramework
library (to the more official one that comes from the
@code{robotframework-sshlibrary} package) to support SSH tunnels.")
(license license:asl2.0)))
(define-public python-robotframework-stacktrace
(package
(name "python-robotframework-stacktrace")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "robotframework-stacktrace" version))
(sha256
(base32 "19gnwr7da1zz9clhwsmvqfjf02d195i61lzpq4253dcsgrpb6v79"))))
(build-system python-build-system)
(arguments
;; The test suite fails (see:
;; https://github.com/MarketSquare/robotframework-stacktrace/issues/4).
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "tests"
(invoke "python" "-m" "robot" "."))))))))
(propagated-inputs (list python-robotframework))
(home-page "https://github.com/MarketSquare/robotframework-stacktrace")
(synopsis "Robot Framework listener to print a stack trace on error")
(description "StackTrace is a Robot Framework listener that prints a stack
trace directly to the terminal to ease debugging.")
(license license:asl2.0)))
(define-public python-robotframework-sshlibrary
(package
(name "python-robotframework-sshlibrary")
(version "3.8.0")
;; There are no tests in the PyPI archive.
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/robotframework/SSHLibrary")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1fn72hw7xacjjpl4dd6wynh2x63i9rk8iqhj3v640db21qpcnbkw"))
(patches (search-patches
"python-robotframework-sshlibrary-rf5-compat.patch"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'build-and-install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let ((doc (string-append
(assoc-ref outputs "doc")
"/share/doc/robotframework-sshlibrary")))
(invoke "chmod" "-R" "+w" "docs")
(invoke "invoke" "kw-docs" "project-docs")
(mkdir-p doc)
(for-each delete-file (find-files "docs" "\\.rst"))
(copy-recursively "docs" doc))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Some tests require an SSH server; we remove them.
(delete-file "utest/test_client_api.py")
(delete-file "utest/test_scp.py")
(invoke "python" "utest/run.py")))))))
(propagated-inputs
(list python-robotframework python-paramiko python-scp))
(native-inputs
(list openssh
which
;; To generate the documentation
python-docutils
python-invoke
python-pygments
python-rellu))
(outputs '("out" "doc"))
(home-page "https://github.com/robotframework/SSHLibrary")
(synopsis "Robot Framework library for SSH and SFTP")
(description "SSHLibrary is a Robot Framework library providing support
for SSH and SFTP. It has the following main usages:
@itemize @bullet
@item Executing commands on the remote machine, either blocking or non-blocking.
@item Writing and reading in an interactive shell.
@item Transferring files and directories over SFTP.
@item Ensuring that files and directories exist on the remote machine.
@end itemize")
(license license:asl2.0)))
(define-public python-robotframework-pythonlibcore
(package
(name "python-robotframework-pythonlibcore")
(version "3.0.0")
(source
(origin
(method git-fetch) ;no tests in pypi archive
(uri (git-reference
(url "https://github.com/robotframework/PythonLibCore")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0v89v8va65l6inh0fb34qgxawx6p29pnrmw4n5941yzdi3804rc4"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "utest/run.py")))))))
(native-inputs
(list python-pytest python-pytest-cov python-pytest-mockito
python-robotframework))
(home-page "https://github.com/robotframework/PythonLibCore")
(synopsis "Robot Framework Python library tools")
(description "PythonLibCore provides tools for creating larger test
libraries for Robot Framework using Python. The Robot Framework hybrid and
dynamic library APIs give more flexibility for library than the static library
API, but they also set requirements for libraries which need to be implemented
in the library side. PythonLibCore eases the problem by providing a simpler
interface and by handling all the requirements towards the Robot Framework
library APIs.")
(license license:asl2.0)))
(define-public python-robotframework-seleniumlibrary
(package
(name "python-robotframework-seleniumlibrary")
(version "5.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "robotframework-seleniumlibrary" version))
(sha256
(base32 "1dihrbcid9i7daw2qy6h3xsvwaxzmyip820jw5z11n60qrl006pm"))))
(build-system python-build-system)
;; XXX: Tests require ungoogled-chromium, but the chromium module would
;; introduce a cycle if imported here.
(propagated-inputs
(list python-robotframework python-robotframework-pythonlibcore
python-selenium))
(home-page "https://github.com/robotframework/SeleniumLibrary")
(synopsis "Web testing library for Robot Framework")
(description "SeleniumLibrary is a web testing library for Robot Framework
that utilizes the Selenium tool internally.")
(license license:asl2.0)))
(define-public python-robotframework-seleniumscreenshots
(package
(name "python-robotframework-seleniumscreenshots")
(version "0.9.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "robotframework-seleniumscreenshots" version))
(sha256
(base32 "05qv323hvjmy62h33ryrjaa9k1hyvp8hq5qnj8j1x3ap2ci3q3s0"))))
(build-system python-build-system)
(arguments
;; XXX: The tests require a relatively complicated setup configured in
;; their CI with Nix (!).
`(#:tests? #f))
(propagated-inputs
(list python-robotframework python-robotframework-seleniumlibrary))
(home-page "https://github.com/MarketSquare/robotframework-seleniumscreenshots")
(synopsis "Robot Framework library for annotating and cropping screenshots")
(description "The SeleniumScreenshots library for Robot Framework provides
keywords for annotating and cropping screenshots taken with SeleniumLibrary.
It is useful for scripting automatically updated screenshots for documentation
or for visual regression testing purposes.")
(license license:bsd-3)))
(define-public python-rstr
(package
(name "python-rstr")
(version "2.2.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rstr" version))
(sha256
(base32
"197dw8mbq0pjjz1l6h1ksi62vgn7x55d373ch74y06744qiq5sjx"))))
(build-system python-build-system)
(home-page "https://github.com/leapfrogonline/rstr")
(synopsis "Generate random strings in Python")
(description "This package provides a python module for generating
random strings of various types. It could be useful for fuzz testing,
generating dummy data, or other applications. It has no dependencies
outside the standard library.")
(license license:bsd-3)))
(define-public python-scp
(package
(name "python-scp")
(version "0.13.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "scp" version))
(sha256
(base32 "1m2v09m407p097cy3xy5rxicqfzrqjwf8v5rd4qhfqkk7lllimwb"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ;tests require an SSH server
(propagated-inputs
(list python-paramiko))
(home-page "https://github.com/jbardin/scp.py")
(synopsis "SCP protocol module for Python and Paramiko")
(description "The scp module extends the Paramiko library to send and
receive files via the SCP1 protocol, as implemented by the OpenSSH
@command{scp} program.")
(license license:gpl2+)))
(define-public python-rst.linker
(package
(name "python-rst.linker")
(version "1.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rst.linker" version))
(sha256
(base32 "0pqsfqqx8h0pq21k8l3k62kznrgaj2ala93c64s4d9rpbr4mgkd2"))))
(build-system python-build-system)
(propagated-inputs
(list python-dateutil python-six))
(native-inputs
(list python-setuptools-scm))
;; Test would require path.py, which would introduce a cyclic dependence.
(arguments `(#:tests? #f))
;; Note: As of version 1.7 the documentation is not worth building.
(home-page "https://github.com/jaraco/rst.linker")
(synopsis "Sphinx plugin to add links and timestamps")
(description "rst.linker automatically replaces text by a
reStructuredText external reference or timestamps. It's primary purpose is to
augment the changelog, but it can be used for other documents, too.")
(license license:expat)))
(define-public python-sshpubkeys
(package
(name "python-sshpubkeys")
(version "3.1.0")
(home-page "https://github.com/ojarva/python-sshpubkeys")
(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
"1h4gwmcfn84kkqh83km1vfz8sc5kr2g4gzgzmr8gz704jmqiv7nq"))))
(build-system python-build-system)
(propagated-inputs
(list python-cryptography python-ecdsa))
(synopsis "OpenSSH public key parser")
(description
"This package provides a library for parsing and validating OpenSSH
public key files.")
(license license:bsd-3)))
(define-public python-feedgenerator
(package
(name "python-feedgenerator")
(version "1.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "feedgenerator" version))
(sha256
(base32
"01mirwkm7xfx539hmvj7g9da1j51gw5lsx74dr0glizskjm5vq2s"))
(modules '((guix build utils)))
(snippet
'(begin
;; Remove pre-compiled .pyc files from source.
(for-each delete-file-recursively
(find-files "." "__pycache__" #:directories? #t))
(for-each delete-file (find-files "." "\\.pyc$"))
#t))))
(build-system python-build-system)
(propagated-inputs
(list python-pytz python-six))
(home-page "https://github.com/getpelican/feedgenerator")
(synopsis
"Standalone version of Django's Atom/RSS feed generator")
(description
"Feedgenerator-py3k is a standalone version of Django's feedgenerator,
which can produce feeds in RSS 2.0, RSS 0.91, and Atom formats.")
(license license:bsd-3)))
(define-public python-lsp-jsonrpc
(package
(name "python-lsp-jsonrpc")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-lsp-jsonrpc" version))
(sha256
(base32
"1gb0fsamxndhplx25v8m0b3k7aknzy454fpa0qsqsqnv6c3igv3v"))))
(build-system python-build-system)
(native-inputs
(list python-mock python-pytest))
(propagated-inputs
(list python-ujson))
(home-page "https://github.com/python-lsp/python-lsp-jsonrpc")
(synopsis "JSON RPC 2.0 server library")
(description
"This package provides a JSON RPC 2.0 server library for Python.")
(license license:expat)))
(define-public python-jsonrpc-server
(deprecated-package "python-jsonrpc-server" python-lsp-jsonrpc))
(define-public python-pydantic
(package
(name "python-pydantic")
(version "1.9.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/samuelcolvin/pydantic")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1406kgppqa7524mxllsipj7gb8fn7pwf51l11lqik59xjhsfv94f"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "pytest" "-vv"))))))
(native-inputs
(list python-pytest python-pytest-mock))
(propagated-inputs
(list python-typing-extensions))
(home-page "https://github.com/samuelcolvin/pydantic")
(synopsis "Python data validation and settings management")
(description
"Pydantic enforces type hints at runtime, and provides user friendly
errors when data is invalid.")
(license license:expat)))
(define-public python-pydantic-cli
(package
(name "python-pydantic-cli")
(version "4.3.0")
(source
(origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/mpkocher/pydantic-cli")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1v4dx6n60rbsan5zpw2rgdih7lb3h0xclagn1p6zfwl0r9l9cvym"))))
(build-system python-build-system)
(propagated-inputs
(list python-pydantic))
(native-inputs
(list python-black
python-mypy
python-pytest))
(home-page "https://github.com/mpkocher/pydantic-cli")
(synopsis "Turn Pydantic defined data models into CLI tools")
(description
"@code{python-pydantic} enables specifying @acronym{CLI, Command Line
Interfaces} via data models provided in the JSON format.")
(license license:expat)))
(define-public python-pydocstyle
(package
(name "python-pydocstyle")
(version "3.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pydocstyle" version))
(sha256
(base32
"1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap"))))
(build-system python-build-system)
(propagated-inputs
(list python-six python-snowballstemmer))
(home-page
"https://github.com/PyCQA/pydocstyle/")
(synopsis "Python docstring style checker")
(description
"This package provides a style checker for the Python Language
Server (PLS).")
(license license:expat)))
(define-public python-lsp-server
(package
(name "python-lsp-server")
(version "1.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-lsp-server" version))
(sha256
(base32
"0h6wxzmm6qjfwkkn3mnzn1fpmcp23fpbk74bi8p540q1nzccqj0v"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-HOME
(lambda _ (setenv "HOME" "/tmp")))
(replace 'check
(lambda _
;; Disable failing test.
(invoke "python" "-m" "pytest" "-k"
"not test_pyqt_completion"))))))
(propagated-inputs
(list python-autopep8
python-pydocstyle
python-flake8
python-future
python-jedi
python-lsp-jsonrpc
python-pluggy
python-pycodestyle
python-pyflakes
python-rope
python-ujson
python-yapf))
(native-inputs
(list python-coverage
python-flaky
python-matplotlib
python-mock
python-numpy
python-pandas
python-pylint
python-pytest
python-pytest-cov
python-versioneer))
(home-page "https://github.com/python-lsp/python-lsp-server")
(synopsis "Python implementation of the Language Server Protocol")
(description
"The Python Language Server @command{pylsp} is an implementation of the
Python 3 language specification for the Language Server Protocol (LSP).
This tool is used in text editing environments to provide a complete
and integrated feature-set for programming Python effectively.")
(license license:expat)))
(define-public python-language-server
(deprecated-package "python-language-server" python-lsp-server))
(define-public python-pathspec
(package
(name "python-pathspec")
(version "0.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pathspec" version))
(sha256
(base32
"1cdbdb3s6ldnjpwbi0bgl0xlmw4mbfxk08bbdxc3srx26na4jr75"))))
(build-system python-build-system)
(home-page "https://github.com/cpburnz/python-path-specification")
(synopsis "Utility library for gitignore style pattern matching of file paths")
(description
"This package provides a utility library for gitignore style pattern
matching of file paths.")
(license license:mpl2.0)))
(define-public python-black
(package
(name "python-black")
(version "22.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "black" version))
(sha256
(base32
"0yfahlqc7dsdp1js0cbv706apldnfnlbal9b53cww8n0hs40n0im"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'patch-source-shebangs 'use-absolute-file-names
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(let* ((inpts (or native-inputs inputs))
(python3 (search-input-file inpts "/bin/python3")))
(substitute* (find-files "tests" "\\.py$")
(("#!/usr/bin/env python3(\\.[0-9]+)?" _ minor-version)
(string-append "#!" python3 (if (string? minor-version)
minor-version
"")))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-click
python-attrs
python-appdirs
python-pathspec
python-mypy-extensions
python-platformdirs
python-regex
python-tomli
python-typed-ast
python-typing-extensions))
(native-inputs
(list python-pytest python-pytest-aiohttp python-setuptools-scm))
(home-page "https://github.com/psf/black")
(synopsis "The uncompromising code formatter")
(description "Black is the uncompromising Python code formatter.")
(license license:expat)))
(define-public python-black-macchiato
(package
(name "python-black-macchiato")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "black-macchiato" version))
(sha256
(base32
"1drp5p697ni1xn5y2lbjpalgpkzy2i4cyxjj5pk4dxr0vk97dd7i"))))
(build-system python-build-system)
(propagated-inputs
(list python-black))
(home-page "https://github.com/wbolster/black-macchiato")
(synopsis "Partial @code{python-black} formatting")
(description
"This package is built on top the @{python-black} code formatter to
enable formatting of partial files.")
(license license:bsd-3)))
(define-public python-blinker
(package
(name "python-blinker")
(version "1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "blinker" version))
(sha256
(base32
"1dpq0vb01p36jjwbhhd08ylvrnyvcc82yxx3mwjx6awrycjyw6j7"))))
(build-system python-build-system)
(home-page "https://pythonhosted.org/blinker/")
(synopsis "Fast, simple object-to-object and broadcast signaling")
(description
"Blinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or \"signals\".")
(license license:expat)))
(define-public pelican
(package
(name "pelican")
(version "4.7.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pelican" version))
(sha256
(base32 "0m1kndc98hhnlq0yl05f4lzccw555pkxnrajj6lks18yh491kw8w"))))
(build-system python-build-system)
(inputs
(list python-blinker
python-dateutil
;; Ignoring `guix lint` warning as python-docutils is used to support
;; reStructuredText processing at runtime.
python-docutils
python-feedgenerator
python-jinja2
python-markdown
python-pygments
python-pytz
python-rich
python-unidecode))
(home-page "https://blog.getpelican.com/")
(arguments
`(;; XXX Requires a lot more packages to do unit tests :P
#:tests? #f))
(synopsis "Python-based static site publishing system")
(description
"Pelican is a tool to generate a static blog from reStructuredText,
Markdown input files, and more. Pelican uses Jinja2 for templating
and is very extensible.")
(license license:agpl3+)))
(define-public mallard-ducktype
(package
(name "mallard-ducktype")
(version "1.0.2")
(source
(origin
(method git-fetch)
;; git-reference because tests are not included in pypi source tarball
;; https://issues.guix.gnu.org/issue/36755#2
(uri (git-reference
(url "https://github.com/projectmallard/mallard-ducktype")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1jk9bfz7g04ip78s03b0xak6d54rj4h9zpgadkziy1ji216g6y4c"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(with-directory-excursion "tests"
(invoke "sh" "runtests")))))))
(home-page "http://projectmallard.org")
(synopsis "Convert Ducktype to Mallard documentation markup")
(description
"Ducktype is a lightweight syntax that can represent all the semantics
of the Mallard XML documentation system. Ducktype files can be converted to
Mallard using the @command{ducktype} tool. The yelp-tools package
provides additional functionality on the produced Mallard documents.")
(license license:expat)))
(define-public python-cython
(package
(name "python-cython")
(version "0.29.32")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Cython" version))
(sha256
(base32 "1xqsihpqnfal29nb5kmw8z71nd4jbsnbz7p3lkr094xpb13wycw7"))))
(build-system python-build-system)
;; we need the full python package and not just the python-wrapper
;; because we need libpython3.3m.so
(inputs
(list python))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-HOME
;; some tests require access to "$HOME/.cython"
(lambda _ (setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
;; Disable compiler optimizations to greatly reduce the running
;; time of the test suite.
(setenv "CFLAGS" "-O0")
(when tests?
(invoke "python" "runtests.py" "-vv"
"-j" (number->string (parallel-job-count))
;; XXX: On 32-bit architectures, running the parallel tests
;; fails on many-core systems, see
;; <https://github.com/cython/cython/issues/2807>.
,@(if (not (target-64bit?))
'("-x" "run.parallel")
'())
;; This test fails when running on 24 cores.
"-x" "cpp_stl_conversion")))))))
(home-page "https://cython.org/")
(synopsis "C extensions for Python")
(description "Cython is an optimising static compiler for both the Python
programming language and the extended Cython programming language. It makes
writing C extensions for Python as easy as Python itself.")
(license license:asl2.0)))
(define-public python-cython-3
(package
(inherit python-cython)
;; Cython 3 is not officially released yet, so distinguish the name
;; for now.
(name "python-cython-next")
(version "3.0.0a10")
(source (origin
(method url-fetch)
(uri (pypi-uri "Cython" version))
(sha256
(base32
"17fqacrpis05w1rpi7d7sbimrk20xf8h6d3vrz5nf6ix3899abil"))))
(properties '())))
;; NOTE: when upgrading numpy please make sure that python-numba,
;; python-pandas and python-scipy still build, as these three packages are
;; often used together.
(define-public python-numpy
(package
(name "python-numpy")
(version "1.21.6")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/numpy/numpy/releases/download/v"
version "/numpy-" version ".tar.gz"))
(sha256
(base32
"0b0c5y35rd3mvwfk5is1d5ppfw9nl4d2rgx9xkwh1p0w394wdvyl"))))
(build-system python-build-system)
(arguments
(list
#:modules '((guix build utils)
(guix build python-build-system)
(ice-9 format))
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'parallelize-build
(lambda _
(setenv "NPY_NUM_BUILD_JOBS"
(number->string (parallel-job-count)))))
(add-before 'build 'configure-blas
(lambda* (#:key inputs #:allow-other-keys)
(call-with-output-file "site.cfg"
(lambda (port)
(format port
"\
[openblas]
libraries = openblas
library_dirs = ~a/lib
include_dirs = ~:*~a/include~%" #$(this-package-input "openblas"))))))
(add-before 'build 'fix-executable-paths
(lambda* (#:key inputs #:allow-other-keys)
;; Make /gnu/store/...-bash-.../bin/sh the default shell,
;; instead of /bin/sh.
(substitute* "numpy/distutils/exec_command.py"
(("'/bin/sh'")
(format #f "~s" (search-input-file inputs "bin/bash"))))
;; Don't try to call '/bin/true' specifically.
(substitute* "numpy/core/tests/test_cpu_features.py"
(("/bin/true") (search-input-file inputs "bin/true")))))
(replace 'check
(lambda* (#:key tests? outputs inputs #:allow-other-keys)
(when tests?
(invoke "./runtests.py" "-vv" "--no-build" "--mode=fast"
"-j" (number->string (parallel-job-count))
;; Contrary to scipy, the runtests.py script of numpy
;; does *not* automatically provide -n when -j is used
;; (see: https://github.com/numpy/numpy/issues/21359).
"--" "-n" (number->string (parallel-job-count))
"-k" (string-append
;; These tests may fail on 32-bit systems (see:
;; https://github.com/numpy/numpy/issues/18387).
"not test_float_remainder_overflow "
"and not test_pareto"
;; These tests seem to fail on machines without
;; an FPU is still under investigation upstream.
;; https://github.com/numpy/numpy/issues/20635
#$@(if (target-riscv64?)
`(" and not test_float"
" and not test_fpclass")
'())))))))))
(native-inputs
(list python-cython
python-hypothesis-next
python-pytest
python-pytest-xdist
gfortran))
(inputs (list bash openblas))
(home-page "https://numpy.org")
(synopsis "Fundamental package for scientific computing with Python")
(description "NumPy is the fundamental package for scientific computing
with Python. It contains among other things: a powerful N-dimensional array
object, sophisticated (broadcasting) functions, tools for integrating C/C++
and Fortran code, useful linear algebra, Fourier transform, and random number
capabilities.")
(properties
'((upstream-name . "numpy")))
(license license:bsd-3)))
(define-public python-numpy-next
(package
(inherit python-numpy)
(name "python-numpy-next")
(version "1.22.3")
(source
(origin
(inherit (package-source python-numpy))
(method url-fetch)
(uri (string-append
"https://github.com/numpy/numpy/releases/download/v"
version "/numpy-" version ".tar.gz"))
(sha256
(base32
"19dw91pqbqcniw2z57kiyqs1qp56g7kqy1bdyv664g8s62sc01m9"))))))
(define-public python-numpy-documentation
(package
(inherit python-numpy)
(name "python-numpy-documentation")
(arguments
(list
#:tests? #f ;we're only generating the documentation
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'add-gnu-freefont-to-texmf
(lambda _
;; XXX: The Sphinx-generated tex output specifies the GNU
;; FreeFont font to be searched via its extension, which uses
;; kpathsea instead of fontconfig and fail (see:
;; https://github.com/sphinx-doc/sphinx/issues/10347). Create a
;; symlink to GNU FreeFont and add it to the TEXMF tree via
;; GUIX_TEXMF.
(mkdir-p "texmf-dist/fonts/opentype/public")
(symlink (string-append
#$(this-package-native-input "font-gnu-freefont")
"/share/fonts/opentype")
(string-append
(getcwd) "/"
"texmf-dist/fonts/opentype/public/gnu-freefont"))
(setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF") ":"
(getcwd) "/texmf-dist"))))
(delete 'build)
(replace 'install
(lambda _
(let* ((data (string-append #$output "/share"))
(doc (string-append data "/doc/numpy"))
(html (string-append doc "/html"))
(info (string-append data "/info"))
(sphinxopts (string-append
"SPHINXOPTS=-j"
(number->string (parallel-job-count)))))
(with-directory-excursion "doc"
;; Do not treat warnings as errors.
(substitute* "Makefile"
((" -WT ") " -T "))
(setenv "HOME" "/tmp")
;; Build the PDF documentation.
(invoke "make" "latex-build" sphinxopts)
(invoke "make" "-C" "build/latex" "all-pdf" sphinxopts)
;; Build the HTML documentation
(invoke "make" "html" sphinxopts)
;; Build the Info documentation. The issues worked around
;; below can be tracked at
;; https://github.com/numpy/numpy/issues/12278.
(substitute* "source/conf.py"
;; The root document should be "index", not "contents".
(("\"contents\"") "'index'")
;; Disable Sphinx extensions that produce broken Texinfo.
((".*'numpydoc'.*") "")
((".*'sphinx.ext.autosummary'.*") ""))
(invoke "make" "info" sphinxopts)
;; Install the HTML documentation.
(mkdir-p html)
(copy-recursively "build/html" html)
;; Install the PDF reference and user manuals.
(install-file "build/latex/numpy-ref.pdf" doc)
(install-file "build/latex/numpy-user.pdf" doc)
;; Install the info manual.
(install-file "build/texinfo/numpy.info" info)
(symlink (string-append html "/_images")
(string-append info "/numpy-figures")))))))))
(native-inputs
(list font-gnu-freefont
perl
python-breathe
python-ipython
python-matplotlib
python-numpy
python-numpydoc
python-pandas
python-pydata-sphinx-theme
python-scipy ;used by matplotlib
python-sphinx-4
python-sphinx-panels
texinfo
texlive-bin
texlive-cbfonts
texlive-cm-super
texlive-greek-fontenc
texlive-latex-expdlist
texlive-polyglossia
texlive-xindy))
(inputs '())
(propagated-inputs '())
(synopsis "Documentation for the @code{python-numpy} package")
(description "This package provides the complete NumPy documentation in
the Texinfo, HTML, and PDF formats.")))
(define-public python-munch
(package
(name "python-munch")
(version "2.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "munch" version))
(sha256
(base32
"1lnvlic9g68hcmgdnv5bzp0nx2bf1kjclj54gx0s7nyl4ipmywrd"))))
(build-system python-build-system)
(native-inputs (list python-pbr python-pytest))
(propagated-inputs (list python-six))
(home-page "https://github.com/Infinidat/munch")
(synopsis "Dot-accessible dictionary")
(description "Munch is a dot-accessible dictionary similar to JavaScript
objects.")
(license license:expat)))
(define-public python-colormath
(package
(name "python-colormath")
(version "3.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "colormath" version))
(sha256
(base32
"05qjycgxp3p2f9n6lmic68sxmsyvgnnlyl4z9w7dl9s56jphaiix"))))
(build-system python-build-system)
(propagated-inputs
(list python-networkx python-numpy))
(home-page "https://github.com/gtaylor/python-colormath")
(synopsis "Color math and conversion library")
(description
"This is a Python library for color math and conversions.")
(license license:bsd-3)))
(define-public python-sparse
(package
(name "python-sparse")
(version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sparse" version))
(sha256
(base32
"05ar1lhq1yy4nb78s7vpb1wz4ac4kj0r4lrd7yrf23kpmaacjpb8"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "-v")))))))
(propagated-inputs
(list python-numba python-numpy python-scipy))
(native-inputs
(list python-dask python-pytest python-pytest-black
python-pytest-cov))
(home-page "https://github.com/pydata/sparse/")
(synopsis "Library for multi-dimensional sparse arrays")
(description
"This package implements sparse arrays of arbitrary dimension on top of
@code{numpy} and @code{scipy.sparse}. Sparse array is a matrix in which most
of the elements are zero. @code{python-sparse} generalizes the
@code{scipy.sparse.coo_matrix} and @code{scipy.sparse.dok_matrix} layouts, but
extends beyond just rows and columns to an arbitrary number of dimensions.
Additionally, this project maintains compatibility with the
@code{numpy.ndarray} interface rather than the @code{numpy.matrix} interface
used in @code{scipy.sparse}. These differences make this project useful in
certain situations where @code{scipy.sparse} matrices are not well suited, but
it should not be considered a full replacement. It lacks layouts that are not
easily generalized like @dfn{compressed sparse row/column}(CSR/CSC) and
depends on @code{scipy.sparse} for some computations.")
(license license:bsd-3)))
(define-public python-spectra
(package
(name "python-spectra")
(version "0.0.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "spectra" version))
(sha256
(base32
"1f322x914bhkg6r5gv1vmnir3iy0k5kih0fd2gp3rdkw32jn5cwf"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "nosetests" "-v"))))))
(propagated-inputs
(list python-colormath))
(native-inputs
(list python-nose))
(home-page "https://github.com/jsvine/spectra")
(synopsis "Color scales and color conversion")
(description
"This package provides a Python library intended to make color math,
color scales, and color space conversion easy. It has support for:
@enumerate
@item Color scales
@item Color ranges
@item Color blending
@item Brightening/darkening colors
@item Saturating/desaturating colors
@item Conversion to/from multiple color spaces.
@end enumerate\n")
(license license:expat)))
(define-public python-pyspnego
(package
(name "python-pyspnego")
(version "0.1.6")
(source
(origin
(method git-fetch) ;no tests in PyPI release
(uri (git-reference
(url "https://github.com/jborean93/pyspnego")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0pfh2x0539f0k2qi2pbjm64b2fqp64c63xxpinvg1yfaw915kgpb"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(native-inputs
(list python-pytest python-pytest-mock))
(propagated-inputs
(list python-cryptography python-gssapi python-ruamel.yaml))
(home-page "https://github.com/jborean93/pyspnego")
(synopsis "Python SPNEGO library")
(description "The @code{pyspnego} Python library handles Negotiate, NTLM,
Kerberos (SPNEGO) and CredSSP authentication. It also includes a packet
parser that can be used to decode raw NTLM/SPNEGO/Kerberos tokens into a human
readable format.")
(license license:expat)))
(define-public python-pygit2
(package
(name "python-pygit2")
(version "1.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pygit2" version))
(sha256
(base32 "068bwhirigbh2435abyv4shdxgxvyfqf4dxfmhd4hihivwrl9290"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v")))))))
(propagated-inputs
(list python-cached-property python-cffi libgit2))
(native-inputs
(list python-pytest))
(home-page "https://github.com/libgit2/pygit2")
(synopsis "Python bindings for libgit2")
(description "Pygit2 is a set of Python bindings to the libgit2 shared library.")
;; GPL2.0 only, with linking exception.
(license license:gpl2)))
(define-public python-patiencediff
(package
(name "python-patiencediff")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "patiencediff" version))
(sha256
(base32
"0yjk50lsd4gnllxls925xbcdxwvmda37w2a1shk0p1nvl3fcha6q"))))
(build-system python-build-system)
(home-page "https://www.breezy-vcs.org/")
(synopsis "Python implementation of the patiencediff algorithm")
(description
"This package contains a Python implementation of the @code{patiencediff}
algorithm. Patiencediff provides a good balance of performance, nice output for
humans, and implementation simplicity.")
(license license:gpl2)))
(define-public python-wmctrl
(package
(name "python-wmctrl")
(version "0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wmctrl" version))
(sha256
(base32
"1q0l1sqnj5wma87k3dsgmsyph464syjc6fl8qcpa41nan1rgzjv6"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(let ((wmctrl (assoc-ref inputs "wmctrl")))
(substitute* "wmctrl.py"
(("'wmctrl")
(string-append "'" wmctrl "/bin/wmctrl")))))))))
(inputs (list wmctrl))
(propagated-inputs (list python-attrs))
(home-page "https://github.com/antocuni/wmctrl")
(synopsis "Tool to programmatically control Xorg windows")
(description "This package provides a library for programmatically
controlling Xorg windows using Python. The library relies on the
@command{wmctrl} to do so.")
(license license:expat)))
(define-public python-fancycompleter
(package
(name "python-fancycompleter")
(version "0.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fancycompleter" version))
(sha256
(base32 "0wkj4h01pxa8prv59zl09a0i3w26k835bfpjgvyvsai4mswgxq09"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'fix-setup.py
(lambda _
(substitute* "setup.py"
((".*setupmeta.*")
"")
(("versioning=.*")
(string-append "version='" ,version "',"))
((".*pyrepl.*") ;broken on Python 3
"")))))))
(home-page "https://github.com/pdbpp/fancycompleter")
(synopsis "TAB completion library for Python")
(description "@code{fancycompleter} is a module that adds TAB completion
to the interactive prompt. It is an extension of the @code{rlcompleter}
module from the standard Python library.")
(license license:bsd-3)))
(define-public python-ipdb
(package
(name "python-ipdb")
(version "0.13.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipdb" version))
(sha256
(base32 "1ibql99agjf2gj7y0svzd5m0h81hailf4p3sj3yl9i1i8ykdj6wm"))))
(build-system python-build-system)
(arguments
(list #:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest" "discover")))))))
(propagated-inputs (list python-ipython python-toml python-decorator))
(home-page "https://github.com/gotcha/ipdb")
(synopsis "IPython-enhanced Python debugger (pdb)")
(description "@code{ipdb} exports functions to access the IPython
debugger, which features tab completion, syntax highlighting, better
tracebacks and better introspection than Python's standard @command{pdb}
debugger, with which it shares the same interface.")
(license license:bsd-3)))
(define-public python-pdbpp
(package
(name "python-pdbpp")
(version "0.10.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pdbpp" version))
(sha256
(base32
"1xb9yvi30rb1cdpvfdk2kg79vh3anvkz91r8bwvfp3iqv97kzr6r"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest"
"-k"
(string-append
;; These tests seem to require a real TTY.
"not interaction_restores_previous_sigint_handler "
"and not python_m_pdb_uses_pdbpp"))))))))
(propagated-inputs
(list python-fancycompleter python-pygments python-wmctrl))
(native-inputs
(list python-pytest python-setuptools-scm))
(home-page "https://github.com/pdbpp/pdbpp")
(synopsis "Drop-in replacement for pdb")
(description "Pdb++ is a drop-in replacement for @code{pdb}. It
includes the following improvements compared to @code{pdb}:
@itemize
@item auto-completion
@item syntax highlighting of code listings
@item sticky mode
@item new commands to be used from the interactive (Pdb++) prompt
@item smart command parsing
@item additional convenience functions in the @code{pdb} module.
@end itemize")
(license license:bsd-3)))
(define-public python-pdftotext
(package
(name "python-pdftotext")
(version "2.1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pdftotext" version))
(sha256
(base32 "1555wbgr5spj8xflrs4mwsrdmba2f9s72nk50xzqk9ghxaxdvy6a"))))
(build-system python-build-system)
(inputs
(list poppler))
(home-page "https://github.com/jalan/pdftotext")
(synopsis "Simple PDF text extraction")
(description "Pdftotext is a Python library of PDF text extraction.")
(license license:expat)))
(define-public python-pluginbase
(package
(name "python-pluginbase")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pluginbase" version))
(sha256
(base32
"11z2vvbp13828y0x3w39f29p9r9xcix7h7c4fff2w8yfiylk6v7z"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "make" "test")))))))
(native-inputs (list python-pytest))
(home-page "https://github.com/mitsuhiko/pluginbase")
(synopsis "Simple but flexible plugin system for Python")
(description "PluginBase is a library useful in the development of
flexible plugin systems in Python.")
(license license:bsd-3)))
(define-public python-node-semver
(package
(name "python-node-semver")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "node-semver" version))
(sha256
(base32
"000ypfns5x72b41w5f9pk6k3jnr35scliqfbvmilyvv0178005i8"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/podhmo/python-node-semver")
(synopsis "Python port of node-semver")
(description "This module provides a Python version of node-semver, a
semantic version parser for Node.js.")
(license license:expat)))
(define-public python-patch-ng
(package
(name "python-patch-ng")
(version "1.17.4")
(source
(origin
(method git-fetch) ;no tests in PyPI archive
(uri (git-reference
(url "https://github.com/conan-io/python-patch-ng")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0qxn4ss2s54qy87xrpcybz26kp2fwlaq41x4k9jcmp6d7p0w569m"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "tests/run_tests.py" "-v")))))))
(home-page "https://github.com/conan-io/python-patch-ng")
(synopsis "Python library to parse and apply unified diffs")
(description "Patch NG (New Generation) is a command and Python library to
parse and apply unified diffs. It has features such as:
@itemize
@item automatic correction of common patch formatting corruption
@item patch format detection (SVN, Hg, Git)
@item nice diffstat histogram.
@end itemize")
(license license:expat)))
(define-public python-numpydoc
(package
(name "python-numpydoc")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "numpydoc" version))
(sha256
(base32
"1xjsli2fqks4iv3524v1d329siad7bbsi4kr174zvhsl1pnjds3w"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
(("'Jinja2>=2.10,<3.1'")
"'Jinja2>=2.10'"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v" "numpydoc/tests"
;; TODO: unclear why these fail.
"-k" "not test_MyClass and not test_my_function")))))))
(propagated-inputs (list python-jinja2 python-sphinx))
(native-inputs (list python-matplotlib python-pytest python-pytest-cov))
(home-page "https://pypi.org/project/numpydoc/")
(synopsis "Numpy's Sphinx extensions")
(description "Sphinx extension to support docstrings in Numpy format.")
(license license:bsd-2)))
(define-public python-numexpr
(package
(name "python-numexpr")
(version "2.7.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "numexpr" version))
(sha256
(base32
"09d8yfsx33ddwfkpn8805w2mxnn4cvf47yc66g4azldpz4lnaqa3"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; no tests included
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/pydata/numexpr")
(synopsis "Fast numerical expression evaluator for NumPy")
(description
"Numexpr is a fast numerical expression evaluator for NumPy. With it,
expressions that operate on arrays are accelerated and use less memory than
doing the same calculation in Python. In addition, its multi-threaded
capabilities can make use of all your cores, which may accelerate
computations, most specially if they are not memory-bounded (e.g. those using
transcendental functions).")
(license license:expat)))
(define-public python-cycler
(package
(name "python-cycler")
(version "0.10.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "cycler" version))
(sha256
(base32
"1n69n23fak1gjxlrbhqisi2b9pv3ckrfj98llx3p53953082syyd"))))
(build-system python-build-system)
(arguments
;; XXX: The current version requires 'coveralls' which we don't have.
;; Enable this for the next release which uses 'python-pytest'.
'(#:tests? #f))
(propagated-inputs
(list python-six))
(home-page "https://matplotlib.org/cycler/")
(synopsis "Composable keyword argument iterator")
(description
"When using @code{matplotlib} and plotting more than one line, it is
common to want to be able to want to be able to cycle over one or more artist
styles; but the plotting logic can quickly become involved.
To address this and enable easy cycling over arbitrary @code{kwargs}, the
@code{Cycler} class was developed.")
(license license:bsd-3)))
(define-public python-colorspacious
(package
(name "python-colorspacious")
(version "1.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/njsmith/colorspacious")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0x7nkphr6g5ql5fvgss8l56rgiyjgh6fm8zzs73i94ci9wzlm63w"))))
(build-system python-build-system)
(propagated-inputs
(list python-numpy))
(native-inputs
(list python-nose))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "nosetests" "--all-modules" "-v" "colorspacious"))))))
(home-page "https://github.com/njsmith/colorspacious")
(synopsis "Python library for colorspace conversions")
(description "@code{colorspacious} is a Python library that lets you
convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc.")
(license license:expat)))
(define-public python-proto-matcher
(package
(name "python-proto-matcher")
(version "0.0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "proto_matcher" version))
(sha256
(base32 "1644x0hrl398ji3281n44ymfgc3cspzfagjckhqjn4nja5nlikxg"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;no test suite
(propagated-inputs
(list python-protobuf python-pyhamcrest))
(home-page "https://github.com/dayfine/proto-matcher")
(synopsis "PyHamcrest test matchers for protocol buffers")
(description "This package provides the following PyHamcrest test
matchers, that enable matching a protocol buffer message:
@table @code
@item equals_proto
Test the argument equals the given protobuf message.
@item approximately
Test the argument equals the given protobuf message, while comparing any float
field using approximation.
@item ignoring_field_paths
Test the argument equals the given protobuf message, while ignoring those
fields specified in the field paths.
@item ignoring_repeated_field_ordering
Test the argument equals the given protobuf message, ignoring the ordering of
any repeated field.
@item partially
Test the argument partially equals the given protobuf message, i.e. if a field
is in the argument but not in the expected message, it's ignored in the
comparison.
@end table")
(license license:asl2.0)))
(define-public python-matplotlib
(package
(name "python-matplotlib")
(version "3.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "matplotlib" version))
(sha256
(base32 "18h78s5ld1i6mz00w258hy29909nfr3ddq6ry9kq18agw468bks8"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'pretend-version
;; The version string is usually derived via setuptools-scm, but
;; without the git metadata available, the version string is set to
;; '0.0.0'.
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
(add-after 'unpack 'fix-and-disable-failing-tests
;; XXX: Disable all image comparison tests because we're using a
;; newer version of FreeType than matplotlib expects. This leads
;; to minor differences throughout the tests.
(lambda _
(substitute* (append (find-files "lib/matplotlib/tests/"
"test_.*\\.py$")
(find-files "lib/mpl_toolkits/tests"
"test_.*\\.py$"))
(("^from matplotlib" match)
(string-append "import pytest\n" match))
(("( *)@([^_]+_)*(image_comparison|check_figures_equal)" match
indent)
(string-append indent "@pytest.mark.skip(\
reason=\"unknown minor image differences\")\n" match)))
(substitute* "lib/matplotlib/tests/test_animation.py"
(("/bin/sh") (which "sh")))
(for-each delete-file
;; test_normal_axes, test_get_tightbbox_polar
'("lib/matplotlib/tests/test_axes.py"
"lib/matplotlib/tests/test_polar.py"
;; We don't use the webagg backend and this test
;; forces it.
"lib/matplotlib/tests/test_backend_webagg.py"
;; test_outward_ticks
"lib/matplotlib/tests/test_tightlayout.py"
;; test_hidden_axes fails with minor extent
;; differences, possibly due to the use of a
;; different version of FreeType.
"lib/matplotlib/tests/test_constrainedlayout.py"
;; Fontconfig returns no fonts.
"lib/matplotlib/tests/test_font_manager.py"
;; The images comparison test fails
;; non-deterministically when run in parallel (see:
;; https://github.com/matplotlib/matplotlib/issues/22992).
"lib/matplotlib/tests/test_compare_images.py"))))
(add-before 'build 'configure-environment
(lambda* (#:key inputs #:allow-other-keys)
;; Fix rounding errors when using the x87 FPU.
(when (string-prefix? "i686" #$(%current-system))
(setenv "CFLAGS" "-ffloat-store"))
(call-with-output-file "mplsetup.cfg"
(lambda (port)
(format port "\
[libs]
system_freetype = true
system_qhull = true
[rc_options]
backend=Agg
[directories]
basedirlist = ~a,~a
[packages]
tests = True~%" (assoc-ref inputs "tcl") (assoc-ref inputs "tk"))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Step out of the source directory to avoid interference.
(with-directory-excursion "/tmp"
;; Run the installed tests, which is what we want since not
;; everything gets built in the source directory.
(invoke "pytest"
"-n" (number->string (parallel-job-count))
"-m" "not network" "--pyargs" "matplotlib"
;; The 'test_lazy_auto_backend_selection' fails
;; because it would require an X server; skip it.
"-k" "not test_lazy_auto_backend_selection"))))))))
(propagated-inputs
(list gobject-introspection
python-cairocffi
python-certifi
python-cycler
python-dateutil
python-fonttools
python-kiwisolver
python-numpy
python-packaging
python-pillow
;; ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
;; ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
;; ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
;; ;; object. For this reason we need to import both libraries.
;; python-pycairo
python-pygobject
python-pyparsing
python-pytz
python-six
`(,python "tk")
python-wxpython))
(inputs
(list cairo
freetype
glib
libpng
qhull
tcl
tk))
(native-inputs
(list pkg-config
python-pytest
python-pytest-timeout
python-pytest-xdist
python-setuptools-scm
python-setuptools-scm-git-archive))
(home-page "https://matplotlib.org/")
(synopsis "2D plotting library for Python")
(description
"Matplotlib is a Python 2D plotting library which produces publication
quality figures in a variety of hardcopy formats and interactive environments
across platforms. Matplotlib can be used in Python scripts, the python and
ipython shell, web application servers, and six graphical user interface
toolkits.")
(license license:psfl)))
(define-public python-matplotlib-documentation
(package
(inherit python-matplotlib)
(name "python-matplotlib-documentation")
(arguments
(list
#:tests? #f ;we're only generating documentation
#:phases
#~(modify-phases %standard-phases
(replace 'build
(lambda _
(setenv "HOME" "/tmp")
(chdir "doc")
(substitute* "conf.py"
;; The sphinx_panels extension causes a "TypeError: first
;; argument must be callable" to be raised when generating the
;; info target; remove it (see:
;; https://github.com/executablebooks/sphinx-panels/issues/74).
((".*'sphinx_panels',.*") ""))
(invoke "make" "html" "info"
;; Don't abort on warnings; build in parallel.
(format #f "SPHINXOPTS=-j~a" (parallel-job-count)))))
(replace 'install
(lambda _
(let* ((data (string-append #$output "/share"))
(doc (string-append data "/doc/matplotlib"))
(info (string-append data "/info"))
(html (string-append doc "/html")))
(mkdir-p html)
(copy-recursively "build/html" html)
(install-file "build/texinfo/matplotlib.info" info)
;; The "matplotlib-figures" directory contains are a subset of
;; the images produced for the html target; simply create a
;; symlink to it, saving about 11 MiB.
(symlink (string-append html "/_images")
(string-append info "/matplotlib-figures"))))))))
(native-inputs
(list graphviz
inkscape/stable
python-colorspacious
python-mpl-sphinx-theme
python-scipy
python-sphinx
python-sphinx-copybutton
python-sphinx-gallery
python-sphinxcontrib-svg2pdfconverter
python-numpydoc
python-ipython
python-ipywidgets
texlive-amsfonts
texlive-amsmath
texlive-babel
texlive-fontspec
texlive-unicode-math
texlive-etoolbox
texlive-latex-expdlist
texlive-underscore
texlive-latex-type1cm
texlive-times
texinfo))
(synopsis "Documentation for the @code{python-matplotlib} package")))
(define-public python-matplotlib-inline
(package
(name "python-matplotlib-inline")
(version "0.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "matplotlib-inline" version))
(sha256
(base32 "1vilzwj3xp00mxprmmn1hlafm3p23vn56s46kx3ra4qd5signjx0"))))
(build-system python-build-system)
(propagated-inputs
(list python-matplotlib python-traitlets))
(arguments
;; Tests disabled because of a circular dependency with ipython.
`(#:tests? #f))
(home-page "https://github.com/ipython/matplotlib-inline")
(synopsis "Inline Matplotlib backend for Jupyter")
(description
"This package provides a Matplotlib inline back-end for IPython and
Jupyter.")
(license license:bsd-3)))
(define-public python-matplotlib-venn
(package
(name "python-matplotlib-venn")
(version "0.11.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "matplotlib-venn" version ".zip"))
(sha256
(base32
"13w3i1wih0mij08hrgppzg0g9z50y54rc28l6gdi1r5w45l7l0dy"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; tests are not included
(propagated-inputs
(list python-matplotlib python-numpy python-scipy))
(native-inputs
(list unzip))
(home-page "https://github.com/konstantint/matplotlib-venn")
(synopsis "Plot area-proportional Venn diagrams")
(description
"This package provides tools for plotting area-proportional two- and
three-way Venn diagrams in @code{matplotlib}.")
(license license:expat)))
(define-public python-pysnptools
(package
(name "python-pysnptools")
(version "0.4.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pysnptools" version))
(sha256
(base32
"0gxr0bjix307wvk0qh7vkafbxbzfpdmq0wlswpxyyaymy0fwcypv"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; no test data are included
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(if tests?
(begin
(add-installed-pythonpath inputs outputs)
(invoke "python3" "pysnptools/test.py"))
#t))))))
(propagated-inputs
(list python-dill
python-h5py
python-numpy
python-pandas
python-psutil
python-scipy))
(native-inputs
(list python-cython))
(home-page "http://microsoftgenomics.github.io/PySnpTools/")
(synopsis "Library for reading and manipulating genetic data")
(description
"PySnpTools is a library for reading and manipulating genetic data. It
can, for example, efficiently read whole PLINK *.bed/bim/fam files or parts of
those files. It can also efficiently manipulate ranges of integers using set
operators such as union, intersection, and difference.")
(license license:asl2.0)))
(define-public python-pykdtree
(package
(name "python-pykdtree")
(version "1.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pykdtree" version))
(sha256
(base32 "0p8n2ljdacfixkiw092974dmhy4s1c0h032ii1z9kwi9h5h5rgmy"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/storpipfugl/pykdtree")
(synopsis "Fast kd-tree implementation with OpenMP-enabled queries")
(description
"@code{pykdtree} is a kd-tree implementation for fast nearest neighbour
search in Python.")
(license license:lgpl3+)))
(define-public python-wurlitzer
(package
(name "python-wurlitzer")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wurlitzer" version))
(sha256
(base32 "0hvmbc41kdwrjns8z1s4a59a4azdvzb8q3vs7nn1li4qm4l0g3yh"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv" "test.py"))))))
(native-inputs
(list python-mock python-pytest))
(home-page "https://github.com/minrk/wurlitzer")
(synopsis "Capture C-level output in context managers")
(description
"This library helps to redirect @code{sys.stdout} to a stream or a file
while executing some piece of code, including C code running within a Python
process.")
(license license:expat)))
(define-public python-socksipy-branch
(package
(name "python-socksipy-branch")
(version "1.01")
(source
(origin
(method url-fetch)
(uri (pypi-uri "SocksiPy-branch" version))
(sha256
(base32
"01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; There are no tests
(home-page "https://code.google.com/archive/p/socksipy-branch/")
(synopsis "Python SOCKS module")
(description
"SocksiPy - A Python SOCKS client module. It provides a
socket-like interface that supports connections to any TCP
service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
The original version was developed by Dan Haim, this is a
branch created by Mario Vilas to address some open issues,
as the original project seems to have been abandoned circa 2007.")
(license license:bsd-3)))
(define-public python-socksipychain
(package
(name "python-socksipychain")
(version "2.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pagekite/PySocksipyChain")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"02pp994qmiivkdx4y6az5q80l6rzy8g6d2ipvp7kns7lsxvmc2y7"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; Tests try to access the network.
(propagated-inputs
(list python-six))
(home-page "http://pagekite.net/wiki/Floss/PySocksipyChain/")
(synopsis "Python SOCKS module with chained proxies support")
(description
"SocksiPyChain is a modified version of the SocksiPy SOCKS module, which
adds support for arbitrary chaining of proxy servers and various modes of
TLS/SSL encryption. It was developed for use in PageKite, and also includes
a simple netcat replacement with chaining support.")
(license license:bsd-3)))
(define-public python-pycodestyle
(package
(name "python-pycodestyle")
(version "2.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycodestyle" version))
(sha256
(base32
"0zxyrg8029lzjhima6l5nk6y0z6lm5wfp9qchz3s33j3xx3mipgd"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(home-page "https://pycodestyle.readthedocs.io/")
(synopsis "Python style guide checker")
(description "@code{pycodestyle} (formerly pep8) is a tool to check
Python code against some of the style conventions in
@url{http://www.python.org/dev/peps/pep-0008/,PEP 8}.")
(license license:expat)))
(define-public python-pycodestyle-2.6
(package
(inherit python-pycodestyle)
(version "2.6.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pycodestyle" version))
(sha256
(base32
"0bhr6ia0hmgx3nhgibc9pmkzhlh1zcqk707i5fbxgs702ll7v2n5"))))))
(define-public python-multidict
(package
(name "python-multidict")
(version "5.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "multidict" version))
(sha256
(base32
"1kjrxav572j45xvr1iy60zb2g8zqvrinzdkl4ax36js4vczckl8d"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-vv")
(format #t "test suite not run~%")))))))
(native-inputs
(list python-pytest python-pytest-cov))
(home-page "https://github.com/aio-libs/multidict/")
(synopsis "Multidict implementation")
(description "Multidict is dict-like collection of key-value pairs
where key might be occurred more than once in the container.")
(license license:asl2.0)))
(define-public python-orderedmultidict
(package
(name "python-orderedmultidict")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "orderedmultidict" version))
(sha256
(base32
"1bc2v0yflsxjyyjx4q9wqx0j3bvzcw9z87d5pz4iqac7bsxhn1q4"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(native-inputs
(list python-flake8 python-pycodestyle))
(home-page "https://github.com/gruns/orderedmultidict")
(synopsis "Python Ordered Multivalue Dictionary - omdict")
(description "This package contains a library for ordered multivalue
dictionaries. A multivalue dictionary is a dictionary that can store
multiple values for the same key. An ordered multivalue dictionary is a
multivalue dictionary that retains the order of insertions and deletions.")
(license license:unlicense)))
(define-public python-autocommand
(package
(name "python-autocommand")
(version "2.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "autocommand" version))
(sha256
(base32 "03qp9xx4dq81ljhf56r21gp5j0lpqs1vaw99g0d84i97s3lj1m7y"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; This test fails with an invalid syntax error on 'task1 =
;; asyncio.async(coro_1())' (see:
;; https://github.com/Lucretiel/autocommand/issues/20).
(delete-file "test/test_autoasync.py")
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest python-pytest-asyncio))
(home-page "https://github.com/Lucretiel/autocommand")
(synopsis "Python library to build a command-line from a function")
(description "@code{autocommand} is library to automatically generate and
run simple @code{argparse} parsers from function signatures.")
(license license:lgpl3+)))
(define-public python-autopage
(package
(name "python-autopage")
(version "0.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "autopage" version))
(sha256
(base32
"169ixll1ncm2a2pcc86665ikjv2lrzs10p6c1w4yj55p3gk3xgh1"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'disable-e2e-tests
(lambda _
;; These tests rely on KeyboardInterrupts which do not
;; work in the build container.
(delete-file "autopage/tests/test_end_to_end.py"))))))
(native-inputs
(list python-pypa-build
python-setuptools
python-wheel
;; For tests.
python-fixtures
python-pytest
python-testtools))
(home-page "https://github.com/zaneb/autopage")
(synopsis "Automatic paging for console output")
(description
"Autopage is a Python library to automatically display terminal output
from a program in a @dfn{pager} such as @command{less}.")
(license license:asl2.0)))
(define-public python-autopep8
(package
(name "python-autopep8")
(version "1.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "autopep8" version))
(sha256
(base32
"1w6vh627vrmgfbvrdcxrc3k4gxcldrb2lpgxv9irkdds851qrzb0"))))
(build-system python-build-system)
(propagated-inputs
(list python-pycodestyle python-toml))
(home-page "https://github.com/hhatto/autopep8")
(synopsis "Format Python code according to the PEP 8 style guide")
(description
"@code{autopep8} automatically formats Python code to conform to
the PEP 8 style guide. It uses the pycodestyle utility to determine
what parts of the code needs to be formatted. @code{autopep8} is
capable of fixing most of the formatting issues that can be reported
by pycodestyle.")
(license (license:non-copyleft
"https://github.com/hhatto/autopep8/blob/master/LICENSE"))))
(define-public python-distlib
(package
(name "python-distlib")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "distlib" version ".zip"))
(sha256
(base32
"1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'no-/bin/sh
(lambda _
(substitute* '("distlib/scripts.py" "tests/test_scripts.py")
(("/bin/sh") (which "sh")))
#t))
(add-before 'check 'prepare-test-env
(lambda _
(setenv "HOME" "/tmp")
;; NOTE: Any value works, the variable just has to be present.
(setenv "SKIP_ONLINE" "1")
#t)))))
(native-inputs (list unzip))
(home-page "https://bitbucket.org/pypa/distlib")
(synopsis "Distribution utilities")
(description "Distlib is a library which implements low-level functions that
relate to packaging and distribution of Python software. It is intended to be
used as the basis for third-party packaging tools.")
(license license:psfl)))
(define-public python-distutils-extra
(package
(name "python-distutils-extra")
(version "2.38")
(source
(origin
(method url-fetch)
(uri (string-append "https://launchpad.net/python-distutils-extra/trunk/"
version "/+download/python-distutils-extra-"
version ".tar.gz"))
(sha256
(base32
"0lx15kcbby9zisx33p2h5hgakgwh2bvh0ibag8z0px4j6ifhs41x"))))
(build-system python-build-system)
(home-page "https://launchpad.net/python-distutils-extra/")
(synopsis "Enhancements to Python's distutils")
(description
"The python-distutils-extra module enables you to easily integrate
gettext support, themed icons, and scrollkeeper-based documentation into
Python's distutils.")
(license license:gpl2)))
(define-public python-olefile
(package
(name "python-olefile")
(version "0.46")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/decalage2/olefile/releases/"
"download/v" version "/olefile-" version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1kjxh4gr651hpqkjfv89cfzr40hyvf3vjlda7mifiail83j7j07m"))))
(build-system python-build-system)
(home-page "https://www.decalage.info/python/olefileio")
(synopsis "Read and write Microsoft OLE2 files")
(description
"@code{olefile} can parse, read and write Microsoft OLE2 files (Structured
Storage or Compound Document, Microsoft Office). It is an improved version of
the OleFileIO module from PIL, the Python Image Library.")
(license license:bsd-3)))
(define-public python-pypdf3
(package
(name "python-pypdf3")
(version "1.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyPDF3" version))
(sha256
(base32 "018hlq9q2qa96vw4j7ppq352znykldwy98h2w9qcpkvpi93sjqhc"))))
(build-system python-build-system)
(propagated-inputs
(list python-tqdm))
(home-page "https://github.com/sfneal/PyPDF3")
(synopsis "Utility to read and write PDFs with Python")
(description "PyPDF3 is a pure-python PDF library capable of splitting,
merging together, cropping, and transforming the pages of PDF files. It can
also add custom data, viewing options, and passwords to PDF files. It can
retrieve text and metadata from PDFs as well as merge entire files together.")
(license license:bsd-3)))
(define-public python-pikepdf
(package
(name "python-pikepdf")
(version "2.16.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pikepdf" version))
(sha256
(base32 "1phdpi9cm2pbvgcxqvwr8ck327sxhdw4dnxmzhrbf7hzydmgykg2"))))
(build-system python-build-system)
(arguments
`(#:tests? #false)) ;require python-xmp-toolkit
(native-inputs
(list pybind11
python-setuptools
python-setuptools-scm
python-setuptools-scm-git-archive
python-toml
python-wheel))
(inputs
(list qpdf))
(propagated-inputs
(list python-lxml python-pillow))
(home-page "https://github.com/pikepdf/pikepdf")
(synopsis "Read and write PDFs with Python")
(description
"pikepdf is a Python library for reading and writing PDF files.")
(license license:mpl2.0)))
(define-public python-pillow
(package
(name "python-pillow")
(version "9.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "Pillow" version))
(sha256
(base32
"011wgm1mssjchpva9wsi2a07im9czyjvik137xlp5f0g7vykdrkm"))
(modules '((guix build utils)))
(snippet '(begin
(delete-file-recursively "src/thirdparty")))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(inputs (list freetype
lcms
libjpeg-turbo
libtiff
libwebp
openjpeg
zlib))
(propagated-inputs (list python-olefile))
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-ldconfig
(lambda _
(substitute* "setup.py"
(("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
(replace 'check
(lambda* (#:key outputs inputs tests? #:allow-other-keys)
(when tests?
(setenv "HOME"
(getcwd))
(add-installed-pythonpath inputs outputs)
(invoke "python" "selftest.py" "--installed")
(invoke "python" "-m" "pytest" "-vv")))))))
(home-page "https://python-pillow.org")
(synopsis "Fork of the Python Imaging Library")
(description
"The Python Imaging Library adds image processing capabilities to your
Python interpreter. This library provides extensive file format support, an
efficient internal representation, and fairly powerful image processing
capabilities. The core image library is designed for fast access to data
stored in a few basic pixel formats. It should provide a solid foundation for
a general image processing tool.")
(properties `((cpe-name . "pillow")))
(license (license:x11-style
"http://www.pythonware.com/products/pil/license.htm"
"The PIL Software License"))))
(define-public python-pillow-2.9
(package
(inherit python-pillow)
(version "2.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Pillow" version))
(sha256
(base32
"0ada7lf3lmbdsqm3b7ja920p1pllyfhmqndr85ikpj77fmz9s5qg"))))
(arguments
(substitute-keyword-arguments (package-arguments python-pillow)
((#:tests? _ #f) #f)))
(properties '((hidden? #t)))))
(define-public python-pillow-simd
(package
(inherit python-pillow)
(name "python-pillow-simd")
(version "9.0.0.post1")
;; The PyPI tarball does not include test files.
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/uploadcare/pillow-simd")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1dnvsln451aw3qy2cxg2ndd5mcanf5nrhxw9l7mcam730635hdm9"))))
(inputs
(modify-inputs (package-inputs python-pillow)
(prepend libraqm libimagequant)))
(home-page "https://github.com/uploadcare/pillow-simd")
(synopsis "Fork of the Python Imaging Library (Pillow)")
(description "This package is a fork of Pillow which adds support for SIMD
parallelism.")))
(define-public python-imagecodecs
(package
(name "python-imagecodecs")
(version "2021.3.31")
(source
(origin
(method url-fetch)
(uri (pypi-uri "imagecodecs" version))
(sha256
(base32
"0q7pslb6wd56vbcq2mdxwsiha32mxjr7mgqqfbq5w42q601p9pi0"))
(modules '((guix build utils)))
(snippet
'(begin
;; Unbundle 3rd party modules.
(delete-file-recursively "3rdparty")
;; Delete pre-generated Cython files.
(for-each delete-file (find-files "imagecodecs" "_.*\\.c$"))
#t))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Tests are disabled, because dependencies are missing.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'create-configuration
(lambda* (#:key inputs #:allow-other-keys)
;; By default everything is enabled. We can selectively disable
;; extensions (and thus dependencies) by deleting them from the
;; EXTENSIONS dictionary. This is upstream’s preferred way.
(call-with-output-file "imagecodecs_distributor_setup.py"
(lambda (port)
(format port "\
def customize_build(EXTENSIONS, OPTIONS):
del EXTENSIONS['aec']
del EXTENSIONS['avif']
del EXTENSIONS['bitshuffle']
del EXTENSIONS['deflate']
del EXTENSIONS['jpeg2k']
del EXTENSIONS['jpeg12']
del EXTENSIONS['jpegls']
del EXTENSIONS['jpegxl']
del EXTENSIONS['jpegxr']
del EXTENSIONS['lerc']
del EXTENSIONS['ljpeg']
del EXTENSIONS['lzf']
del EXTENSIONS['zfp']
del EXTENSIONS['zopfli']
OPTIONS['cythonize']
")))))
;; XXX: The installed scripts import packages that depend on
;; this package; disable import check to avoid the cycle.
(delete 'sanity-check))))
(inputs
(list c-blosc
giflib
brotli
libjpeg-turbo
libpng
libtiff
libwebp
lz4
snappy
xz
zlib
`(,zstd "lib")))
(propagated-inputs
;; For the Python library.
(list python-numpy))
(native-inputs
;; For building.
(list python-cython
;; For testing. Incomplete.
;("python-numcodecs" ,python-numcodecs)
;("python-zarr" ,python-zarr)
;("python-pytest" ,python-pytest)
))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis
"Image transformation, compression, and decompression codecs")
(description
"Imagecodecs is a Python library that provides block-oriented, in-memory
buffer transformation, compression, and decompression functions for use in the
tifffile, czifile, and other scientific image input/output modules.")
(license license:bsd-3)))
(define-public python-property-manager
(package
(name "python-property-manager")
(version "3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "property-manager" version))
(sha256
(base32 "0m3w4spr8f39xnm65naw29ncal4r453kn7ndqb63rwbsmslnvrwk"))))
(build-system python-build-system)
(native-inputs
(list python-pytest-cov))
(propagated-inputs
(list python-verboselogs
python-humanfriendly
python-coloredlogs))
(home-page "https://github.com/xolox/python-property-manager")
(synopsis "Useful property variants for Python programming")
(description "The @code{property-manager} package defines several custom
property variants for Python programming including required properties,
writable properties, cached properties, etc.")
(license license:expat))) ; MIT license
(define-public python-executing
(package
(name "python-executing")
(version "0.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "executing" version))
(sha256
(base32 "08q0xh9fd8k41sqpp23q6fb9bf7yj4y2q6sv30pj36vvk8pg8fy2"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; TODO: tests require python-asttokens
(native-inputs
(list python-setuptools-scm python-toml))
(home-page "https://github.com/alexmojaki/executing")
(synopsis "Get information about what a Python frame is currently doing")
(description "This package lets you get information about what a frame is
currently doing, particularly the AST node being executed.")
(license license:expat)))
(define-public python-executor
(package
(name "python-executor")
(version "23.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "executor" version))
(sha256
(base32 "0g83yr54j0vcwhy6h7n0jsd7q0q630kwa6v9kqzlzrm9xj6c3ip1"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; TODO: tests require root/sudo
(propagated-inputs
(list python-six
python-property-manager
python-fasteners
python-virtualenv))
(home-page "https://github.com/xolox/python-executor")
(synopsis "Programmer friendly subprocess wrapper")
(description "The @code{executor} package is a simple wrapper for Python’s
subprocess module that makes it very easy to handle subprocesses on UNIX
systems with proper escaping of arguments and error checking currently doing,
particularly the AST node being executed.")
(license license:expat))) ; MIT license
(define-public python-roifile
(package
(name "python-roifile")
(version "2020.11.28")
(source
(origin
(method url-fetch)
(uri (pypi-uri "roifile" version))
(sha256
(base32
"04argnc7qccybkrj9ww18bf81ghsghhh93hnqy3p111rcdlyn66p"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; there are none
(propagated-inputs
(list python-numpy))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis "Read and write ImageJ ROI format")
(description "Roifile is a Python library to read, write, create, and plot
ImageJ ROIs, an undocumented and ImageJ application specific format to store
regions of interest, geometric shapes, paths, text, etc for image overlays.")
(license license:bsd-3)))
(define-public python-tifffile
(package
(name "python-tifffile")
(version "2021.4.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tifffile" version))
(sha256
(base32
"16r0hw7shka1bqf28bv198lj2jhf2r9gy3s5zv4nf5cfsfm8pajm"))))
(build-system python-build-system)
;; Tests require lfdfiles, which depends on tifffile
(arguments `(#:tests? #f))
(propagated-inputs
(list python-numpy python-imagecodecs))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis "Read and write TIFF(r) files")
(description "This package lets you read image and metadata from many
bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, SGI,
NIH, ImageJ, MicroManager, MD GEL, and FluoView files. It also lets you write
numpy arrays to TIFF, BigTIFF, and ImageJ hyperstack compatible files.")
(license license:bsd-3)))
(define-public python-lfdfiles
(package
(name "python-lfdfiles")
(version "2021.2.22")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lfdfiles" version))
(sha256
(base32
"12fxm4v805dgjrih7x6jnl1wd7y7jw1rkhjs3d4am8s6qk1cbar2"))
(modules '((guix build utils)))
(snippet
'(begin
;; Delete pre-generated Cython files.
(for-each delete-file (find-files "lfdfiles" "_.*\\.c$"))
#t))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; No tests exist, despite a test dependency on pytest.
(propagated-inputs
(list python-click python-numpy python-tifffile))
(native-inputs (list python-cython))
(home-page "https://www.lfd.uci.edu/~gohlke/")
(synopsis "Work with LFD data files")
(description
"Lfdfiles is a Python library and console script for reading, writing,
converting, and viewing many of the proprietary file formats used to store
experimental data and metadata at the Laboratory for Fluorescence Dynamics.")
(license license:bsd-3)))
(define-public python-imageio
(package
(name "python-imageio")
(version "2.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "imageio" version))
(sha256
(base32
"1ksjl523fm0fikrd85llxfba35rc1qsgwadgr6mbn9kis79xcpzv"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; many tests require online data
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key outputs inputs tests? #:allow-other-keys)
(if tests?
(begin
;; Make installed package available for running the tests.
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv"))
#t))))))
(propagated-inputs
(list python-numpy python-pillow python-psutil))
(native-inputs
(list python-pytest))
(home-page "https://imageio.github.io/")
(synopsis "Library for reading and writing a wide range of image data")
(description
"Imageio is a Python library that provides an easy interface to read and
write a wide range of image data, including animated images, video, volumetric
data, and scientific formats.")
(license license:bsd-2)))
(define-public python-pyvips
(package
(name "python-pyvips")
(version "2.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyvips" version))
(sha256
(base32 "1dfbwwvnnsk4g2kj1pw654z9jq3mb72l1m8ma29858jpn12vn7dm"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
;; Maybe switch to API mode (i.e., build the C extension)?
;; It is advertised as faster to start up and run.
;; However, even with ‘pkg-config’ and ‘python-pkgconfig’ in
;; ‘native-inputs’, the API mode build fails with:
;;
;; Falling back to ABI mode. Details: unable to find pkg-config package "vips"
;;
;; The build doesn't actually fail without the below
;; substitution, it's just slower because ‘setup.py’ tries
;; (unsuccessfully) to download the Python ‘pkgconfig’ module.
(add-after 'unpack 'fix-build
(lambda _
(substitute* "setup.py"
(("^( +setup_)API\\(\\)\n" _ prefix)
(string-append prefix "ABI()\n")))))
(add-after 'unpack 'fix-paths
(lambda _
(substitute* "pyvips/__init__.py"
(("^( +_vips_libname) = '(libvips.so.42)'"
_ var libname)
(format #f "~a = '~a/lib/~a'"
var #$(this-package-input "vips") libname))
(("^( +_gobject_libname) = '(libgobject-2.0.so.0)'"
_ var libname)
(format #f "~a = '~a/lib/~a'"
var #$(this-package-input "glib") libname)))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "setup.py" "test")))))))
(native-inputs
(list python-pyperf
python-pytest
python-pytest-flake8
python-pytest-runner))
(inputs
(list glib vips))
(propagated-inputs
(list python-cffi))
(home-page "https://github.com/libvips/pyvips")
(synopsis "Python bindings for VIPS")
(description "The @code{pyvips} package provides Python bindings for VIPS,
a multithreaded image-processing system with low memory needs.")
(license license:expat)))
(define-public python-pycparser
(package
(name "python-pycparser")
(version "2.21")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycparser" version))
(sha256
(base32
"01kjlyn5w2nn2saj8w1rhq7v26328pd91xwgqn32z1zp2bngsi76"))))
(outputs '("out" "doc"))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-m" "unittest" "discover")))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
(doc (string-append data "/doc/" ,name "-" ,version))
(examples (string-append doc "/examples")))
(mkdir-p examples)
(for-each (lambda (file)
(copy-file (string-append "." file)
(string-append doc file)))
'("/README.rst" "/CHANGES" "/LICENSE"))
(copy-recursively "examples" examples)))))))
(home-page "https://github.com/eliben/pycparser")
(synopsis "C parser in Python")
(description
"Pycparser is a complete parser of the C language, written in pure Python
using the PLY parsing library. It parses C code into an AST and can serve as
a front-end for C compilers or analysis tools.")
(license license:bsd-3)))
(define-public python2-pycparser
(package-with-python2 python-pycparser))
(define-public python-xlsxwriter
(package
(name "python-xlsxwriter")
(version "3.0.3")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/jmcnamara/XlsxWriter")
(commit (string-append "RELEASE_" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lr7mmik6r4zns069i4zfx1cnwhz6snmlh2zsiry0cwx8cv33wpm"))))
(build-system python-build-system)
(home-page "https://github.com/jmcnamara/XlsxWriter")
(synopsis "Python module for creating Excel XLSX files")
(description
"XlsxWriter is a Python module that can be used to write text, numbers,
formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
(license license:bsd-2)))
(define-public python-pywavelets
(package
(name "python-pywavelets")
(version "1.2.0")
(home-page "https://github.com/PyWavelets/pywt")
(source (origin
(method url-fetch)
(uri (pypi-uri "PyWavelets" version))
(sha256
(base32
"13csbr6ls9q9ww53z2xwwsj0hpsz88rj2iwp623h0kmv8yq6kgbc"))
(snippet
#~(begin
(use-modules ((guix build utils)))
(for-each delete-file
(list
"pywt/_extensions/_cwt.c"
"pywt/_extensions/_dwt.c"
"pywt/_extensions/_pywt.c"
"pywt/_extensions/_pywt.h"
"pywt/_extensions/_swt.c"))))))
(build-system python-build-system)
(arguments
'(#:modules ((ice-9 ftw)
(srfi srfi-1)
(srfi srfi-26)
(guix build utils)
(guix build python-build-system))
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(let ((cwd (getcwd))
(libdir (find (cut string-prefix? "lib." <>)
(scandir "build"))))
(with-directory-excursion (string-append cwd "/build/" libdir)
(invoke "pytest" "-vv"))))))))
(native-inputs
(list python-cython
python-matplotlib ;for tests
python-pytest))
(propagated-inputs
(list python-numpy))
(synopsis "Wavelet transforms in Python")
(description
"PyWavelets is a library for wavelet transforms in Python. Wavelets are
mathematical basis functions that are localized in both time and frequency.
Wavelet transforms are time-frequency transforms employing wavelets. They are
similar to Fourier transforms, the difference being that Fourier transforms are
localized only in frequency instead of in time and frequency.")
(license license:expat)))
(define-public python-pywal
(package
(name "python-pywal")
(version "3.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dylanaraps/pywal")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "039m7dch479hlwddynacdrr0klz6a5bdly5swqbs94hfimficiyf"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-home-directory
(lambda _
;; Tests fail with "Permission denied: '/homeless-shelter'".
(setenv "HOME" "/tmp")
#t)))))
(inputs
(list imagemagick))
(home-page "https://github.com/dylanaraps/pywal")
(synopsis "Color palette generator and applicator")
(description
"Pywal is a tool that generates a color palette from the dominant colors
in an image. It then applies the colors system-wide and on-the-fly in all of
your favourite programs.")
(license license:expat)))
(define-public python-click-didyoumean
(package
(name "python-click-didyoumean")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "click-didyoumean" version))
(sha256
(base32 "0dc0xrmqbw0idpx843ahzzvivmvx3fcfsm3k54lnssyra7cg117i"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests in PyPI and no setup.py in github
(propagated-inputs
(list python-click))
(home-page "https://github.com/timofurrer/click-didyoumean")
(synopsis "Git-like did-you-mean feature in Click")
(description
"This plugin enables git-like did-you-mean feature in Click.")
(license license:expat)))
(define-public python-pywinrm
(package
(name "python-pywinrm")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pywinrm" version))
(sha256
(base32
"10gabhhg3rgacd5ahmi2r128z99fzbrbx6mz1nnq0dxmhmn5rpjf"))))
(build-system python-build-system)
(propagated-inputs
(list python-six python-requests_ntlm python-xmltodict
python-kerberos))
(native-inputs
(list python-mock python-pytest))
(home-page "https://github.com/diyan/pywinrm/")
(synopsis
"Python library for Windows Remote Management (WinRM)")
(description
"pywinrm is a Python client for the Windows Remote Management (WinRM)
service. It allows you to invoke commands on target Windows machines from
any machine that can run Python.")
(license license:expat)))
(define-public python-xcffib
(package
(name "python-xcffib")
(version "0.11.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xcffib" version))
(sha256
(base32
"0nkglsm9nbhv238iagmmsjcz6lf1yfdvp5kmspphdj385vz9r50j"))))
(build-system python-build-system)
(inputs
(list libxcb))
(propagated-inputs
(list python-cffi ; used at run time
python-six))
(arguments
`(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-libxcb-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((libxcb (assoc-ref inputs "libxcb")))
(substitute* '("xcffib/__init__.py")
(("soname = ctypes.util.find_library.*xcb.*")
(string-append "soname = \"" libxcb "/lib/libxcb.so\"\n")))
#t)))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let ((doc (string-append (assoc-ref outputs "out") "/share"
"/doc/" ,name "-" ,version)))
(mkdir-p doc)
(copy-file "README.md"
(string-append doc "/README.md"))
#t))))))
(home-page "https://github.com/tych0/xcffib")
(synopsis "XCB Python bindings")
(description
"Xcffib is a replacement for xpyb, an XCB Python bindings. It adds
support for Python 3 and PyPy. It is based on cffi.")
(license license:expat)))
(define-public python-cairocffi
(package
(name "python-cairocffi")
(version "1.3.0")
(source
(origin
;; The PyPI archive does not include the documentation, so use Git.
(method git-fetch)
(uri (git-reference
(url "https://github.com/Kozea/cairocffi")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0lylyxyyd8csjhn5kxwzrcr6ick6pvvm1wclpmb5ni28jznxn7lb"))))
(build-system python-build-system)
(outputs '("out" "doc"))
(inputs
(list glib gtk+ gdk-pixbuf cairo))
(native-inputs
(list python-numpy
python-pytest
python-pytest-cov
python-pytest-runner
python-sphinx
python-sphinx-rtd-theme))
(propagated-inputs
(list python-xcffib)) ; used at run time
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "cairocffi/__init__.py"
;; Hack the dynamic library loading mechanism.
(("find_library\\(library_name\\)")
"\"found\"")
(("filenames = \\(library_filename,\\) \\+ filenames")
"pass")
(("libcairo.so.2")
(search-input-file inputs "/lib/libcairo.so.2")))
(substitute* "cairocffi/pixbuf.py"
(("libgdk_pixbuf-2.0.so.0")
(search-input-file inputs "/lib/libgdk_pixbuf-2.0.so.0"))
(("libgobject-2.0.so.0")
(search-input-file inputs "/lib/libgobject-2.0.so.0"))
(("libglib-2.0.so.0")
(search-input-file inputs "/lib/libglib-2.0.so.0"))
(("libgdk-3.so.0")
(search-input-file inputs "/lib/libgdk-3.so.0")))))
(add-after 'unpack 'disable-linters
;; Their check fails; none of our business.
(lambda _
(substitute* "setup.cfg"
((".*pytest-flake8.*") "")
((".*pytest-isort.*") "")
(("--flake8") "")
(("--isort") ""))
#t))
(add-after 'install 'install-doc
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
(doc (string-append data "/doc/" ,name "-" ,version))
(html (string-append doc "/html")))
(setenv "LD_LIBRARY_PATH"
(string-append (assoc-ref inputs "cairo") "/lib" ":"
(assoc-ref inputs "gdk-pixbuf") "/lib"))
(setenv "LANG" "en_US.UTF-8")
(mkdir-p html)
(for-each (lambda (file)
(copy-file (string-append "." file)
(string-append doc file)))
'("/README.rst" "/NEWS.rst"))
(system* "python" "setup.py" "build_sphinx")
(copy-recursively "docs/_build/html" html)
#t))))))
(home-page "https://github.com/Kozea/cairocffi")
(synopsis "Python bindings and object-oriented API for Cairo")
(description
"Cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of
Python bindings and object-oriented API for cairo. Cairo is a 2D vector
graphics library with support for multiple backends including image buffers,
PNG, PostScript, PDF, and SVG file output.")
(license license:bsd-3)))
(define-public python-decorator
(package
(name "python-decorator")
(version "5.0.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "decorator" version))
(sha256
(base32 "1mcy64hllgm938v8k1x2a4g0q9swsnrfnsvhz59kr28a6ajgpv3j"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/decorator/")
(synopsis "Python module to simplify usage of decorators")
(description
"The aim of the decorator module is to simplify the usage of decorators
for the average programmer, and to popularize decorators usage giving examples
of useful decorators, such as memoize, tracing, redirecting_stdout, locked,
etc. The core of this module is a decorator factory.")
(license license:expat)))
(define-public python-drmaa
(package
(name "python-drmaa")
(version "0.7.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "drmaa" version))
(sha256
(base32 "0xzqriqyvk5b8hszbavsyxd29wm3sxirm8zvvdm73rs2iq7w4hkx"))))
(build-system python-build-system)
;; The test suite requires libdrmaa which is provided by the cluster
;; environment. At runtime the environment variable DRMAA_LIBRARY_PATH
;; should be set to the path of the libdrmaa library.
(arguments
'(#:tests? #f
#:phases (modify-phases %standard-phases
;; Loading the library fails because DRMAA_LIBRARY_PATH
;; is not configured.
(delete 'sanity-check))))
(home-page "https://pypi.org/project/drmaa/")
(synopsis "Python bindings for the DRMAA library")
(description
"A Python package for Distributed Resource Management (DRM) job
submission and control. This package is an implementation of the DRMAA 1.0
Python language binding specification.")
(license license:bsd-3)))
(define-public python-grako
(package
(name "python-grako")
(version "3.99.9")
(source
(origin
(method url-fetch)
(uri
(pypi-uri "grako" version ".zip"))
(sha256
(base32
"0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
(native-inputs
(list unzip python-pytest python-pytest-runner))
(home-page "https://bitbucket.org/neogeny/grako")
(synopsis "EBNF parser generator")
(description
"Grako takes a grammar in a variation of EBNF as input, and outputs a
memoizing PEG/Packrat parser in Python.")
(license license:bsd-3)))
(define-public python-grandalf
(package
(name "python-grandalf")
(version "0.7")
(source
(origin
;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/bdcht/grandalf")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"03p8w8ljpb87qbyldm3s6b7qi30hfcn43h33iwlgqcf31fjsyr4g"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "setup.py" "pytest"))))))
(native-inputs
(list python-pytest python-pytest-runner))
(propagated-inputs
(list python-numpy python-ply))
(home-page "https://github.com/bdcht/grandalf")
(synopsis "Graph and drawing algorithms framework")
(description
"Grandalf is a Python package made for experimentations with graphs
drawing algorithms. It is written in pure Python, and currently implements
two layouts: the Sugiyama hierarchical layout and the force-driven or energy
minimization approach. While not as fast or featured as graphviz or other
libraries like OGDF (C++), it provides a way to walk and draw graphs no larger
than thousands of nodes, while keeping the source code simple enough to tweak
and hack any part of it for experimental purpose. With a total of about 1500
lines of Python, the code involved in drawing the Sugiyama (dot) layout fits
in less than 600 lines. The energy minimization approach is comprised of only
250 lines!
Grandalf does only 2 not-so-simple things:
@itemize
@item computing the nodes (x,y) coordinates (based on provided nodes
dimensions, and a chosen layout)
@item routing the edges with lines or nurbs
@end itemize
It doesn’t depend on any GTK/Qt/whatever graphics toolkit. This means that it
will help you find where to draw things like nodes and edges, but it’s up to
you to actually draw things with your favorite toolkit.")
;; The user can choose either license.
(license (list license:gpl2 license:epl1.0))))
(define-public python-gridmap
(package
(name "python-gridmap")
(version "0.14.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pygridtools/gridmap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0v0sgpg6pz8h61f9aqjf5xk0ipr512bbz8dxzjjylksj135qr19l"))))
(build-system python-build-system)
(arguments
'(#:tests? #f ;FIXME: Requires python-cherrypy.
#:phases (modify-phases %standard-phases
;; Importing the web server module requires cherrypy, too.
(delete 'sanity-check))))
(propagated-inputs
(list python-psutil python-drmaa python-pyzmq))
(home-page "https://github.com/pygridtools/gridmap")
(synopsis "Create jobs on a cluster directly from Python")
(description
"Gridmap is a Python package to allow you to easily create jobs on the
cluster directly from Python. You can directly map Python functions onto the
cluster without needing to write any wrapper code yourself.")
(license license:gpl3+)))
(define-public python-honcho
(package
(name "python-honcho")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nickstenning/honcho")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1y0r8dw4pqcq7r4n58ixjdg1iy60lp0gxsd7d2jmhals16ij71rj"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-mock python-tox which)) ;for tests
(propagated-inputs
(list python-jinja2))
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
(lambda* (#:key outputs inputs #:allow-other-keys)
;; fix honcho path in testsuite
(substitute* "tests/conftest.py"
(("'honcho'") (string-append "'" (assoc-ref outputs "out")
"/bin/honcho" "'")))
;; It's easier to run tests after install.
;; Make installed package available for running the tests
(add-installed-pythonpath inputs outputs)
;; Skip failing test_export
(invoke "py.test" "-v" "-k" "not test_export"))))))
(home-page "https://github.com/nickstenning/honcho")
(synopsis "Manage Procfile-based applications")
(description
"A Procfile is a file which describes how to run an application
consisting of several processes. honcho starts all listed processes.
The output of all running processes is collected by honcho and
displayed.")
(license license:expat)))
(define-public python-pebble
(package
(name "python-pebble")
(version "4.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Pebble" version))
(sha256
(base32 "16siqc3brbk7dp4d9sg48bjl6a8wyy24aib3il1hf4y2624draxh"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "python" "-m" "pytest" "-sv"))))))
(home-page "https://github.com/noxdafox/pebble")
(synopsis "Threading and multiprocessing for Python")
(description
"Pebble aims to help manage threads and processes in an easier way. It
wraps Python's standard library threading and multiprocessing objects.")
(license license:lgpl3+)))
(define-public python-pexpect
(package
(name "python-pexpect")
(version "4.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pexpect" version))
(sha256
(base32 "032cg337h8awydgypz6f4wx848lw8dyrj4zy988x0lyib4ws8rgw"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'prepare-tests
(lambda _
(substitute* (find-files "tests")
(("/bin/ls") (which "ls"))
(("/bin/echo") (which "echo"))
(("/bin/which") (which "which"))
;; Many tests try to use the /bin directory which
;; is not present in the build environment.
;; Use one that's non-empty and unlikely to change.
(("/bin'") "/dev'")
;; Disable failing test. See upstream bug report
;; https://github.com/pexpect/pexpect/issues/568
(("def test_bash") "def _test_bash"))
;; XXX: Socket connection test gets "Connection reset by peer".
;; Why does it not work? Delete for now.
(delete-file "tests/test_socket.py")
#t))
(replace 'check (lambda _ (invoke "nosetests" "-v"))))))
(native-inputs
`(("python-nose" ,python-nose)
("python-pytest" ,python-pytest)
("man-db" ,man-db)
("which" ,which)
("bash-full" ,bash))) ;full Bash for 'test_replwrap.py'
(propagated-inputs
(list python-ptyprocess))
(home-page "http://pexpect.readthedocs.org/")
(synopsis "Controlling interactive console applications")
(description
"Pexpect is a pure Python module for spawning child applications;
controlling them; and responding to expected patterns in their output.
Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a
child application and control it as if a human were typing commands.")
(license license:isc)))
(define-public python-sexpdata
(package
(name "python-sexpdata")
(version "0.0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sexpdata" version))
(sha256
(base32
"1q4lsjyzzqrdv64l0pv4ij9nd8gqhvxqcrpxc2xpxs652sk2gj0s"))))
(build-system python-build-system)
(home-page "https://github.com/jd-boyd/sexpdata")
(synopsis "S-expression parser for Python")
(description
"Sexpdata is an S-expression parser/serializer. It has load and dump
functions like pickle, json or PyYAML module.")
(license license:bsd-3)))
(define-public python-pathlib2
(package
(name "python-pathlib2")
(version "2.3.7.post1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pathlib2" version))
(sha256
(base32
"0hf62d0lsf37vnr5fxqp5rfn85njgsr45j4rw71w10wbi6nyvq4z"))))
(build-system python-build-system)
(propagated-inputs
(list python-scandir python-six))
(home-page "https://pypi.org/project/pathlib2/")
(synopsis "Object-oriented file system paths")
(description "The goal of pathlib2 is to provide a backport of the
standard @code{pathlib} module which tracks the standard library module, so
all the newest features of the standard @code{pathlib} can be used also on
older Python versions.")
(license license:expat)))
(define-public python-importlib-resources
(package
(name "python-importlib-resources")
(version "3.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "importlib_resources" version))
(sha256
(base32
"1hq626mx5jl9zfl0wdrjkxsnh8qd98fqv322n68b9251xjk4bxqr"))))
(build-system python-build-system)
(native-inputs (list python-setuptools-scm python-toml))
(home-page "http://importlib-resources.readthedocs.io/")
(synopsis "Read resources from Python packages")
(description
"@code{importlib_resources} is a backport of Python 3's standard library
@code{importlib.resources} module for Python 2.7, and Python 3.")
(license license:asl2.0)))
(define-public python-importlib-metadata
(package
(name "python-importlib-metadata")
(version "4.11.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "importlib_metadata" version))
(sha256
(base32
"0f951zynlh39yicqnhrs3p1qa5p3g6ajjfcggf12y51ppxz5jk7a"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
;; XXX: PEP 517 manual build/install procedures copied from
;; python-isort.
(replace 'build
(lambda _
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "tests")))))))
(propagated-inputs (list python-zipp))
(native-inputs
(list python-pypa-build
python-pyfakefs
python-pytest
python-setuptools-scm))
(home-page "https://importlib-metadata.readthedocs.io/")
(synopsis "Read metadata from Python packages")
(description
"@code{importlib_metadata} is a library which provides an API for
accessing an installed Python package's metadata, such as its entry points or
its top-level name. This functionality intends to replace most uses of
@code{pkg_resources} entry point API and metadata API. Along with
@code{importlib.resources} in Python 3.7 and newer, this can eliminate the
need to use the older and less efficient @code{pkg_resources} package.")
(license license:asl2.0)))
(define-public python-importmagic
(package
(name "python-importmagic")
(version "0.1.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "importmagic" version))
(sha256
(base32
"1n7qxa1snj06aw45mcfz7bxc46zp7fxj687140g2k6jcnyjmfxrz"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/alecthomas/importmagic")
(synopsis "Library for adding, removing and managing Python imports")
(description
"Importmagic is a Python library for automatically managing imports by
finding unresolved symbols in Python code and their corresponding imports.")
(license license:bsd-3)))
(define-public python-inotify-simple
(package
(name "python-inotify-simple")
(version "1.3.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chrisjbillington/inotify_simple")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1dv9svrcz31acyq9smjlnw75xv3x5wpn5h6s8j8h0vrqyl3d7l05"))))
(build-system python-build-system)
(home-page
"https://github.com/chrisjbillington/inotify_simple")
(synopsis "Simple wrapper around inotify library")
(description
"@code{inotify-simple} is a simple wrapper around inotify library.")
(license license:bsd-3)))
(define-public python-jaraco-classes
(package
(name "python-jaraco-classes")
(version "3.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jaraco.classes" version))
(sha256
(base32 "0d6g7qvfv1jlzbzh6asprqdblqd59grvlvr3nwbdqdqrmwlbfm7d"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Do not test the myproject.toml build as it tries to pull
;; dependencies from the Internet.
(invoke "pytest" "-vv" "-k" "not project")))))))
(native-inputs
(list python-pytest
python-pytest-black
python-pytest-checkdocs
python-pytest-cov
python-pytest-enabler-bootstrap ;OK since not propagated
python-pytest-flake8
python-pytest-mypy
python-setuptools-scm
python-wheel))
(propagated-inputs (list python-more-itertools))
(home-page "https://github.com/jaraco/jaraco.classes")
(synopsis "Utility functions for Python class constructs")
(description "This Python library contains utility functions for Python
class constructs.")
(license license:expat)))
;;; Variant used to break a cycle with python-pytest-enabler.
(define-public python-jaraco-context-bootstrap
(hidden-package
(package
(name "python-jaraco-context-bootstrap")
(version "4.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jaraco.context" version))
(sha256
(base32 "0hbjm1rpxf4pzmbdp9rh3ali4zqnlcr8m97bhh1nizxvzcpxim7h"))))
(build-system python-build-system)
(arguments (list #:tests? #f))
(native-inputs (list python-setuptools-scm))
(home-page "https://github.com/jaraco/jaraco.context")
(synopsis "Context managers Python library")
(description "This Python library provides context managers-related
procedures.")
(license license:expat))))
(define-public python-jaraco-context
(package/inherit python-jaraco-context-bootstrap
(name "python-jaraco-context")
(arguments
(substitute-keyword-arguments
(package-arguments python-jaraco-context-bootstrap)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Do not test the myproject.toml build as it tries to pull
;; dependencies from the Internet.
(invoke "pytest" "-vv" "-k" "not project"))))))))
(native-inputs
(modify-inputs
(package-native-inputs python-jaraco-context-bootstrap)
(append python-pytest
python-pytest-black
python-pytest-checkdocs
python-pytest-cov
python-pytest-enabler-bootstrap ;OK since not propagated
python-pytest-flake8
python-pytest-mypy)))
(properties (alist-delete 'hidden? (package-properties
python-jaraco-context-bootstrap)))))
;;; Variant used to break a cycle with python-pytest-enabler.
(define-public python-jaraco-functools-bootstrap
(hidden-package
(package
(name "python-jaraco-functools-bootstrap")
(version "3.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jaraco.functools" version))
(sha256
(base32 "186xqzs3bqhjwajnprxy3sc3h0w5vdld8spc1dxjnn9720yykq1i"))))
(build-system python-build-system)
(arguments (list #:tests? #f))
(native-inputs (list python-setuptools-scm))
(propagated-inputs (list python-more-itertools))
(home-page "https://github.com/jaraco/jaraco.functools")
(synopsis "Python library extending Python's @code{functools}")
(description "This library extends the standard @code{functools} Python
module with a few extra procedures.")
(license license:expat))))
(define-public python-jaraco-functools
(package/inherit python-jaraco-functools-bootstrap
(name "python-jaraco-functools")
(arguments
(substitute-keyword-arguments
(package-arguments python-jaraco-functools-bootstrap)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Do not test the myproject.toml build as it tries to pull
;; dependencies from the Internet. Do not run a test that
;; tries to emulate a broken proprietary CI set-up, fails
;; to do so correctly, and then throws an error about it.
(invoke "pytest" "-vv" "-k"
"not project and not test_function_throttled"))))))))
(native-inputs
(modify-inputs
(package-native-inputs python-jaraco-functools-bootstrap)
(append python-jaraco-classes
python-pytest
python-pytest-black
python-pytest-checkdocs
python-pytest-cov
python-pytest-enabler-bootstrap ;OK since not propagated
python-pytest-flake8
python-pytest-mypy)))
(properties (alist-delete 'hidden? (package-properties
python-jaraco-functools-bootstrap)))))
(define-public python-jaraco-packaging
(package
(name "python-jaraco-packaging")
(version "6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jaraco.packaging" version))
(sha256
(base32
"0zimrnkh33b9g8ffw11mjh6kvs54cy5gcjw1h5cl1r7dc833dmkm"))))
(build-system python-build-system)
(propagated-inputs
(list python-pytest
python-pytest-checkdocs
python-pytest-flake8
python-rst.linker
python-setuptools
python-setuptools-scm
python-six
python-sphinx))
(home-page "https://github.com/jaraco/jaraco.packaging")
(synopsis "Tools to supplement packaging Python releases")
(description
"This package provides various tools to supplement packaging Python
releases.")
(license license:expat)))
(define-public python-simplegeneric
(package
(name "python-simplegeneric")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "simplegeneric" version ".zip"))
(sha256
(base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
(build-system python-build-system)
(native-inputs
(list unzip))
(home-page "http://cheeseshop.python.org/pypi/simplegeneric")
(synopsis "Python module for simple generic functions")
(description
"The simplegeneric module lets you define simple single-dispatch generic
functions, akin to Python’s built-in generic functions like @code{len()},
@code{iter()} and so on. However, instead of using specially-named methods,
these generic functions use simple lookup tables, akin to those used by
e.g. @code{pickle.dump()} and other generic functions found in the Python
standard library.")
(license license:zpl2.1)))
(define-public python-ipython-genutils
;; TODO: This package is retired, check if can be removed, see description.
(package
(name "python-ipython-genutils")
(version "0.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipython_genutils" version))
(sha256
(base32 "19l2pp1c64ansr89l3cqh19jdi2ixhssdzx0vz4n6r52a6i281is"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; no tests
(home-page "https://ipython.org")
(synopsis "Vestigial utilities from IPython")
(description
"This package provides retired utilities from IPython. No packages
outside IPython/Jupyter should depend on it.
This package shouldn't exist. It contains some common utilities shared by
Jupyter and IPython projects during The Big Split. As soon as possible, those
packages will remove their dependency on this, and this package will go
away.")
(license license:bsd-3)))
;;; Variant used to break a cycle with python-ipykernel.
(define-public python-ipyparallel-bootstrap
(hidden-package
(package
(name "python-ipyparallel-bootstrap")
(version "8.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipyparallel" version))
(sha256
(base32
"0wiwfd7870zbmczzn96jqxxjf2zcbcaxnsl1ddn8hspwa8y4frzj"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f
#:phases #~(modify-phases %standard-phases
;; The python-ipykernel is normally propagated but is
;; removed from this package to break the cycle.
(delete 'sanity-check))))
(propagated-inputs
(list python-dateutil
python-decorator
python-entrypoints
python-ipython
;; python-ipykernel is omitted here to break a cycle.
python-jupyter-client-bootstrap
python-psutil
python-pyzmq
python-tornado-6
python-tqdm
python-traitlets))
(home-page "https://ipython.org/")
(synopsis "Interactive Parallel Computing with IPython")
(description
"@code{ipyparallel} is a Python package and collection of CLI scripts for
controlling clusters for Jupyter. @code{ipyparallel} contains the following
CLI scripts:
@enumerate
@item ipcluster - start/stop a cluster
@item ipcontroller - start a scheduler
@item ipengine - start an engine
@end enumerate")
(license license:bsd-3))))
(define-public python-ipyparallel
(package
(inherit python-ipyparallel-bootstrap)
(name "python-ipyparallel")
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(native-inputs
(list python-ipython
python-pytest
python-pytest-asyncio
python-pytest-cov
python-pytest-tornado
python-testpath))
(propagated-inputs
(modify-inputs (package-propagated-inputs python-ipyparallel-bootstrap)
(replace "python-jupyter-client-bootstrap" python-jupyter-client)
(append python-ipykernel)))
(properties (alist-delete 'hidden? (package-properties
python-ipyparallel-bootstrap)))))
(define-public python-ipython-cluster-helper
(package
(name "python-ipython-cluster-helper")
(version "0.6.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipython-cluster-helper" version))
(sha256
(base32
"1l6mlwxlkxpbvawfwk6qffich7ahg9hq2bxfissgz6144p3k4arj"))
(modules '((guix build utils)))
(snippet
'(begin (substitute* "requirements.txt"
(("ipython.*") "ipython\n"))
#t))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Test suite can't find IPython.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(if tests?
(begin
(setenv "HOME" (getcwd))
(add-installed-pythonpath inputs outputs)
(invoke "python" "example/example.py" "--local"))
#t))))))
(propagated-inputs
(list python-ipyparallel
python-ipython
python-netifaces
python-pyzmq
python-setuptools
python-six))
(home-page "https://github.com/roryk/ipython-cluster-helper")
(synopsis
"Simplify IPython cluster start up and use for multiple schedulers")
(description
"@code{ipython-cluster-helper} creates a throwaway parallel IPython
profile, launches a cluster and returns a view. On program exit it shuts the
cluster down and deletes the throwaway profile.")
(license license:expat)))
(define-public python-ipython-sql
(package
(name "python-ipython-sql")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipython-sql" version))
(sha256
(base32 "1r6rz8jgrqzhkf2flwjw75d96g8l7kykmx5wli3q1988w96391ip"))))
(build-system python-build-system)
(arguments
(list #:tests? #f ;must run under IPython
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'permit-newer-prettytable
;; See https://github.com/catherinedevlin/ipython-sql/issues/202
(lambda _
(substitute* "setup.py"
(("prettytable<1")
"prettytable")))))))
(propagated-inputs
(list python-ipython
python-ipython-genutils
python-prettytable
python-six
python-sqlalchemy
python-sqlparse))
(home-page "https://github.com/catherinedevlin/ipython-sql")
(synopsis "RDBMS access via IPython")
(description "This library connects to a database, using SQLAlchemy URL
connect strings, then issue SQL commands within IPython or IPython Notebook.")
(license license:expat)))
(define-public python-traitlets
(package
(name "python-traitlets")
(version "5.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "traitlets" version))
(sha256
(base32
"1ivhxglsrnhqw4g98ihddn7i5f6976gpk31fijwq473wb9n4b7q5"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check (lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "traitlets")))))))
(native-inputs
(list python-pytest))
(home-page "https://ipython.org")
(synopsis "Configuration system for Python applications")
(description
"Traitlets is a framework that lets Python classes have attributes with
type checking, dynamically calculated default values, and ‘on change’
callbacks. The package also includes a mechanism to use traitlets for
configuration, loading values from files or from command line arguments. This
is a distinct layer on top of traitlets, so you can use traitlets in your code
without using the configuration machinery.")
(license license:bsd-3)))
(define-public python-jupyter-core
(package
(name "python-jupyter-core")
(version "4.10.0")
(source
(origin
(method url-fetch)
(uri (string-append (pypi-uri "jupyter_core" version)))
(sha256
(base32
"1v0s31rmwppdmww135hif03hy164j9kimirh24kxfcbvdfql9pm6"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Some tests write to $HOME.
(setenv "HOME" "/tmp")
(invoke "pytest" "-vv"
"-k"
(string-append
;; XXX: These tests fail with "ModuleNotFoundError: No
;; module named 'jupyter_core'".
"not test_argv0 and not test_path_priority "
"and not test_not_on_path")))))
(add-after 'unpack 'patch-testsuite
(lambda _
;; test_not_on_path() and test_path_priority() try to run a test
;; that loads jupyter_core, so we need GUIX_PYTHONPATH
(substitute* "jupyter_core/tests/test_command.py"
(("env = \\{'PATH': ''\\}")
"env = {'PATH': '', 'PYTHONPATH': os.environ['GUIX_PYTHONPATH']}")
(("env = \\{'PATH': str\\(b\\)\\}")
"env = {'PATH': str(b), 'PYTHONPATH': os.environ['GUIX_PYTHONPATH']}"))))
;; Migration is running whenever etc/jupyter exists, but the
;; Guix-managed directory will never contain any migratable IPython
;; config files and cannot be written to anyway, so just pretend we
;; already did that.
(add-after 'install 'disable-migration
(lambda* (#:key outputs #:allow-other-keys)
(mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
(invoke "touch"
(string-append
(assoc-ref outputs "out")
"/etc/jupyter/migrated")))))))
(propagated-inputs (list python-traitlets))
(native-inputs (list python-pytest))
;; This package provides the `jupyter` binary and thus also exports the
;; search paths.
(native-search-paths
(list (search-path-specification
(variable "JUPYTER_CONFIG_PATH")
(files '("etc/jupyter")))
(search-path-specification
(variable "JUPYTER_PATH")
(files '("share/jupyter")))))
(home-page "https://jupyter.org/")
(synopsis "Jupyter base package")
(description
"Jupyter core is the base package on which Jupyter projects rely.")
(license license:bsd-3)))
;; Bootstrap variant of jupyter-client, which breaks the loop between ipykernel
;; and jupyter-client by removing the former from its native-inputs and
;; disabling tests.
(define-public python-jupyter-client-bootstrap
(hidden-package
(package
(name "python-jupyter-client-bootstrap")
(version "7.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jupyter_client" version))
(sha256
(base32
"12pbp177bfb3710y1a5598mwn8ffhyzmpll67m0nmalb98savnwg"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-tool-file-names
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "jupyter_client/localinterfaces.py"
(("'ip'")
(format #f "'~a'" (search-input-file inputs "sbin/ip")))))))))
(inputs (list iproute))
(propagated-inputs
(list python-dateutil
python-entrypoints
python-jupyter-core
python-nest-asyncio
python-pyzmq
python-tornado-6
python-traitlets))
(home-page "https://jupyter.org/")
(synopsis "Jupyter protocol implementation and client libraries")
(description
"The @code{jupyter_client} package contains the reference implementation
of the Jupyter protocol. It also provides client and kernel management APIs
for working with kernels, and the @code{jupyter kernelspec} entrypoint for
installing @code{kernelspec}s for use with Jupyter frontends.")
(license license:bsd-3))))
(define-public python-jupyter-client
(let ((base python-jupyter-client-bootstrap))
(package
(inherit base)
(name "python-jupyter-client")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Some tests try to write to $HOME.
(setenv "HOME" "/tmp")
(invoke "pytest" "-vv"))))))))
(native-inputs
(list python-pytest
python-pytest-asyncio
python-pytest-timeout
python-async-generator
python-ipython
python-ipykernel-bootstrap))
(properties (alist-delete 'hidden? (package-properties base))))))
(define-public python-ipykernel
(package
(name "python-ipykernel")
(version "6.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipykernel" version))
(sha256
(base32 "0q5yni8h08nadsn53f957p0pjsjhwl2b2lp1hqz3jn0854z2fa0f"))))
(build-system python-build-system)
(arguments
(list
#:imported-modules `(,@%python-build-system-modules
(guix build syscalls))
#:modules '((guix build python-build-system)
(guix build syscalls)
(guix build utils)
(ice-9 match))
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(match (primitive-fork)
(0 ;child process
(set-child-subreaper!)
;; XXX: Tini provides proper PID1-like signal handling that
;; reaps zombie processes, necessary for the
;; 'test_shutdown_subprocesses' test to pass.
;; TODO: Complete https://issues.guix.gnu.org/30948.
(setenv "HOME" "/tmp")
(execlp "tini" "--" "pytest" "-vv"))
(pid
(match (waitpid pid)
((_ . status)
(unless (zero? status)
(error "`pytest' exited with status"
status)))))))))
(add-after 'install 'set-python-file-name
(lambda* (#:key inputs #:allow-other-keys)
;; Record the absolute file name of the 'python' executable in
;; 'kernel.json'.
(substitute* (string-append #$output "/share/jupyter"
"/kernels/python3/kernel.json")
(("\"python\"")
(format #f "~s" (search-input-file inputs
"/bin/python3")))))))))
(propagated-inputs
(list python-debugpy
python-ipython
python-jupyter-client ;imported at runtime during connect
python-matplotlib-inline
;;python-nest-asyncio
;;python-packaging
python-psutil
python-tornado-6
python-traitlets))
(inputs (list python)) ;for cross compilation
(native-inputs
(list python-flaky
python-ipyparallel-bootstrap
;; XXX: Our Pytest package captures its native inputs in its
;; wrapper script (such as python-nose), which is used in the code
;; and causes deprecation warnings. Using the bootstrap variant
;; avoids that.
python-pytest-bootstrap
python-pytest-timeout
tini))
(home-page "https://ipython.org")
(synopsis "IPython Kernel for Jupyter")
(description "This package provides the IPython kernel for Jupyter.")
(license license:bsd-3)))
;; Bootstrap variant of ipykernel, which uses the bootstrap jupyter-client to
;; break the cycle between ipykernel and jupyter-client.
(define-public python-ipykernel-bootstrap
(let ((parent python-ipykernel))
(hidden-package
(package
(inherit parent)
(name "python-ipykernel-bootstrap")
(arguments (list #:tests? #f
;; The package should normally propagate ipykernel,
;; left out here to break the cycle.
#:phases #~(modify-phases %standard-phases
(delete 'sanity-check))))
(native-inputs '())
(propagated-inputs
(modify-inputs (package-propagated-inputs parent)
(replace "python-jupyter-client" python-jupyter-client-bootstrap)
(append python-ipyparallel-bootstrap)))))))
(define-public python-pari-jupyter
(package
(name "python-pari-jupyter")
(version "1.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pari-jupyter" version))
(sha256
(base32
"1ikqvv335qfrhmlji0iclci6pnm2c3fvnxf031jr1d68j79g6ypd"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;no test suite
(inputs
(list pari-gp readline python-ipykernel))
(home-page "https://github.com/sagemath/pari-jupyter")
(synopsis "Jupyter kernel for PARI/GP")
(description "The package provides a PARI/GP kernel for Jupyter.")
(license license:gpl3+)))
(define-public python-backcall
(package
(name "python-backcall")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "backcall" version))
(sha256
(base32
"07jy4562lvnhkk6kfr3cphmizy88anlhmbwb8kdzlz2ypqkvzgaw"))))
(build-system python-build-system)
(home-page "https://github.com/takluyver/backcall/")
(synopsis "Specifications for callback functions passed in to an API")
(description
"If your code lets other people supply callback functions, it's important
to specify the function signature you expect, and check that functions support
that. Adding extra parameters later would break other peoples code unless
you're careful. The @code{backcall} package provides a way of specifying the
callback signature using a prototype function.")
(license license:bsd-3)))
(define-public python-pure-eval
(package
(name "python-pure-eval")
(version "0.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pure_eval" version))
(sha256
(base32 "1hwsm85cwqwh6d6x4vzcimla2865s6v19ms3ym81ganzyq534i9b"))))
(build-system python-build-system)
(native-inputs (list python-pytest python-setuptools-scm))
(home-page "https://github.com/alexmojaki/pure_eval")
(synopsis "Python library to evaluate abstract syntax tree nodes")
(description "The @code{pure_eval} Python library can safely evaluate
abstract syntax tree (AST) nodes without side effects.")
(license license:expat)))
(define-public python-asttokens
(package
(name "python-asttokens")
(version "2.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "asttokens" version))
(sha256
(base32 "1mglbkikxvnhrk3inbx0v1qzxwd38qjr6l35sn098yicy0ac2m4s"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
(native-inputs (list python-astroid python-pytest python-setuptools-scm))
(home-page "https://github.com/gristlabs/asttokens")
(synopsis "Python library to annotate abstract syntax trees")
(description "The @code{asttokens} module annotates Python abstract syntax
trees (ASTs) with the positions of tokens and text in the source code that
generated them. It makes it possible for tools that work with logical AST
nodes to find the particular text that resulted in those nodes, for example
for automated refactoring or highlighting.")
(license license:asl2.0)))
(define-public python-littleutils
(package
(name "python-littleutils")
(version "0.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "littleutils" version))
(sha256
(base32 "0vwijrylppmk0nbddqvn527r9cg3zw8d6zk6r58hslry42jf7jp6"))))
(build-system python-build-system)
(home-page "https://github.com/alexmojaki/littleutils")
(synopsis "Python utility function collection")
(description "@code{littleutils} is a small collection of Python utility
functions, useful in the context of writing unit tests among other uses.")
(license license:expat)))
(define-public python-stack-data
(package
(name "python-stack-data")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "stack_data" version))
(sha256
(base32 "04lfcj5qrn4qikjw89qbdzqwm0xm4bgm4m8rll1rafk3pm0jssa5"))))
(build-system python-build-system)
(propagated-inputs (list python-asttokens python-executing python-pure-eval))
(native-inputs
(list python-cython
python-littleutils
python-pygments
python-pytest
python-setuptools-scm
python-typeguard))
(home-page "https://github.com/alexmojaki/stack_data")
(synopsis "Python stack frame and traceback manipulation library")
(description "The @code{stack_data} Python library extracts data from
stack frames and tracebacks. Is can be used to display more useful tracebacks
than the default.")
(license license:expat)))
(define-public python-ipython
(package
(name "python-ipython")
(version "8.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipython" version ".tar.gz"))
(sha256
(base32 "1hcxa713wh3axa57412iy02rj0494ljvv6gpnls4lndc5h9yprbh"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'make-docs-reproducible
(lambda _
(substitute* "IPython/sphinxext/ipython_directive.py"
((".*import datetime") "")
((".*datetime.datetime.now\\(\\)") "")
(("%timeit") "# %timeit"))))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp/") ;required by some tests
(invoke "python" "-m" "pytest" "-vv")))))))
(inputs (list readline which))
(propagated-inputs
(list python-backcall
python-decorator
python-jedi
python-jinja2
python-jsonschema
python-matplotlib
python-matplotlib-inline
python-mistune
python-nbformat
python-numpy
python-numpydoc
python-pexpect
python-pickleshare
python-prompt-toolkit
python-pygments
python-pyzmq
python-simplegeneric
python-stack-data
python-terminado
python-traitlets))
(native-inputs
(list graphviz
pkg-config
;; For tests.
python-pytest
python-requests
python-testpath))
(home-page "https://ipython.org")
(synopsis "IPython is a tool for interactive computing in Python")
(description
"IPython provides a rich architecture for interactive computing with:
Powerful interactive shells, a browser-based notebook, support for interactive
data visualization, embeddable interpreters and tools for parallel
computing.")
(properties '((cpe-name . "ipython")))
(license license:bsd-3)))
(define-public python-ipython-documentation
(package
(inherit python-ipython)
(name "python-ipython-documentation")
(version (package-version python-ipython))
(source
(origin
(inherit (package-source python-ipython))
(patches (append (search-patches
"python-ipython-documentation-chars.patch"
"python-ipython-documentation-repro.patch")
(origin-patches (package-source python-ipython))))))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-pythonpath
(lambda _
;; Ensure this fixed (via the
;; "python-ipython-documentation-chars.patch" patch) copy of
;; IPython gets used.
(setenv "PYTHONPATH" (string-append (getcwd)))))
(add-before 'build 'configure-sphinx-for-xelatex
(lambda _
;; Use XeLaTeX instead of PDFLaTeX, as it can
;; cope with the Unicode characters present in the
;; contributors page, for example.
(substitute* "docs/source/conf.py"
(("project = 'IPython'.*" all)
(string-append all "latex_engine = 'xelatex'\n")))
;; XXX: The Sphinx-generated ipython.tex specifies the GNU
;; FreeFont font to be searched via its extension, which uses
;; kpathsea instead of fontconfig and fail (see:
;; https://github.com/sphinx-doc/sphinx/issues/10347). Create a
;; symlink to GNU FreeFont and add it to the TEXMF tree via
;; GUIX_TEXMF.
(mkdir-p "texmf-dist/fonts/opentype/public")
(symlink (string-append
#$(this-package-native-input "font-gnu-freefont")
"/share/fonts/opentype")
(string-append
(getcwd) "/"
"texmf-dist/fonts/opentype/public/gnu-freefont"))
(setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF") ":"
(getcwd) "/texmf-dist"))))
(delete 'build)
(delete 'check)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((data (string-append #$output "/share"))
(doc (string-append data "/doc/" #$name "-" #$version))
(html (string-append doc "/html"))
(info (string-append data "/info")))
(invoke "make" "-C" "docs" "info" "html" "pdf"
(string-append "SPHINXOPTS=-j"
(number->string (parallel-job-count))))
(install-file "COPYING.rst" doc)
(copy-recursively "examples" (string-append doc "/examples"))
;; Install HTML documentation.
(copy-recursively "docs/build/html" html)
;; Likewise for the PDF.
(install-file "docs/build/latex/ipython.pdf" doc)
;; Likewise for the info manual.
(install-file "docs/build/texinfo/ipython.info" info)
(symlink (string-append html "/_images")
(string-append info "/ipython-figures"))))))))
(native-inputs
(list fontconfig ;for XDG_DATA_DIRS to locate fonts
font-gnu-freefont
graphviz
python-docrepr
python-sphinx
python-sphinx-rtd-theme
texinfo
texlive-bin
texlive-polyglossia
texlive-xindy))))
(define-public python-urwid
(package
(name "python-urwid")
(version "2.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "urwid" version))
(sha256
(base32
"1bky2bra6673xx8jy0826znw6cmxs89wcwwzda8d025j3jffx2sq"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-vterm-tests
;; According to Debian these tests are cursed.
;; https://salsa.debian.org/python-team/packages/urwid/-/blob/debian/2.1.2-2/debian/changelog#L141
(lambda _
(delete-file "urwid/tests/test_vterm.py"))))))
(home-page "http://urwid.org")
(synopsis "Console user interface library for Python")
(description
"Urwid is a curses-based UI/widget library for Python. It includes many
features useful for text console applications.")
(license license:lgpl2.1+)))
(define-public python-urwid-readline
(package
(name "python-urwid-readline")
(version "0.13")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rr-/urwid_readline")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0y9k86p31mlr9rwnrbljvfgl183r5j60yaj0r3scljn1m0mlg8qg"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(propagated-inputs (list python-urwid))
(native-inputs (list python-pytest))
(home-page "https://github.com/rr-/urwid_readline")
(synopsis "Text input widget for urwid that supports readline shortcuts")
(description
"This package provides a textbox edit widget for @code{python-urwid} that
supports @code{readline} shortcuts.")
(license license:expat)))
(define-public python-textdistance
(package
(name "python-textdistance")
(version "4.2.1")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/life4/textdistance")
(commit (string-append "v." version))))
(file-name (git-file-name name version))
(sha256
(base32 "1g17i356fnny4k6hjr2ayy9k77jbvd6zzmngws2kbrnvhss1wgwf"))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-external-test
(lambda _
;; All tests in this file require external libraries.
(delete-file "tests/test_external.py")
#t)))))
(native-inputs
(list python-hypothesis
python-isort
python-numpy
python-pytest
python-pytest-runner
python-tabulate))
(home-page "https://github.com/life4/textdistance")
(synopsis "Compute distance between the two texts")
(description "@code{textdistance} is a pure Python library for comparing
distance between two or more sequences by many algorithms.")
(license license:expat)))
(define-public python-urwidtrees
(package
(name "python-urwidtrees")
(version "1.0.3")
(source
(origin
(method git-fetch)
;; package author intends on distributing via github rather than pypi:
;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
(uri (git-reference
(url "https://github.com/pazz/urwidtrees")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1y1vysx7jg0vbrarlsykhf7nmr8fc6k1fva1q3i98xq2m30s6r68"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; no tests
(propagated-inputs (list python-urwid))
(native-inputs (list python-mock))
(home-page "https://github.com/pazz/urwidtrees")
(synopsis "Tree widgets for urwid")
(description "Urwidtrees is a Widget Container API for the @code{urwid}
toolkit. Use it to build trees of widgets.")
(license license:gpl3+)))
(define-public python-ua-parser
(package
(name "python-ua-parser")
(version "0.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ua-parser" version))
(sha256
(base32
"0csh307zfz666kkk5idrw3crj1x8q8vsqgwqil0r1n1hs4p7ica7"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;no test suite in release
(native-inputs
(list python-pyyaml))
(home-page "https://github.com/ua-parser/uap-python")
(synopsis "User agent parser")
(description
"@code{ua-parser} is a Python port of Browserscope's user agent parser.")
(license license:asl2.0)))
(define-public python-user-agents
(package
(name "python-user-agents")
(version "2.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "user-agents" version))
(sha256
(base32
"09mddriffm9rkwr30081fy9n3cn976ms8pwc8p8hhlxnilbjavfk"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;missing devices.json test file in release
(propagated-inputs
(list python-ua-parser))
(home-page "https://github.com/selwin/python-user-agents")
(synopsis "User Agent strings parsing library")
(description
"A library to identify devices (phones, tablets) and their capabilities by
parsing (browser/HTTP) user agent strings.")
(license license:expat)))
(define-public python-pydbus
(package
(name "python-pydbus")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pydbus" version))
(sha256
(base32 "0b0gipvz7vcfa9ddmwq2jrx16d4apb0hdnl5q4i3h8jlzwp1c1s2"))))
(build-system python-build-system)
(propagated-inputs (list python-pygobject))
(home-page "https://github.com/LEW21/pydbus")
(synopsis "Pythonic D-Bus library")
(description "Pydbus provides a pythonic interface to the D-Bus
message bus system. Pydbus can be used to access remote objects and
also for object publication. It is based on PyGI, the Python GObject
Introspection bindings, which is the recommended way to use GLib from Python.")
(license license:lgpl2.1+)))
(define-public python-dbus
(package
(name "python-dbus")
(version "1.2.18")
(source
(origin
(method url-fetch)
(uri (string-append "https://dbus.freedesktop.org/releases/dbus-python/"
"dbus-python-" version ".tar.gz"))
(sha256
(base32 "0q3jrw515z98mqdk9x822nd95rky455zz9876f1nqna5igkd3gcj"))))
(build-system gnu-build-system)
(native-inputs
(list pkg-config))
(inputs
`(("python" ,python-wrapper)
("dbus-glib" ,dbus-glib)))
(synopsis "Python bindings for D-bus")
(description "python-dbus provides bindings for libdbus, the reference
implementation of D-Bus.")
(home-page "https://www.freedesktop.org/wiki/Software/DBusBindings/")
(properties `((python2-variant . ,(delay python2-dbus))))
(license license:expat)))
(define-public python2-dbus
(package/inherit python-dbus
(name "python2-dbus")
(inputs `(("python" ,python-2)
,@(alist-delete "python"
(package-inputs python-dbus))))
(arguments
`(#:configure-flags '("PYTHON_VERSION=2")))))
(define-public python-dbus-next
(package
(name "python-dbus-next")
(version "0.2.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/altdesktop/python-dbus-next")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1ahaz52kny1p9xxv6phvk4iq56rg8li390wywlxf2yslaij1188h"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/altdesktop/python-dbus-next")
(synopsis "Zero-dependency DBus library for Python with asyncio support")
(description
"This DBus library for Python aims to be a fully-featured high-level
library primarily geared towards integration of applications into desktop and
mobile environments.")
(license license:expat)))
(define-public python-notify2
(package
(name "python-notify2")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "notify2" version))
(sha256
(base32
"0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; tests depend on system state
(propagated-inputs
(list python-dbus))
(home-page "https://bitbucket.org/takluyver/pynotify2")
(synopsis "Python interface to D-Bus notifications")
(description
"Pynotify2 provides a Python interface for sending D-Bus notifications.
It is a reimplementation of pynotify in pure Python, and an alternative to
the GObject Introspection bindings to libnotify for non-GTK applications.")
(license (list license:bsd-2
license:lgpl2.1+))))
;; beautifulsoup4 has a totally different namespace than 3.x,
;; and pypi seems to put it under its own name, so I guess we should too
(define-public python-beautifulsoup4
(package
(name "python-beautifulsoup4")
(version "4.11.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "beautifulsoup4" version))
(sha256
(base32
"14v68cpfzckfz63n9hnbsm271jvzvxscyijz83mhha7gcmdsb6md"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-soupsieve python-html5lib python-lxml))
(home-page
"https://www.crummy.com/software/BeautifulSoup/bs4/")
(synopsis
"Python screen-scraping library")
(description
"Beautiful Soup is a Python library designed for rapidly setting up
screen-scraping projects. It offers Pythonic idioms for navigating,
searching, and modifying a parse tree, providing a toolkit for
dissecting a document and extracting what you need. It automatically
converts incoming documents to Unicode and outgoing documents to UTF-8.")
(license license:expat)))
(define-public python-soupsieve
(package
(name "python-soupsieve")
(version "2.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "soupsieve" version))
(sha256
(base32
"1k70gpn2d3vgdyxbdy536dgm4kchcraxz6lmgsfg3324iy2789q5"))))
(build-system python-build-system)
(arguments
;;XXX: 2 tests fail currently despite claming they were to be
;;skipped. Also, beautifulsoup4 may depend on this in the future, so we
;;don't want to create a circular dependency.
(list #:tests? #f
#:phases
#~(modify-phases %standard-phases
;; Circular dependency with python-beautifulsoup4.
(delete 'sanity-check))))
(home-page "https://github.com/facelessuser/soupsieve")
(synopsis "CSS selector library")
(description
"Soup Sieve is a CSS selector library designed to be used with Beautiful
Soup 4. It aims to provide selecting, matching, and filtering using modern
CSS selectors. Soup Sieve currently provides selectors from the CSS level 1
specifications up through the latest CSS level 4 drafts and beyond (though
some are not yet implemented).")
(license license:expat)))
(define-public python-netifaces
(package
(name "python-netifaces")
(version "0.11.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "netifaces" version))
(sha256
(base32
"0cnajf5rl4w1sa72j921scbigr6zndig56cq8ggpx45jdqa7jfh4"))))
(build-system python-build-system)
(home-page "https://github.com/al45tair/netifaces")
(synopsis
"Python module for portable network interface information")
(description
"Netifaces is a Python module providing information on network
interfaces in an easy and portable manner.")
(license license:expat)))
(define-public python-networkx
(package
(name "python-networkx")
(version "2.8.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "networkx" version))
(sha256
(base32 "19h18f5j79l7kmwm5cvm75fadjgmkzw5m3pyvb9cnq0860q7faxx"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-vv" "--pyargs" "networkx")
(format #t "test suite not run~%")) #t)))))
(propagated-inputs (list python-decorator))
(native-inputs (list python-pytest))
(home-page "https://networkx.github.io/")
(synopsis
"Python module for creating and manipulating graphs and networks")
(description
"NetworkX is a Python package for the creation, manipulation, and study
of the structure, dynamics, and functions of complex networks.")
(license license:bsd-3)))
(define-public python-datrie
(package
(name "python-datrie")
(version "0.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "datrie" version))
(sha256
(base32
"0pbn32flkrpjiwfcknmj6398qa81ba783kbcvwan3kym73v0hnsj"))))
(build-system python-build-system)
(native-inputs
(list python-cython python-hypothesis python-pytest
python-pytest-runner))
(home-page "https://github.com/kmike/datrie")
(synopsis "Fast, efficiently stored trie for Python")
(description
"This package provides a fast, efficiently stored trie implementation for
Python.")
(license license:lgpl2.1+)))
(define-public python-amply
(package
(name "python-amply")
(version "0.1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "amply" version))
(sha256
(base32
"0f1db9zp0rsfzxvaz55xwh8h5rfdgr9a2a715g06ic8nknsdq4nb"))))
(build-system python-build-system)
(propagated-inputs
(list python-docutils python-pyparsing))
(native-inputs
(list python-setuptools-scm))
(home-page "https://github.com/willu47/amply")
(synopsis "Load and manipulate AMPL/GLPK data as Python data structures")
(description
"Amply allows you to load and manipulate AMPL/GLPK data as Python data
structures.")
(license license:epl1.0)))
(define-public python-pulp
(package
(name "python-pulp")
(version "2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PuLP" version))
(sha256
(base32
"1dammrg0f1v0r028i3rpxbf2bsyxmjq0q6ihb4x2wsdki44z3bxj"))))
(build-system python-build-system)
(propagated-inputs
(list python-amply))
(home-page "https://github.com/coin-or/pulp")
(synopsis "Linear Programming modeler")
(description
"PuLP is a Linear Programming modeler written in Python. PuLP can
generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to
solve linear problems.")
(license license:expat)))
(define-public python-py-tes
(package
(name "python-py-tes")
(version "0.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "py-tes" version))
(sha256
(base32 "0b272y392v0mnq0f3sm5kgcx8fn4qwfbym89hhvqxz3xkganr4pn"))))
(build-system python-build-system)
(propagated-inputs
(list python-attrs python-dateutil python-future python-requests))
(home-page "https://github.com/ohsu-comp-bio/py-tes")
(synopsis "Library for communicating with the GA4GH Task Execution API")
(description "This package provides a library for communicating with the
GA4GH Task Execution API.")
(license license:expat)))
(define-public python-toposort
(package
(name "python-toposort")
(version "1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "toposort" version))
(sha256
(base32
"1b2hppzjg3p006qya3yfdnp76dwq8frl97lypdam0kw4xxb8yhm7"))))
(build-system python-build-system)
(home-page "https://gitlab.com/ericvsmith/toposort")
(synopsis "Topological sort algorithm")
(description
"This package provides an implementation of a topological sort
algorithm.")
(license license:asl2.0)))
(define-public python-three-merge
(package
(name "python-three-merge")
(version "0.1.1")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/spyder-ide/three-merge")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fw28swh6jq4myr09j7gv68l241b8vwg470ak5xv0x4xwh2a1m86"))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"))
(propagated-inputs
(list python-diff-match-patch))
(native-inputs
(list python-flaky python-pytest python-pytest-cov
python-pytest-runner python-pytest-timeout))
(home-page "https://github.com/spyder-ide/three-merge")
(synopsis "Library for merging two strings with respect to a base one")
(description
"This package provides a Python library to perform a 3-way merge between
strings, based on @code{diff-match-patch}. This library performs merges at a
character level, as opposed to most VCS systems, which opt for a line-based
approach.")
(license license:expat)))
(define-public snakemake
(package
(name "snakemake")
(version "5.32.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "snakemake" version))
(sha256
(base32 "13013gdavwvyj1qr9xfi9fpwhb3km8c3z53bja5b7ic3sb2z6dgz"))))
(build-system python-build-system)
(arguments
;; TODO: Package missing test dependencies.
'(#:tests? #f
#:phases
(modify-phases %standard-phases
;; For cluster execution Snakemake will call Python. Since there is
;; no suitable PYTHONPATH set, cluster execution will fail. We fix
;; this by calling the snakemake wrapper instead.
(add-after 'unpack 'call-wrapper-not-wrapped-snakemake
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "snakemake/executors/__init__.py"
(("\\{sys.executable\\} -m snakemake")
(string-append (assoc-ref outputs "out")
"/bin/snakemake")))
#t)))))
(propagated-inputs
(list python-appdirs
python-configargparse
python-datrie
python-docutils
python-gitpython
python-jinja2
python-jsonschema
python-nbformat
python-networkx
python-psutil
python-pulp
python-pyyaml
python-ratelimiter
python-requests
python-toposort
python-wrapt))
(home-page "https://snakemake.readthedocs.io")
(synopsis "Python-based execution environment for make-like workflows")
(description
"Snakemake aims to reduce the complexity of creating workflows by
providing a clean and modern domain specific specification language (DSL) in
Python style, together with a fast and comfortable execution environment.")
(license license:expat)))
(define-public snakemake-6
(package
(inherit snakemake)
(name "snakemake")
(version "6.15.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/snakemake/snakemake")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "09yrpi9f86r9yvcm2dfjs5zy87c4j31bxama77kfd6y8yfrrjlai"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; For cluster execution Snakemake will call Python. Since there is
;; no suitable GUIX_PYTHONPATH set, cluster execution will fail. We
;; fix this by calling the snakemake wrapper instead.
;; XXX: There is another instance of sys.executable on line 692, but
;; it is not clear how to patch it.
(add-after 'unpack 'call-wrapper-not-wrapped-snakemake
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "snakemake/executors/__init__.py"
(("\\{sys.executable\\} -m snakemake")
(string-append (assoc-ref outputs "out")
"/bin/snakemake")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
;; This test attempts to change S3 buckets on AWS and fails
;; because there are no AWS credentials.
(delete-file "tests/test_tibanna.py")
(invoke "pytest")))))))
(propagated-inputs
(list python-appdirs
python-configargparse
python-connection-pool
python-datrie
python-docutils
python-filelock
python-gitpython
python-jinja2
python-jsonschema
python-nbformat
python-networkx
python-psutil
python-pulp
python-pyyaml
python-py-tes
python-ratelimiter
python-requests
python-smart-open
python-stopit
python-tabulate
python-toposort
python-wrapt))
(native-inputs
(list git-minimal
python-wrapper
python-pytest
python-pandas
python-requests-mock))))
(define-public snakemake-7
(package
(inherit snakemake-6)
(name "snakemake")
(version "7.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/snakemake/snakemake")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1qrqbmx4cbis0wxr6dl2rdjv9v627sbirsz6v5c31vlbqwkvs04q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; For cluster execution Snakemake will call Python. Since there is
;; no suitable GUIX_PYTHONPATH set, cluster execution will fail. We
;; fix this by calling the snakemake wrapper instead.
(add-after 'unpack 'call-wrapper-not-wrapped-snakemake
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "snakemake/executors/__init__.py"
(("self\\.get_python_executable\\(\\),")
"")
(("\"-m snakemake\"")
(string-append "\"" (assoc-ref outputs "out")
"/bin/snakemake" "\"")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
;; This test attempts to change S3 buckets on AWS and fails
;; because there are no AWS credentials.
(delete-file "tests/test_tibanna.py")
;; It's a similar story with this test, which requires access
;; to the Google Storage service.
(delete-file "tests/test_google_lifesciences.py")
(invoke "pytest")))))))
(propagated-inputs
(list python-appdirs
python-configargparse
python-connection-pool
python-datrie
python-docutils
python-filelock
python-gitpython
python-jinja2
python-jsonschema
python-nbformat
python-networkx
python-psutil
python-pulp
python-pyyaml
python-py-tes
python-ratelimiter
python-requests
python-retry
python-smart-open
python-stopit
python-tabulate
python-toposort
python-wrapt
python-yte))
(native-inputs
(list git-minimal
python-wrapper
python-pytest
python-pandas
python-requests-mock))))
(define-public python-pyqrcode
(package
(name "python-pyqrcode")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyQRCode" version))
(sha256
(base32
"1m9ln8k9v7dfbh1i81225hx5mdsh8mpf9g7r4wpbfmiyfcs7dgzx"))))
(build-system python-build-system)
(home-page
"https://github.com/mnooner256/pyqrcode")
(synopsis "QR code generator")
(description
"Pyqrcode is a QR code generator written purely in Python with
SVG, EPS, PNG and terminal output.")
(license license:bsd-3)))
(define-public python-seaborn
(package
(name "python-seaborn")
(version "0.11.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "seaborn" version))
(sha256
(base32
"1xpl3zb945sihsiwm9q1yyx84sakk1phcg0fprj6i0j0dllfjifg"))
(patches (search-patches "python-seaborn-kde-test.patch"
"python-seaborn-2690.patch"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-more-tests
(lambda _
(substitute* "seaborn/tests/test_distributions.py"
(("get_contour_color\\(ax\\.collections\\[0\\]\\)")
"get_contour_color(ax.collections[0])")
(("c\\.get_color\\(\\)") "get_contour_color(c)")
(("def test_hue_ignores_cmap")
"def skip_test_hue_ignores_cmap")
(("def test_fill_artists")
"def skip_test_fill_artists")
(("def test_with_rug") "def skip_test_with_rug"))))
(add-before 'check 'start-xserver
(lambda _
(system "Xvfb :1 &")
(setenv "DISPLAY" ":1")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "seaborn")))))))
(propagated-inputs (list python-pandas python-matplotlib python-numpy
python-scipy))
(native-inputs (list python-pytest xorg-server-for-tests))
(home-page "https://seaborn.pydata.org/")
(synopsis "Statistical data visualization")
(description
"Seaborn is a library for making attractive and informative statistical
graphics in Python. It is built on top of matplotlib and tightly integrated
with the PyData stack, including support for numpy and pandas data structures
and statistical routines from scipy and statsmodels.")
(license license:bsd-3)))
(define-public python-session-info
(package
(name "python-session-info")
(version "1.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "session_info" version))
(sha256
(base32
"1dxnrgaxd2nb44n423mnrx119hmnh2yxdnzaw8mg60x7rh1mxniw"))))
(build-system python-build-system)
(propagated-inputs (list python-stdlib-list))
(home-page "https://gitlab.com/joelostblom/session_info")
(synopsis "Output version information for modules currently loaded")
(description
"This package outputs version information for modules loaded in the current
session, Python, and the OS.")
(license license:bsd-3)))
(define-public python-mpmath
(package
(name "python-mpmath")
(version "1.2.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/fredrik-johansson/mpmath")
(commit "c6a35f9ee7c294bcf4e0517bc76b268843db9499")))
(file-name (git-file-name name version))
(sha256
(base32
"0ifw59fjjls3mas104rh0frilvab2fhk1dkjraxlqni5n9l676im"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest python-setuptools-scm))
(home-page "https://mpmath.org")
(synopsis "Arbitrary-precision floating-point arithmetic in python")
(description
"@code{mpmath} can be used as an arbitrary-precision substitute for
Python's float/complex types and math/cmath modules, but also does much
more advanced mathematics.")
(license license:bsd-3)))
(define-public python-bigfloat
(package
(name "python-bigfloat")
(version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bigfloat" version))
(sha256
(base32 "1f0c1hdr39bbl5rds5r1waa1papjmjiyp0ixs64mkjiahzg6pfaq"))))
(build-system python-build-system)
(inputs
(list mpfr))
(propagated-inputs
(list python-six))
(home-page "https://github.com/mdickinson/bigfloat")
(synopsis "Arbitrary precision floating-point arithmetic for Python")
(description
"This package provides a Python interface to the MPFR library for
multiprecision arithmetic.")
(license license:lgpl3+)))
(define-public python-plac
(package
(name "python-plac")
(version "1.3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "plac" version))
(sha256
(base32 "1410h6jw1ksi24kb55xzkwqzba2qqjwiga1s354bf3s5s1jdig9q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tkinter
(lambda _
(substitute* "plac_tk.py"
(("from Tkinter import Tk")
"from tkinter import Tk")
(("from ScrolledText import ScrolledText")
"from tkinter.scrolledtext import ScrolledText")))))))
(native-inputs
`(("python-tkinter" ,python "tk")))
(home-page "https://github.com/ialbert/plac")
(synopsis "Command line arguments parser")
(description "This package can generate command line parameters from
function signatures.")
(license license:bsd-3)))
(define-public python-yte
(package
(name "python-yte")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "yte" version))
(sha256
(base32 "07hm1warpqi4ifqgkaz5sg887x4a44yhxafmpf835ywnpchg4s03"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-HOME
(lambda _ (setenv "HOME" "/tmp"))))))
(propagated-inputs (list python-plac python-pyyaml))
(home-page "https://github.com/koesterlab/yte")
(synopsis "YAML template engine with Python expressions")
(description
"This package provides a YAML template engine with Python expressions.")
(license license:expat)))
(define-public python-syllables
(package
(name "python-syllables")
(version "1.0.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "syllables" version))
(sha256
(base32
"0wkl6h0rg6fbsxfp0a8fnibf3l4l6lbh6z12cvcilgb6qhxzpmv3"))))
(build-system python-build-system)
(home-page "https://github.com/prosegrinder/python-syllables")
(synopsis "Package for estimating the number of syllables in a word")
(description
"This package provides a Python package for estimating the number of
syllables in a word.")
(license license:gpl3)))
(define-public python-sympy
(package
(name "python-sympy")
(version "1.11.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sympy" version))
(sha256
(base32 "0n46x1rfy8c2a9za3yp2va5icigxj805f9fmiq8c1drwwvf808z3"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key outputs #:allow-other-keys)
(invoke
(or (which "python3") (which "python"))
"-c" "import sympy; sympy.test(\"/core\")"))))))
(propagated-inputs
(list python-mpmath))
(home-page "https://www.sympy.org/")
(synopsis "Python library for symbolic mathematics")
(description
"SymPy is a Python library for symbolic mathematics. It aims to become a
full-featured computer algebra system (CAS) while keeping the code as simple
as possible in order to be comprehensible and easily extensible.")
(license license:bsd-3)))
(define-public python-q
(package
(name "python-q")
(version "2.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "q" version))
(sha256
(base32
"1mgfazh8fkizh6walra2zv885f3lcgr3nb02v1frfm4p8ddcy3yy"))))
(build-system python-build-system)
(home-page "https://github.com/zestyping/q")
(synopsis "Quick-and-dirty debugging output for tired programmers")
(description
"q is a Python module for \"print\" style of debugging Python code. It
provides convenient short API for print out of values, tracebacks, and
falling into the Python interpreter.")
(license license:asl2.0)))
(define-public python-xlib
(package
(name "python-xlib")
(version "0.29")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/python-xlib/python-xlib")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "17cwd2knqm2vwrii3kqii9abwsnydhpg4byqx1vy7rjs6i1vbqfc"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'start-xserver
(lambda* (#:key inputs #:allow-other-keys)
(let ((xorg-server (assoc-ref inputs "xorg-server")))
;; There must be a running X server and make check doesn't
;; start one. Therefore we must do it.
(system (format #f "~a/bin/Xvfb :1 &" xorg-server))
(setenv "DISPLAY" ":1")
#t))))))
(native-inputs
(list python-mock python-setuptools-scm xorg-server))
(propagated-inputs
(list python-six))
(home-page "https://github.com/python-xlib/python-xlib")
(synopsis "Python X11 client library")
(description
"The Python X Library is intended to be a fully functional
X client library for Python programs. It is useful to implement
low-level X clients. It is written entirely in Python.")
(license license:gpl2+)))
(define-public python-singledispatch
(package
(name "python-singledispatch")
(version "3.4.0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "singledispatch" version))
(sha256
(base32
"171b7ip0hsq5qm83np40h3phlr36ym18w0lay0a8v08kvy3sy1jv"))))
(build-system python-build-system)
(native-inputs
(list python-six)) ; required for conversion, not at run-time
(home-page
"https://docs.python.org/3/library/functools.html#functools.singledispatch")
(synopsis "Backport of singledispatch feature from Python 3.4")
(description
"This library brings functools.singledispatch from Python 3.4 to Python
2.6-3.3.")
(license license:expat)))
;; the python- version can be removed with python-3.5
(define-public python-backports-abc
(package
(name "python-backports-abc")
(version "0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "backports_abc" version))
(sha256
(base32
"1pkv8d1zxj5f9i227dxbjczncbv7ks7ywnjwyxfjagm02i2yafq3"))))
(build-system python-build-system)
(home-page "https://github.com/cython/backports_abc")
(synopsis "Backport of additions to the 'collections.abc' module")
(description
"Python-backports-abc provides a backport of additions to the
@code{collections.abc} module in Python-3.5.")
(license license:psfl)))
(define-public python-backports-csv
(package
(name "python-backports-csv")
(version "1.0.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "backports.csv" version))
(sha256
(base32 "0vdx5jlhs91iizc8j8l8811nqprwvdx39pgkdc82w2qkfgzxyxqj"))))
(build-system python-build-system)
(home-page "https://github.com/ryanhiebert/backports.csv")
(synopsis "Backport of Python 3's csv module for Python 2")
(description
"Provides a backport of Python 3's @code{csv} module for parsing
comma separated values. The API of the @code{csv} module in Python 2
is drastically different from the @code{csv} module in Python 3.
This is due, for the most part, to the difference between str in
Python 2 and Python 3.")
(license license:psfl)))
(define-public python-waf
(package
(name "python-waf")
(version "2.0.19")
(source (origin
(method url-fetch)
(uri (string-append "https://waf.io/"
"waf-" version ".tar.bz2"))
(sha256
(base32
"19dvqbsvxz7ch03dh1v0znklrwxlz6yzddc3k9smzrrgny4jch6q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'build
(lambda _
;; XXX: Find a way to add all extra tools.
(let ((tools '("gccdeps"
"clang_compilation_database")))
(invoke "python" "waf-light" "configure" "build"
(string-append "--tools="
(string-join tools ","))))))
(replace 'check
(lambda _
(invoke "python" "waf" "--version")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(install-file "waf" (string-append out "/bin")))
#t))
;; waf breaks when it is wrapped.
(delete 'wrap))))
(home-page "https://waf.io/")
(synopsis "Python-based build system")
(description
"Waf is a Python-based framework for configuring, compiling and installing
applications.")
(license license:bsd-3)))
(define-public python-pyzmq
(package
(name "python-pyzmq")
(version "22.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyzmq" version))
(sha256
(base32 "0737kizh53n4rjq1xbm6nhr0bq65xflg04i1d8fcky0nwwrw1pcf"))
(snippet
#~(begin
(use-modules (guix build utils))
;; The bundled zeromq source code.
(delete-file-recursively "bundled")
;; Delete cythonized files.
(for-each delete-file
(list "zmq/backend/cython/constants.c"
"zmq/backend/cython/context.c"
"zmq/backend/cython/_device.c"
"zmq/backend/cython/error.c"
"zmq/backend/cython/message.c"
"zmq/backend/cython/_poll.c"
"zmq/backend/cython/_proxy_steerable.c"
"zmq/backend/cython/socket.c"
"zmq/backend/cython/utils.c"
"zmq/backend/cython/_version.c"
"zmq/devices/monitoredqueue.c"))))))
(build-system python-build-system)
(arguments
`(#:configure-flags
(list (string-append "--zmq=" (assoc-ref %build-inputs "zeromq")))
#:phases
(modify-phases %standard-phases
(add-before 'check 'build-extensions
(lambda _
;; Cython extensions have to be built before running the tests.
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(inputs
(list zeromq))
(native-inputs
(list pkg-config python-cython python-pytest))
(home-page "https://github.com/zeromq/pyzmq")
(synopsis "Python bindings for 0MQ")
(description
"PyZMQ is the official Python binding for the ZeroMQ messaging library.")
(license license:bsd-4)))
(define-public python-immutabledict
(package
(name "python-immutabledict")
(version "2.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "immutabledict" version))
(sha256
(base32 "0fpc4gbk7inpfbgdypsg6c18bmdjw8gwx47bjw0hvixn3gghxnqx"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests in PyPI release and no setup.py in GitHub
(native-inputs
(list python-pytest))
(home-page "https://github.com/corenting/immutabledict")
(synopsis "Immutable wrapper around dictionaries")
(description
"@dfn{immutabledict} is an immutable wrapper around dictionaries.
It implements the complete mapping interface and can be used as a drop-in
replacement for dictionaries where immutability is desired.")
(license license:expat)))
(define-public python-emoji
(package
(name "python-emoji")
(version "1.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "emoji" version))
(sha256
(base32 "0923mpixwq6hdpkgvi4r46alfvf608iq975rb8lnqpq29j71mmjk"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/carpedm20/emoji/")
(synopsis "Emoji terminal output for Python")
(description "This package provides Emoji terminal output for Python. The
entire set of Emoji codes as defined by the Unicode Consortium is supported in
addition to a bunch of aliases.")
(license license:bsd-3)))
(define-public python-sarge
(package
(name "python-sarge")
(version "0.1.7.post1") ; post release only to correct errors in metadata
(source
(origin
(method url-fetch)
(uri (pypi-uri "sarge" version))
(sha256
(base32 "0g9a53mfnp96877n1yq2jdk1mcv3xm0d93iisvgcn2prdsp45zv4"))))
(build-system python-build-system)
(home-page "https://docs.red-dove.com/sarge/")
(synopsis "Subprocess wrapper with command pipeline functionality")
(description "@code{sarge} is a wrapper for subprocess which provides
command pipeline functionality.")
(license license:bsd-3)))
(define-public python-zipstream-new
(package
(name "python-zipstream-new")
(version "1.1.8")
(source
(origin
(method git-fetch) ; no tests in PyPI release
(uri (git-reference
(url "https://github.com/arjan-s/python-zipstream")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "14vhgg8mcjqi8cpzrw8qzbij2fr2a63l2a8fhil21k2r8vzv92cv"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/arjan-s/python-zipstream")
(synopsis "Zipfile generator that takes input files as well as streams")
(description "@code{zipstream.py} is a zip archive generator based on
@code{zipfile.py}. It was created to generate a zip file generator for
streaming. This is beneficial for when you want to provide a downloadable
archive of a large collection of regular files, which would be infeasible
to generate the archive prior to downloading or of a very large file that
you do not want to store entirely on disk or on memory.")
;; No copyright headers in the source. The LICENSE file indicates GPL3.
(license license:gpl3)))
(define-public python-sentry-sdk
(package
(name "python-sentry-sdk")
(version "1.5.1")
(source
(origin
(method git-fetch) ; no tests in PyPI release
(uri (git-reference
(url "https://github.com/getsentry/sentry-python")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "128bm136l5zprr3sqqb8j3d6k5i1fhz853mzvh3w8g0w1dw763mx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-k"
(string-append
;; This test requires extra dependencies.
"not test_auto_enabling_integrations"
"_catches_import_error"
;; Tests below run pip command.
" and not test_unhandled_exception"
" and not test_timeout_error"
" and not test_performance_no_error"
" and not test_performance_error"
" and not test_traces_sampler_gets_correct"
"_values_in_sampling_context"
" and not test_handled_exception"
;; Tests below require network.
" and not test_crumb_capture"
" and not test_crumb_capture"
" and not test_crumb_capture_hint"
" and not test_httplib_misuse"
;; Fails with IndexError.
" and not test_session_mode_defaults_to"
"_request_mode_in_wsgi_handler"))))))))
(native-inputs
(list python-django
python-executing
python-gevent
python-jsonschema
python-mock
python-pyrsistent
python-pytest
python-pytest-cov
python-pytest-django
python-pytest-forked
python-pytest-localserver
python-werkzeug))
(propagated-inputs
(list python-certifi python-urllib3))
(home-page "https://github.com/getsentry/sentry-python")
(synopsis "Python SDK for Sentry")
(description "This package provides a Python SDK for the Sentry
application monitoring and error tracking software.")
(license license:bsd-2)))
(define-public python-pep8
;; This package has been renamed to ‘pycodestyle’ and is no longer updated.
;; Its last release (1.7.1) adds only a scary warning to this effect, breaking
;; some dependents' test suites, and nothing more.
(package
(name "python-pep8")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pep8" version))
(sha256
(base32
"002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1"))
(patches (search-patches "python-pep8-stdlib-tokenize-compat.patch"))))
(build-system python-build-system)
(home-page "https://pep8.readthedocs.org/")
(synopsis "Python style guide checker")
(description
"This tools checks Python code against some of the style conventions in
PEP 8.")
(license license:expat)))
(define-public python-pep8-naming
(package
(name "python-pep8-naming")
(version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pep8-naming" version))
(sha256
(base32
"1dc0b6xw1cxp01v9zsv4ryk49rfs1lngfpvzsixgp8b7z3ffcf4z"))))
(build-system python-build-system)
(propagated-inputs (list python-flake8))
(home-page "https://github.com/PyCQA/pep8-naming")
(synopsis "Check PEP-8 naming conventions")
(description
"This package provides the @code{pep8-naming} Python module, a
plugin for flake8 to check PEP-8 naming conventions.")
(license license:expat)))
(define-public python-pep517
(package
(inherit python-pep517-bootstrap)
(name "python-pep517")
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(delete-file "pytest.ini")
(delete-file "tests/test_meta.py")
(if tests?
(invoke "pytest") #t))))))
(native-inputs (list python-mock python-pytest python-testpath))))
(define-public python-pyproject-metadata
(package
(name "python-pyproject-metadata")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/FFY00/python-pyproject-metadata")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"00zahgw9zjfqwf0218bj5k732aibnn68cq1p8f0wmbirb7fy5k31"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
;; XXX: PEP 517 manual build/install procedures copied from
;; python-isort.
(replace 'build
(lambda _
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
;; Two parameterized test_load tests are currently
;; failing (see:
;; https://github.com/FFY00/python-pep621/issues/14).
"-k" "not test_load"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl)))))))
(propagated-inputs (list python-packaging))
(native-inputs (list python-pypa-build python-pytest python-tomli))
(home-page "https://github.com/FFY00/python-pyproject-metadata")
(synopsis "Dataclass for PEP 621 metadata")
(description "This project does not implement the parsing of
@file{pyproject.toml} containing PEP 621 metadata. Instead, given a Python
data structure representing PEP 621 metadata (already parsed), it will
validate this input and generate a PEP 643-compliant metadata
file (e.g. @file{PKG-INFO}).")
(license license:expat)))
;; pep621 was renamed to pyproject-metadata.
(define-public python-pep621
(deprecated-package "python-pep621" python-pyproject-metadata))
(define-public python-pyflakes
(package
(name "python-pyflakes")
(version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyflakes" version))
(sha256
(base32
"0k5jn8jpxni264wxf6cc3xcd1qckc0pww30bsd77mwzdf8l5ra05"))))
(build-system python-build-system)
(home-page "https://github.com/PyCQA/pyflakes")
(synopsis "Passive checker of Python programs")
(description
"Pyflakes statically checks Python source code for common errors.")
(license license:expat)))
(define-public python-pyflakes-2.2
(package
(inherit python-pyflakes)
(version "2.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pyflakes" version))
(sha256
(base32
"1j3zqbiwkyicvww499bblq33x0bjpzdrxajhaysr7sk7x5gdgcim"))
(patches
(search-patches "python-pyflakes-test-location.patch"))))))
(define-public python-mccabe
(package
(name "python-mccabe")
(version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mccabe" version))
(sha256
(base32
"07w3p1qm44hgxf3vvwz84kswpsx6s7kvaibzrsx5dzm0hli1i3fx"))))
(build-system python-build-system)
(native-inputs
(list python-toml python-pytest-bootstrap python-pytest-runner))
(home-page "https://github.com/PyCQA/mccabe")
(synopsis "McCabe checker, plugin for flake8")
(description "This package provides a Flake8 plug-in to compute the McCabe
cyclomatic complexity of Python source code.")
(license license:expat)))
(define-public python-autoflake8
(package
(name "python-autoflake8")
(version "0.4.0")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/fsouza/autoflake8")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0jx7bkslbhr24yvq60pl39faz2r6g93f1zm1gygswl0rzr5zmgnh"))))
(build-system pyproject-build-system)
(native-inputs
(list python-aiofiles
python-poetry-core
python-pytest
python-pytest-xdist))
(propagated-inputs (list python-pyflakes))
(home-page "https://github.com/fsouza/autoflake8")
(synopsis "Automatically fix issues reported by flake8")
(description "Tool to automatically fix some issues reported by
@command{flake8}.")
(license license:expat)))
(define-public python-flake8
(package
(name "python-flake8")
(version "4.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "flake8" version))
(sha256
(base32
"03c7mnk34wfz7a0m5zq0273y94awz69fy5iww8alh4a4v96h6vl0"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v")))))))
(propagated-inputs
(list python-entrypoints
python-mccabe
python-pycodestyle
python-pyflakes))
(native-inputs (list python-pytest))
(home-page "https://gitlab.com/pycqa/flake8")
(synopsis "The modular source code checker: pep8, pyflakes and co")
(description
"Flake8 is a wrapper around PyFlakes, pep8 and python-mccabe.")
(license license:expat)))
(define-public python-flake8-3.8
(package
(inherit python-flake8)
(version "3.8.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "flake8" version))
(sha256
(base32
"0fvcrsbyzjpcli8ldbpsdbpmf238nkvwc1dy4hy82lf63rvfinma"))))
(propagated-inputs
(list python-pycodestyle-2.6 python-entrypoints python-pyflakes-2.2
python-mccabe))))
(define-public python-flake8-blind-except
(package
(name "python-flake8-blind-except")
(version "0.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-blind-except" version))
(sha256
(base32 "05nxsxfzfhwsm8gys90228imm2qbnqnw5y8bfqyfngnbkmd5fnpj"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests
(native-inputs (list python-pycodestyle))
(home-page "https://github.com/elijahandrews/flake8-blind-except")
(synopsis "Check for blind @code{except:} statements")
(description "This package provides a flake8 extension that checks for
blind @code{except:} statements.")
(license license:expat)))
(define-public python-flake8-bugbear
(package
(name "python-flake8-bugbear")
(version "20.1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-bugbear" version))
(sha256
(base32
"0qiihb242fygzyrfynq913ak7cdmx8mcac9c0zk3y5gv16qf80mx"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'disable-test
(lambda _
;; This test fails on slow computers.
(substitute* "tests/test_bugbear.py"
(("def test_does_not_crash_on_any_valid_code")
"def _test_does_not_crash_on_any_valid_code")))))))
(native-inputs
(list python-hypothesis python-hypothesmith))
(propagated-inputs
(list python-attrs python-flake8))
(home-page "https://github.com/PyCQA/flake8-bugbear")
(synopsis
"Flake8 plugin for finding likely bugs and design problems in your program")
(description
"This package contains a plugin for Flake8 finding likely bugs and
design problems in your program. It contains warnings that don't belong
in pyflakes and pycodestyle.")
(license license:expat)))
(define-public python-flake8-continuation
(package
(name "python-flake8-continuation")
(version "1.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-continuation" version))
(sha256
(base32
"0dzaw8jr7yhlabxhrblnrizxx17xa9ngjnbr1kidg5lapq6b9q1y"))))
(build-system python-build-system)
(propagated-inputs
(list python-flake8 python-pycodestyle python-six))
(home-page "https://github.com/planetlabs/flake8-continuation")
(synopsis "Flake8 Line Continuation Plugin")
(description "A Flake8 plugin that checks for the line continuation
style to be in the preferred method according to PEP-8, specifically:
@quotation
The preferred way of wrapping long lines is by using Python's implied
line continuation inside parentheses, brackets and braces. Long lines
can be broken over multiple lines by wrapping expressions in parentheses.
These should be used in preference to using a backslash for line continuation.
@end quotation")
(license license:asl2.0)))
(define-public python-flake8-debugger
(package
(name "python-flake8-debugger")
(version "4.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-debugger" version))
(sha256
(base32 "0h1qlzbxxhjsw6kg3mcml9h8byy77m9a5z06z2dnvqs115b05c2j"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests in PyPI and no setup.py in GitHub
(propagated-inputs
(list python-flake8 python-pycodestyle))
(home-page "https://github.com/jbkahn/flake8-debugger")
(synopsis "@code{ipdb} and @code{pdb} statement checker plugin for flake8")
(description "This package provides a Flake8 plugin that checks for
@code{ipdb} and @code{pdb} imports and set traces, as well as
@code{from IPython.terminal.embed}, @code{import InteractiveShellEmbed}
and @code{InteractiveShellEmbed()()}.")
(license license:expat)))
(define-public python-flake8-implicit-str-concat
(package
(name "python-flake8-implicit-str-concat")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8_implicit_str_concat" version))
(sha256
(base32 "1v0y29xlmbr2q12a4nnpm1dm9aw1mjiys1x8jif4z8c90d63cqm6"))))
(build-system python-build-system)
(arguments
'(#:tests? #f ;no tests
#:phases (modify-phases %standard-phases
(add-after 'unpack 'loosen-requirements
(lambda _
;; Permit newer versions of attrs. Remove for >0.2.
(substitute* "setup.py"
((", <21") "")))))))
(propagated-inputs
(list python-attrs python-more-itertools))
(home-page "https://github.com/keisheiled/flake8-implicit-str-concat")
(synopsis "Flake8 plugin to encourage correct string literal concatenation")
(description
"This is a plugin for the Python code checking tool Flake8 to encourage
correct string literal concatenation.
It looks for style problems like implicitly concatenated string literals on
the same line (which can be introduced by the code formatting tool Black), or
unnecessary plus operators for explicit string literal concatenation.")
(license license:expat)))
(define-public python-flake8-print
(package
(name "python-flake8-print")
(version "4.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-print" version))
(sha256
(base32 "05k5kkvyk6fdmvnacxfzypk74vbl3pmva13dqg1aljfwnxsc7yjs"))))
(build-system python-build-system)
(propagated-inputs
(list python-flake8 python-pycodestyle python-six))
(home-page "https://github.com/jbkahn/flake8-print")
(synopsis "Print statement checker plugin for Flake8")
(description
"This plugin for Flake8 checks for @code{print} statements in Python
files.")
(license license:expat)))
(define-public python-flake8-pyi
(package
(name "python-flake8-pyi")
(version "20.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-pyi" version))
(sha256
(base32
"0b27n2pmrxcc7nva4wp2i7mrag0fnq0firvhg1ljq593a45b5qyf"))))
(build-system python-build-system)
(propagated-inputs
(list python-attrs python-flake8 python-pyflakes))
(home-page "https://github.com/ambv/flake8-pyi")
(synopsis
"Flake8 plugin that provides specializations for type hinting stub files")
(description
"This package contains a plugin that provides specializations for
type hinting stub files, especially interesting for linting typeshed. It
adds the @file{.pyi} extension to the default value of the @code{--filename}
command-line argument to Flake8. This means stubs are linted by default with
this plugin enabled, without needing to explicitly list every file. It
modifies PyFlakes runs for @file{.pyi} files to defer checking type annotation
expressions after the entire file has been read. This enables support for
first-class forward references that stub files use.")
(license license:expat)))
(define-public python-flake8-pie
(package
(name "python-flake8-pie")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-pie" version))
(sha256
(base32 "0kgipl5gljlp7aa7ykx15pswpzkd0d0qiznihb2z0d9a73181dyd"))))
(build-system python-build-system)
(home-page "https://github.com/sbdchd/flake8-pie")
(synopsis "Flake8 extension that implements lints")
(description
"This package provides a flake8 extension that implements miscellaneous
lints.")
(license license:bsd-2)))
(define-public python-flake8-quotes
(package
(name "python-flake8-quotes")
(version "3.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-quotes" version))
(sha256
(base32
"0ph5s6lxgpzz4an0ax6s5xjqypqmngwr5b1i0h9pqhzghplic49z"))))
(build-system python-build-system)
(propagated-inputs
(list python-flake8))
(home-page "https://github.com/zheller/flake8-quotes/")
(synopsis "Flake8 lint for quotes")
(description "This package provides a Flake8 lint for quotes.")
(license license:expat)))
(define-public python-flake8-todo
(package
(name "python-flake8-todo")
(version "0.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-todo" version))
(sha256
(base32
"05arm0sch3r8248035kilmf01z0mxsahw6vpbbz0d343zy8m8k3f"))))
(build-system python-build-system)
(propagated-inputs
(list python-pycodestyle))
(home-page "https://github.com/schlamar/flake8-todo")
(synopsis "TODO notes checker, plugin for flake8")
(description
"This package provides the @code{flake8-todo} Python module, a
TODO notes checker plugin for flake8.")
(license license:expat)))
(define-public python-flake8-isort
(package
(name "python-flake8-isort")
(version "4.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flake8-isort" version))
(sha256
(base32 "05r7z0j9rqgy0a9261bhisairrz6w8hy5hy5kf2mhvhfnx53056q"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(propagated-inputs (list python-flake8 python-isort python-testfixtures))
(native-inputs (list python-pytest))
(home-page "https://github.com/gforcada/flake8-isort")
(synopsis "Flake8 plugin integrating isort")
(description "This package provides a flake8 plugin that integrates isort,
extending flake8 so that it can warn about badly sorted Python import
directives.")
(license license:gpl2+)))
(define-public python-autoflake
(package
(name "python-autoflake")
(version "1.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "autoflake" version))
(sha256
(base32 "0nzr057dbmgprp4a52ymafdkdd5zp2wcqf42913xc7hhvvdbj338"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyflakes))
(home-page "https://github.com/myint/autoflake")
(synopsis "Removes unused imports and unused variables")
(description
"@code{autoflake} removes unused imports and unused variables from Python
code as reported by @code{pyflakes}.
By default, it only removes unused imports for modules that are part of the
standard library. Removal of unused variables is also disabled by default.
It also removes useless @code{pass} statements.")
(license license:expat)))
(define-public python-mistune
(package
(name "python-mistune")
(version "0.8.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mistune" version))
(sha256
(base32
"0vkmsh0x480rni51lhyvigfdf06b9247z868pk3bal1wnnfl58sr"))))
(build-system python-build-system)
(native-inputs
(list python-nose python-cython))
(home-page "https://github.com/lepture/mistune")
(synopsis "Markdown parser in pure Python")
(description "This package provides a fast markdown parser in pure
Python.")
(license license:bsd-3)))
;; 2.0 is not released yet, but some packages have started using it.
(define-public python-mistune-next
(package
(inherit python-mistune)
(name "python-mistune-next")
(version "2.0.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "mistune" version))
(sha256
(base32
"024q9l6mgd37wa25w7dhskv1m3zsj5lf0w9cfyx7l9p2adhadq4y"))))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest))))
(define-public python-markdown
(package
(name "python-markdown")
(version "3.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Markdown" version))
(sha256
(base32
"0jbs73nincha8fkfxx267sfxac6pl0ckszjbqbb8gk4dhs8v9d9i"))))
(build-system python-build-system)
(native-inputs
(list python-nose python-pyyaml))
(home-page "https://python-markdown.github.io/")
(synopsis "Python implementation of Markdown")
(description
"This package provides a Python implementation of John Gruber's
Markdown. The library features international input, various Markdown
extensions, and several HTML output formats. A command line wrapper
markdown_py is also provided to convert Markdown files to HTML.")
(license license:bsd-3)))
(define-public python-mdx-include
(package
(name "python-mdx-include")
(version "1.4.1")
(source (origin
;; Use git, as there are some test files missing from the PyPI
;; release, see https://github.com/neurobin/mdx_include/issues/9
(method git-fetch)
(uri (git-reference
(url "https://github.com/neurobin/mdx_include")
;; Releases are not tagged on github, see
;; https://github.com/neurobin/mdx_include/issues/10
(commit "683e6be7a00a1ef4d673ad0294458fa61bc97286")))
(file-name (git-file-name name version))
(sha256
(base32
"0qpzgln4ybd7pl0m9s19dv60aq9cvwrk7x3yz96kjhcywaa5w386"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'disable-test-requiring-network
(lambda _
(substitute* "mdx_include/test/test.py"
(("(\\s+def )test_(cache|config|default)\\(" _ pre post)
(string-append pre "__off__test_" post "("))))))))
(propagated-inputs (list python-cyclic python-markdown python-rcslice))
(home-page "https://github.com/neurobin/mdx_include")
(synopsis "Python Markdown extension to include local or remote files")
(description "Include extension for Python Markdown. It lets you include
local or remote (downloadable) files into your markdown at arbitrary
positions.
This project is motivated by markdown-include and provides the same
functionalities with some extras.")
(license license:bsd-3)))
(define-public python-ptyprocess
(package
(name "python-ptyprocess")
(version "0.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ptyprocess" version))
(sha256
(base32
"0ra31k10v3629xq0kdn8lwmfbi97anmk48r03yvh7mks0kq96hg6"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "nosetests"))))))
(home-page "https://github.com/pexpect/ptyprocess")
(synopsis "Run a subprocess in a pseudo terminal")
(description
"This package provides a Python library used to launch a subprocess in a
pseudo terminal (pty), and interact with both the process and its pty.")
(license license:isc)))
(define-public python-cram
(package
(name "python-cram")
(version "0.7")
(home-page "https://bitheap.org/cram/")
(source (origin
(method url-fetch)
(uri (list (string-append home-page "cram-"
version ".tar.gz")
(pypi-uri "cram" version)))
(sha256
(base32
"0bvz6fwdi55rkrz3f50zsy35gvvwhlppki2yml5bj5ffy9d499vx"))))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
(substitute* (find-files "cram" ".*\\.py$")
;; Replace default shell path.
(("/bin/sh") (which "sh")))
(substitute* (find-files "tests" ".*\\.t$")
(("md5") "md5sum")
(("/bin/bash") (which "bash"))
(("/bin/sh") (which "sh")))
(substitute* "cram/_test.py"
;; This hack works around a bug triggered by substituting
;; the /bin/sh paths. "tests/usage.t" compares the output of
;; "cram -h", which breaks the output at 80 characters. This
;; causes the line showing the default shell to break into two
;; lines, but the test expects a single line...
(("env\\['COLUMNS'\\] = '80'")
"env['COLUMNS'] = '160'"))
(substitute* "Makefile"
;; Recent versions of python-coverage have caused the test
;; coverage to decrease (as of version 0.7). Allow that.
(("--fail-under=100")
"--fail-under=90"))
#t))
(replace 'check
;; The test phase uses the built library and executable.
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(setenv "PATH" (string-append (getenv "PATH") ":"
(assoc-ref outputs "out") "/bin"))
(invoke "make" "test"))))))
(build-system python-build-system)
(native-inputs
(list python-coverage which))
(synopsis "Simple testing framework for command line applications")
(description
"Cram is a functional testing framework for command line applications.
Cram tests look like snippets of interactive shell sessions. Cram runs each
command and compares the command output in the test with the command’s actual
output.")
(license license:gpl2+)))
(define-public python-crccheck
(package
(name "python-crccheck")
(version "1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "crccheck" version))
(sha256
(base32 "15psg7wjfbpmmry54ffwg6pg63mnv7mkwmb0a7884axnr8qj55j5"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest))
(home-page "https://sourceforge.net/projects/crccheck/")
(synopsis "Calculation library for CRCs and checksums")
(description "@code{crccheck} is a calculation library for CRCs and
checksums. It implement more than a hundred checksum routines.")
(license license:gpl3+)))
(define-public python-crashtest
(package
(name "python-crashtest")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "crashtest" version))
(sha256
(base32 "1p9p7mn8x2j9psc4jxab98897v4i9s4fliyfw8rp8v4bx1n7pjj2"))))
(build-system python-build-system)
(home-page "https://github.com/sdispater/crashtest")
(synopsis "Manage Python errors with ease")
(description
"Python library that makes exceptions handling and inspection easier.")
(license license:expat)))
(define-public python-stdlib-list
(package
(name "python-stdlib-list")
(version "0.8.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "stdlib-list" version))
(sha256
(base32
"17vdn4q0sdlndc2fr9svapxx6366hnrhkn0fswp1xmr0jxqh7rd1"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; Tests require more dependencies.
(native-inputs
(list python-sphinx))
(home-page "https://github.com/jackmaney/python-stdlib-list")
(synopsis "Python Standard Libraries")
(description "This package contains a list of Python Standard Libraries.")
(license license:expat)))
(define-public python-stopit
(package
(name "python-stopit")
(version "1.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "stopit" version))
(sha256
(base32 "0vcrcvky249q4rbgmwf18mwmnypfk8jpn4h6knyjf86r7xc9rwzp"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;there are none
(home-page "https://pypi.python.org/pypi/stopit")
(synopsis "Timeout control decorator and context managers")
(description
"Raise asynchronous exceptions in other threads, control the timeout of
blocks or callables with two context managers and two decorators.")
(license license:expat)))
(define-public python-timeout-decorator
(package
(name "python-timeout-decorator")
(version "0.5.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "timeout-decorator" version))
(sha256
(base32
"1mxk2qyydhzncm93z08kvj5ssxq3fr2n7pkrrji28nqwvdc2ybva"))))
(build-system python-build-system)
(home-page "https://github.com/pnpnpn/timeout-decorator")
(synopsis "Timeout decorator")
(description "This package provides a decorator that raises an error
when an operation takes longer than expected.")
(license license:expat)))
(define-public python-straight-plugin
(package
(name "python-straight-plugin")
(version "1.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "straight.plugin" version))
(sha256
(base32
"069pjll4383p4kkgvcc40hgyvf79j2wdbpgwz77yigzxksh1gj62"))))
(build-system python-build-system)
(home-page "https://github.com/ironfroggy/straight.plugin")
(synopsis "Simple namespaced plugin facility")
(description "Straight Plugin provides a type of plugin you can create from
almost any existing Python modules, and an easy way for outside developers to
add functionality and customization to your projects with their own plugins.")
(license license:expat)))
(define-public python-pysendfile
(package
(name "python-pysendfile")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pysendfile" version))
(sha256
(base32 "05qf0m32isflln1zjgxlpw0wf469lj86vdwwqyizp1h94x5l22ji"))))
(build-system python-build-system)
(arguments
(list
#:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
(invoke "make" "test")))))))
(home-page "https://github.com/giampaolo/pysendfile")
(synopsis "Python interface to sendfile(2)")
(description "The @{pysendfile} Python library provides an interface to
the @code{sendfile(2)} system call.")
(license license:expat)))
(define-public python-pyftpdlib
(package
(name "python-pyftpdlib")
(version "1.5.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyftpdlib" version))
(sha256
(base32 "0pnv2byzmzg84q5nmmhn1xafvfil85qa5y52bj455br93zc5b9px"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke
"pytest"
;; Deselect failing tests.
"-k" (string-append
;; Using Pytest instead of the Makefile causes the
;; command line tests to fail on unknown Pytest
;; arguments.
"not TestCommandLineParser "
;; https://github.com/giampaolo/pyftpdlib/issues/478
"and not test_use_gmt_times "
;; https://github.com/giampaolo/pyftpdlib/issues/550
"and not test_masquerade_address "
;; https://github.com/giampaolo/pyftpdlib/issues/500
"and not test_rest_on_stor "
"and not test_stor_ascii"))))))))
(native-inputs (list python-psutil python-pytest))
(propagated-inputs (list python-pyopenssl python-pysendfile))
(home-page "https://github.com/giampaolo/pyftpdlib/")
(synopsis "Asynchronous and scalable Python FTP server library")
(description "The Python FTP server library provides a high-level
interface to write efficient, scalable and asynchronous FTP servers with
Python. It is the most complete @url{http://www.faqs.org/rfcs/rfc959.html,
RFC-959} FTP server implementation available for Python, and has the following
traits:
@itemize
@item
It is lightweight, fast and scalable.
@item
It uses the @code{sendfile(2)} system call for uploads.
@item
It uses @code{epoll}, @code{kqueue} and @code{select} to handle concurrency
asynchronously.
@item
It supports FTPS (@url{http://tools.ietf.org/html/rfc4217, RFC-4217}),
IPv6 (RFC-2428), Unicode file names (@url{http://tools.ietf.org/html/rfc2640,
RFC-2640}) and MLSD/MLST commands (RFC-3659).
@item
It has a flexible system of @samp{authorizers} able to manage both
@samp{virtual} and @samp{real} users.
@end itemize")
(license license:expat)))
(define-public python-fs
(package
(name "python-fs")
(version "2.4.16")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fs" version))
(sha256
(base32 "04ykd7q49qgv13hl2n71lzihs2c9099r50lmd85vgx0k2bawg5xf"))))
(build-system python-build-system)
(arguments
(list
#:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
(invoke "pytest" "-m" "not slow")))))))
(propagated-inputs
(list python-appdirs python-pytz python-six))
(native-inputs
(list python-mock python-parameterized python-pyftpdlib python-pytest))
(home-page "https://github.com/PyFilesystem/pyfilesystem2/")
(synopsis "File system abstraction layer for Python")
(description "PyFilesystem's @code{FS} object is a file system abstraction
sharing similarities with Python's own @code{file} object for single files.
It allows opening all the files under a given directory recursively, as a
single @code{FS} object. This enables, for example, counting the combined
number of lines in the contained files easily.")
(license license:expat)))
;;; Tests are left out in the main package to avoid cycles.
(define-public python-fonttools
(hidden-package
(package
(name "python-fonttools")
(version "4.28.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "fonttools" version ".zip"))
(sha256
(base32
"1jhl5n3rfqq7fznvsh6r80n7ylap1a7ppq1040y8cflhyz80ap2l"))))
(build-system python-build-system)
(native-inputs
(list unzip))
(arguments '(#:tests? #f))
(home-page "https://github.com/fonttools/fonttools")
(synopsis "Tools to manipulate font files")
(description
"FontTools/TTX is a library to manipulate font files from Python. It
supports reading and writing of TrueType/OpenType fonts, reading and writing
of AFM files, reading (and partially writing) of PS Type 1 fonts. The package
also contains a tool called “TTX” which converts TrueType/OpenType fonts to and
from an XML-based format.")
(license license:expat))))
;;; Rename 'python-fonttools' in next cycle, renaming the current
;;; 'python-fonttools' to 'python-fonttools-minimal'.
(define-public python-fonttools-full
(package/inherit python-fonttools
(arguments
(substitute-keyword-arguments (package-arguments python-fonttools)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases '%standard-phases)
`(modify-phases ,phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-k"
;; XXX: These tests need .trm files that are
;; not shipped with the PyPI release.
(format #f "not ~a"
(string-join
'("test_read_fontdimens_mathsy"
"test_read_fontdimens_mathex"
"test_read_fontdimens_vanilla"
"test_read_boundary_char"
"fontTools.tfmLib")
" and not "))))))))))
(native-inputs
(modify-inputs (package-native-inputs python-fonttools)
(append python-pytest)))
(propagated-inputs
(list python-brotli
python-fs
python-lxml
python-lz4
python-scipy
python-unicodedata2
python-zopfli))
(properties (alist-delete 'hidden? (package-properties python-fonttools)))))
(define-public python-fonttools-next
(package
(inherit python-fonttools-full)
(version "4.37.1")
(source (origin
(inherit (package-source python-fonttools-full))
(method url-fetch)
(uri (pypi-uri "fonttools" version ".zip"))
(sha256
(base32
"1ryc1wca2v92wn24baryj5fr32lspl8rbsig32fnkxp1islf21j6"))))))
(define-public python-ly
(package
(name "python-ly")
(version "0.9.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
(base32
"0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl"))))
(build-system python-build-system)
(arguments
;; FIXME: Some tests need network access.
'(#:tests? #f))
(synopsis "Tool and library for manipulating LilyPond files")
(description "This package provides a Python library to parse, manipulate
or create documents in LilyPond format. A command line program ly is also
provided that can be used to do various manipulations with LilyPond files.")
(home-page "https://pypi.org/project/python-ly/")
(license license:gpl2+)))
(define-public python-appdirs
(package
(name "python-appdirs")
(version "1.4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "appdirs" version))
(sha256
(base32
"14id6wxi12lgyw0mg3bcfnf888ad07jz9yj46gfzhn186z8rcn4y"))))
(build-system python-build-system)
(home-page "https://github.com/ActiveState/appdirs")
(synopsis
"Determine platform-specific dirs, e.g. a \"user data dir\"")
(description
"This module provides a portable way of finding out where user data
should be stored on various operating systems.")
(license license:expat)))
(define-public python-gorilla
(package
(name "python-gorilla")
(version "0.3.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "gorilla" version))
(sha256
(base32
"0b40blcp6fih4nvqbilra4qw1dfccv1ahjmr41ac4d9rjadqkcpy"))))
(build-system python-build-system)
(home-page "https://github.com/christophercrouzet/gorilla")
(synopsis "Convenient monkey patching with Python")
(description
"Gorilla is a Python library that provides a convenient approach to
monkey patching. Monkey patching is the process of modifying module and
class attributes at runtime with the purpose of replacing or extending
third-party code.")
(license license:expat)))
(define-public python-llfuse
(package
(name "python-llfuse")
(version "1.4.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "llfuse" version))
(sha256
(base32
"1jaf790rsxvz3hs9fbr3hrnmg0xzl6a2bqfa10bbbsjsdbcpk762"))))
(build-system python-build-system)
(inputs
(list fuse attr))
(native-inputs
(list pkg-config python-pytest))
(synopsis "Python bindings for FUSE")
(description
"Python-LLFUSE is a set of Python bindings for the low level FUSE API.")
(home-page "https://bitbucket.org/nikratio/python-llfuse/")
(license license:lgpl2.0+)))
(define-public python-msgpack
(package
(name "python-msgpack")
(version "1.0.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "msgpack" version))
(sha256
(base32
"0pqzy1zclyhd42gfibhkcqymbspy5a6v421g87mh40h3iz0nkn7m"))))
(build-system python-build-system)
(arguments
`(#:modules ((guix build utils)
(guix build python-build-system)
(ice-9 ftw)
(srfi srfi-1)
(srfi srfi-26))
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-v" "test"))))))
(native-inputs
(list python-pytest))
(synopsis "MessagePack (de)serializer")
(description "MessagePack is a fast, compact binary serialization format,
suitable for similar data to JSON. This package provides CPython bindings for
reading and writing MessagePack data.")
(home-page "https://pypi.org/project/msgpack/")
(license license:asl2.0)))
(define-public python-msgpack-1.0.2
(package
(inherit python-msgpack)
(version "1.0.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "msgpack" version))
(sha256
(base32
"1109s2yynrahwi64ikax68hx0mbclz8p35afmpphw5dwynb49q7s"))))))
;; This msgpack library's name changed from "python-msgpack" to "msgpack" with
;; release 0.5. Some packages like borg still call it by the old name for now.
;; <https://bugs.gnu.org/30662>
(define-public python-msgpack-transitional
(package
(inherit python-msgpack)
(name "python-msgpack-transitional")
(version "0.5.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "msgpack" version))
(sha256
(base32
"1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
(arguments
(substitute-keyword-arguments (package-arguments python-msgpack)
((#:phases phases)
`(modify-phases ,phases
(add-after 'unpack 'configure-transitional
(lambda _
;; Keep using the old name.
(substitute* "setup.py"
(("TRANSITIONAL = False")
"TRANSITIONAL = 1"))
;; This old version is not compatible with Python 3.9
(substitute* '("test/test_buffer.py" "test/test_extension.py")
((".tostring\\(") ".tobytes("))
(substitute* '("test/test_buffer.py" "test/test_extension.py")
((".fromstring\\(") ".frombytes("))
#t))))))))
(define-public python-netaddr
(package
(name "python-netaddr")
(version "0.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "netaddr" version))
(sha256
(base32
"0hx2npi0wnhwlcybilgwlddw6qffx1mb7a3sj4p9s7bvl33mgk6n"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ;; No tests.
(home-page "https://github.com/drkjam/netaddr/")
(synopsis "Pythonic manipulation of network addresses")
(description
"A Python library for representing and manipulating IPv4, IPv6, CIDR, EUI
and MAC network addresses.")
(license license:bsd-3)))
(define-public python-openstep-plist
(package
(name "python-openstep-plist")
(version "0.3.0")
(home-page "https://github.com/fonttools/openstep-plist")
(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
"1rxjgzh0p069ncsr2986rn32vhdqyq35irbqg2559jh18456mkca"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'pretend-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
#$(package-version this-package))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-cython python-pytest python-setuptools-scm))
(synopsis "OpenStep plist parser and writer")
(description
"This package provides a parser for the \"old style\" OpenStep property
list format (also known as ASCII plist), written in Cython.")
(license license:expat)))
(define-public python-wrapt
(package
(name "python-wrapt")
(version "1.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wrapt" version))
(sha256
(base32
"1q81762dgsgrd12f8qc39zk8s5wll3m5xc32jdmlf6cls4gh4njn"))))
(build-system python-build-system)
(arguments
;; Tests are not included in the tarball, they are only available in the
;; git repository.
`(#:tests? #f))
(home-page "https://github.com/GrahamDumpleton/wrapt")
(synopsis "Module for decorators, wrappers and monkey patching")
(description
"The aim of the wrapt module is to provide a transparent object proxy for
Python, which can be used as the basis for the construction of function
wrappers and decorator functions.")
(license license:bsd-2)))
(define-public python-commentjson
(package
(name "python-commentjson")
(version "0.9.0")
(source (origin
;; The PyPI release is missing some test files.
(method git-fetch)
(uri (git-reference
(url "https://github.com/vaidik/commentjson")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"01iscgrc6bkyrxbzmf46csbf9c0n7g6dygdmxs3fq8fkzrrciybl"))))
(build-system python-build-system)
(arguments
`(#:modules ((guix build python-build-system)
(guix build utils)
(ice-9 ftw)
(ice-9 textual-ports))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
(("lark-parser>=0.7.1,<0.8.0")
"lark-parser>=0.7.1"))))
(add-after 'unpack 'delete-unspported-tests
;; Some tests rely on the 'test' module of Python itself,
;; which is not available with the Python package in Guix;
;; remove them.
(lambda _
;; XXX: Copied from (guix build dub-build-system).
(define (grep string file-name)
(string-contains (call-with-input-file file-name get-string-all)
string))
(with-directory-excursion "commentjson/tests/test_json"
(let* ((dot? (lambda (x) (member x '("." ".."))))
(test-files (scandir "." (negate dot?))))
(for-each delete-file
(filter (lambda (f) (grep "from test." f))
test-files)))))))))
(propagated-inputs
(list python-lark-parser))
(native-inputs
(list python-six))
(home-page "https://github.com/vaidik/commentjson")
(synopsis "Python library for adding comments to JSON files")
(description "Comment JSON is a Python package that helps you create JSON
files with Python and JavaScript style inline comments. Its API is very
similar to the Python standard library's @code{json} module.")
(license license:expat)))
(define-public python-resolvelib
(package
(name "python-resolvelib")
(version "0.7.1")
(source
(origin
;; Tests are missing from the PyPI release.
(method git-fetch)
(uri (git-reference
(url "https://github.com/sarugaku/resolvelib")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1fqz75riagizihvf4j7wc3zjw6kmg1dd8sf49aszyml105kb33n8"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest")))))))
(native-inputs
(list python-commentjson python-packaging python-pytest))
(home-page "https://github.com/sarugaku/resolvelib")
(synopsis "Abstract dependencies resolver")
(description "The ResolveLib library provides a @code{Resolver} class that
includes dependency resolution logic.")
(license license:isc)))
;;; This older version is required by ansible-core.
(define-public python-resolvelib-0.5
(package/inherit python-resolvelib
(name "python-resolvelib")
(version "0.5.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sarugaku/resolvelib")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0697y330sqhiclk25v151qxg7aixzpj434lbg5qib0qlna5zg9la"))))))
(define-public python-commonmark
(package
(name "python-commonmark")
(version "0.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "commonmark" version))
(sha256
(base32 "0q7d39lm8kcingpmykk5r959hrwwj6v2icyw3mihczxyb749sbs5"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "python" "setup.py" "test"))))))
(home-page "https://github.com/readthedocs/commonmark.py")
(synopsis "Python parser for the CommonMark Markdown spec")
(description
"This module is a pure Python port of jgm's @code{commonmark.js}, a
Markdown parser and renderer for the CommonMark specification, using only
native modules.")
(license license:bsd-3)))
(define-public python-xlrd
(package
(name "python-xlrd")
(version "2.0.1")
(source (origin
;; The tests are not included in the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/python-excel/xlrd")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"170asszffvf6rh5w169ic4h5kxgjkmdl3060vw737d4g1qfifvzz"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "http://www.python-excel.org/")
(synopsis "Library for extracting data from Excel files")
(description "This package provides a library to extract data from
spreadsheets using Microsoft Excel proprietary file formats @samp{.xls} and
@samp{.xlsx} (versions 2.0 onwards). It has support for Excel dates and is
Unicode-aware. It is not intended as an end-user tool.")
(license license:bsd-3)))
;;; Note: this package is unmaintained since 2018 (archived on GitHub).
(define-public python-xlwt
(package
(name "python-xlwt")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xlwt" version))
(sha256
(base32 "123c2pdamshkq75wwvck8fq0cjq1843xd3x9qaiz2a4vg9qi56f5"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "GUIX_PYTHONPATH"
(string-append (getcwd) "/build/lib:"
(getenv "GUIX_PYTHONPATH")))
(invoke "nosetests" "-v")))))))
(native-inputs
`(("nose" ,python-nose)))
(home-page "http://www.python-excel.org/")
(synopsis "Library for creating spreadsheet Excel files")
(description "@code{xlwt} is a library for writing data and formatting
information to older Excel files (i.e. .xls). The package itself is pure
Python with no dependencies on modules or packages outside the standard Python
distribution. It is not intended as an end-user tool.")
(license license:bsd-3)))
(define-public python-immutables
(package
(name "python-immutables")
(version "0.18")
(source
(origin
(method url-fetch)
(uri (pypi-uri "immutables" version))
(sha256
(base32 "1x4cinh0xbl6p6p2yfm2s07mxxy3lf0zzai9gqpydk4482bwfdjk"))))
(build-system python-build-system)
(native-inputs (list python-mypy python-pytest))
(home-page "https://github.com/MagicStack/immutables")
(synopsis "High-performance immutable mapping type for Python")
(description
"An immutable mapping type for Python. The underlying datastructure is a
Hash Array Mapped Trie (HAMT) used in Clojure, Scala, Haskell, and other
functional languages.")
(license license:asl2.0)))
(define-public python-prettytable
(package
(name "python-prettytable")
(version "3.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "prettytable" version))
(sha256
(base32
"1c599w31i2ndzbkn85xwsgv9sd2j16r56dl922w4jh3rs97vb3hi"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest
python-pytest-lazy-fixture
python-setuptools-scm))
(propagated-inputs (list python-wcwidth))
(home-page "https://github.com/jazzband/prettytable")
(synopsis "Display tabular data in an ASCII table format")
(description
"A library designed to represent tabular data in visually appealing ASCII
tables. PrettyTable allows for selection of which columns are to be printed,
independent alignment of columns (left or right justified or centred) and
printing of sub-tables by specifying a row range.")
(license license:bsd-3)))
(define-public python-rtf-tokenize
(package
(name "python-rtf-tokenize")
(version "1.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "rtf_tokenize" version))
(sha256
(base32
"026njb9iwznycda83bln3gfivcnzdz6vy8y86xvbsy84s28g6gaw"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/benoit-pierre/rtf_tokenize")
(synopsis "Simple RTF tokenizer")
(description "This package is a simple RTF tokenizer.")
(license license:gpl2+)))
(define-public python-curio
(package
(name "python-curio")
(version "1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "curio" version))
(sha256
(base32 "045wwg16qadsalhicbv21p14sj8i4w0l57639j7dmdqbb4p2225g"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "-k"
(string-append
;; Tries to open an outgoing connection.
"not test_ssl_outgoing "
;; This test fails since Python 3.9.9 (see:
;; https://github.com/dabeaz/curio/issues/347).
"and not test_timeout"))))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/dabeaz/curio")
(synopsis "Coroutine-based library for concurrent Python")
(description
"Curio is a coroutine-based library for concurrent Python systems
programming. It provides standard programming abstractions such as as
tasks, sockets, files, locks, and queues.")
(license license:bsd-3)))
(define-public python-tables
(package
(name "python-tables")
(version "3.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tables" version))
(sha256
(base32
"0j8vnxh2m5n0cyk9z3ndcj5n1zj5rdxgc1gb78bqlyn2lyw75aa9"))
(modules '((guix build utils)))
(snippet
'(begin
;; Remove pre-compiled .pyc files from source.
(for-each delete-file-recursively
(find-files "." "__pycache__" #:directories? #t))
(for-each delete-file (find-files "." "\\.pyc$"))
#t))))
(build-system python-build-system)
(arguments
`(;; FIXME: python-build-system does not pass configure-flags to "build"
;; or "check", so we must override the build and check phases.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'use-gcc
(lambda _
(substitute* "setup.py"
(("^( +)compiler = new_compiler\\(\\)" line indent)
(string-append line
"\n"
indent
"compiler.set_executables(compiler='gcc',"
"compiler_so='gcc',"
"linker_exe='gcc',"
"linker_so='gcc -shared')")))
#t))
(add-after 'unpack 'disable-tuning
(lambda _
(substitute* "setup.py"
(("cpu_flags = .*")
"cpu_flags = ['sse2']\n"))
#t))
(replace 'build
(lambda* (#:key inputs #:allow-other-keys)
(invoke "python" "setup.py" "build"
(string-append "--hdf5="
(assoc-ref inputs "hdf5")))))
(replace 'check
(lambda* (#:key inputs #:allow-other-keys)
(invoke "python" "setup.py" "check"
(string-append "--hdf5="
(assoc-ref inputs "hdf5"))))))))
(propagated-inputs
(list python-numexpr python-numpy))
(native-inputs
(list python-cython pkg-config))
(inputs
(list hdf5-1.10 bzip2 zlib))
(home-page "https://www.pytables.org/")
(synopsis "Hierarchical datasets for Python")
(description "PyTables is a package for managing hierarchical datasets and
designed to efficiently cope with extremely large amounts of data.")
(license license:bsd-3)))
(define-public python-sniffio
(package
(name "python-sniffio")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sniffio" version))
(sha256
(base32 "1pnkvi6wvn4qd37y69n1ls6n8l63gfmn3pvb1jb50gqxxkn6wrn4"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(native-inputs
(list python-curio python-pytest python-pytest-cov))
(home-page "https://github.com/python-trio/sniffio")
(synopsis "Detect which async library a program is running under")
(description "This package detects which async library a program is
running under. It supports multiple async I/O packages, like Trio, and
asyncio.")
;; Either license applies.
(license (list license:expat license:asl2.0))))
(define-public python-pytest-black
(package
(name "python-pytest-black")
(version "0.3.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pytest-black" version))
(sha256
(base32
"19bmbcnaq02md8nnj6pywri3vps8sxnhysbfy386qkbn9w09ncqx"))))
(build-system python-build-system)
(propagated-inputs
(list python-pytest python-black python-toml))
(native-inputs
(list python-setuptools-scm))
(home-page "https://github.com/shopkeep/pytest-black")
(synopsis "Pytest plugin to enable format checking with black")
(description
"This package provides a pytest plugin to enable format checking with the
Python code formatter \"black\".")
(license license:expat)))
(define-public python-geojson
(package
(name "python-geojson")
(version "2.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "geojson" version))
(sha256
(base32 "12k5bzqskvq3gqzkryarhdjl0df47y5k9cf8r3clasi2wjnbfjvf"))))
(build-system python-build-system)
(arguments
;; https://github.com/jazzband/geojson/issues/175
`(#:tests? #f))
(home-page "https://github.com/jazzband/geojson")
(synopsis "Python bindings and utilities for GeoJSON")
(description
"This package provides Python bindings and utilities for
@uref{http://geojson.org/, GeoJSON}, a format for encoding geographic data
structures.")
(license license:bsd-3)))
(define-public wfetch
(let ((commit "e1cfa37814aebc9eb56ce994ebe877b6a6f9a715")
(revision "1"))
(package
(name "wfetch")
(version (git-version "0.1-pre" revision commit))
(home-page "https://github.com/Gcat101/Wfetch")
(source
(origin
(method git-fetch)
(uri (git-reference (url home-page)
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1dmr85plx8zr6s14ym3r32g6crwxghkval5a24ah90ijx4dbn5q5"))))
(build-system python-build-system)
(arguments
`(#:use-setuptools? #f ; no setup.py
#:tests? #f ; no test suite
#:phases
(modify-phases %standard-phases
(delete 'build)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(share (string-append out "/share")))
(mkdir-p share)
(substitute* "wfetch/wfetch.py"
(("os.sep, 'opt', 'wfetch'") (string-append "'" share "'")))
(install-file "wfetch/wfetch.py" bin)
(copy-recursively "wfetch/icons" share)))))))
(inputs (list python-pyowm python-fire python-termcolor python-requests))
(synopsis "Command-line tool to display weather info")
(description
"This package provides a tool similar to Neofetch/pfetch, but for
weather: it can display the weather condition, temperature, humidity, etc.
To use it, you must first run:
@example
export WEATHER_CLI_API=@var{your OpenWeatherMap API key}
@end example\n")
(license license:gpl3+))))
(define-public python-get-version
(package
(name "python-get-version")
(version "2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "get_version" version))
(sha256
(base32
"1g15jyx33vkxavv9hwv275cs4g9bp2i1y942raw3fxamq8kbaml1"))))
(build-system python-build-system)
(propagated-inputs
(list python-pygments
python-pytest
python-pytest-black
python-pytest-cov
python-setuptools
python-testpath))
(home-page "https://github.com/flying-sheep/get_version")
(synopsis "Version helper in the spirit of versioneer")
(description
"This package provides a version helper that lets you automatically use
the latest @code{vX.X.X} Git tag as the version in your Python package. It
also supports getting the version from Python source distributions or, once
your package is installed, via @code{pkg_resources} (part of
@code{setuptools}).")
(license license:gpl3+)))
(define-public python-filetype
(package
(name "python-filetype")
(version "1.0.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "filetype" version))
(sha256
(base32 "05mkinkcn36v1cnb5hzay3zxmv7jmmflckxxp08rgzbkkf3i9pvp"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-k"
(string-append
;; Both tests fail with FileNotFoundError.
"not test_infer_zip_from_disk"
" and not test_infer_tar_from_disk"))))))))
(native-inputs
(list python-pytest python-pytest-benchmark))
(home-page "https://github.com/h2non/filetype.py")
(synopsis "Infer file type and MIME type of any file/buffer")
(description "@code{filetype} is a small and dependency free Python
package to infer file type and MIME type checking the magic numbers
signature of a file or buffer.")
(license license:expat)))
(define-public python-cachelib
(package
(name "python-cachelib")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cachelib" version))
(sha256
(base32 "0p4chkvbvffcllsny5rpzmsq2vyr24ql3kzif4ha0fxp3fp7vqk8"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest")))))))
(native-inputs
(list python-pytest python-pytest-xprocess))
(home-page "https://github.com/pallets/cachelib")
(synopsis "Collection of cache libraries")
(description "Cachelib is a library extracted from @code{werkzeug} which
provides a collection of cache libraries in the same API interface.")
(license license:bsd-3)))
(define-public python-pylru
(package
(name "python-pylru")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pylru" version))
(sha256
(base32 "15yj46307sw703vjfkgnr04dqvaicmfcj0hc6yrciildp55r6bs9"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "test.py")))))))
(home-page "https://github.com/jlhutch/pylru")
(synopsis "Least recently used (LRU) cache implementation")
(description
"Pylru implements a true LRU cache along with several support classes.
Pylru provides a cache class with a simple dict interface. It also provides
classes to wrap any object that has a dict interface with a cache. Both
write-through and write-back semantics are supported. Pylru also provides
classes to wrap functions in a similar way, including a function decorator.")
(license license:gpl2+)))
(define-public python-legacy-api-wrap
(package
(name "python-legacy-api-wrap")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "legacy-api-wrap" version))
(sha256
(base32
"06qhp0g543dy98vpa41hwdalvdbsjfc3ldk474yr9sd75mhl8jh3"))))
(build-system python-build-system)
(propagated-inputs
(list python-get-version python-pytest python-pytest-black
python-pytest-cov python-setuptools))
(home-page "https://github.com/flying-sheep/legacy-api-wrap")
(synopsis "Legacy API wrapper")
(description "This module defines a decorator to wrap legacy APIs. The
primary use case is APIs defined before keyword-only parameters existed.")
(license license:gpl3+)))
(define-public python-langdetect
(package
(name "python-langdetect")
(version "1.0.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "langdetect" version))
(sha256
(base32 "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(home-page "https://github.com/Mimino666/langdetect")
(synopsis "Language detection library")
(description
"This library is a port of Nakatani Shuyo's language-detection library
(version from 03/03/2014) to Python.")
(license license:expat)))
(define-public python-pyasn1
(package
(name "python-pyasn1")
(version "0.4.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyasn1" version))
(sha256
(base32
"1fnhbi3rmk47l9851gbik0flfr64vs5j0hbqx24cafjap6gprxxf"))))
(build-system python-build-system)
(home-page "http://pyasn1.sourceforge.net/")
(synopsis "ASN.1 types and codecs")
(description
"This is an implementation of ASN.1 types and codecs in Python. It is
suitable for a wide range of protocols based on the ASN.1 specification.")
(license license:bsd-2)))
(define-public python-pyasn1-modules
(package
(name "python-pyasn1-modules")
(version "0.2.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyasn1-modules" version))
(sha256
(base32
"0pp6dcagd8c2c9qx3lahc1rdwlnmm0y0siqr5icjq2r32b3q8pwh"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyasn1))
(home-page "https://sourceforge.net/projects/pyasn1/")
(synopsis "ASN.1 codec implementations")
(description
"Pyasn1-modules is a collection of Python modules providing ASN.1 types and
implementations of ASN.1-based codecs and protocols.")
(license license:bsd-3)))
(define-public python-ipaddress
(package
(name "python-ipaddress")
(version "1.0.23")
(source (origin
(method url-fetch)
(uri (pypi-uri "ipaddress" version))
(sha256
(base32
"1qp743h30s04m3cg3yk3fycad930jv17q7dsslj4mfw0jlvf1y5p"))))
(build-system python-build-system)
(home-page "https://github.com/phihag/ipaddress")
(synopsis "IP address manipulation library")
(description
"This package provides a fast, lightweight IPv4/IPv6 manipulation library
in Python. This library is used to create, poke at, and manipulate IPv4 and
IPv6 addresses and networks.")
(license license:psfl)))
(define-public python-asn1tools
(package
(name "python-asn1tools")
(version "0.158.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "asn1tools" version))
(sha256
(base32 "1k88a1azmyvp2ab6qcf2i40dig5abhyn7cmlyhmwwh8kr3syvma0"))))
(build-system python-build-system)
(propagated-inputs
(list python-bitstruct python-diskcache python-prompt-toolkit
python-pyparsing))
(home-page "https://github.com/eerimoq/asn1tools")
(synopsis "ASN.1 parsing, encoding and decoding")
(description "This package provides ASN.1 parsing, encoding and decoding
for Python, including constraints checking. It supports several
codecs (e.g. BER, PER, UPER, XER) as well as limited C source code generating
for OER and UPER.")
(license license:expat)))
(define-public python-idna
(package
(name "python-idna")
(version "3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "idna" version))
(sha256
(base32
"0v8f6qjfi5i7qc5icsbv2pi24qy6k6m8wjqjvdf2sxjvlpq3yr4x"))))
(build-system python-build-system)
(home-page "https://github.com/kjd/idna")
(synopsis "Internationalized domain names in applications")
(description
"This is a library to support the Internationalised Domain Names in
Applications (IDNA) protocol as specified in RFC 5891. This version of the
protocol is often referred to as “IDNA2008” and can produce different results
from the earlier standard from 2003. The library is also intended to act as a
suitable drop-in replacement for the “encodings.idna” module that comes with
the Python standard library but currently only supports the older 2003
specification.")
(license license:bsd-4)))
(define-public python-libsass
(package
(name "python-libsass")
(version "0.20.1")
(source
(origin
;; PyPI tarball is missing some test files.
(method git-fetch)
(uri (git-reference
(url "https://github.com/sass/libsass-python")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1r0kgl7i6nnhgjl44sjw57k08gh2qr7l8slqih550dyxbf1akbxh"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; Use Guix package of libsass instead of compiling from a checkout.
(add-before 'build 'set-libsass
(lambda _ (setenv "SYSTEM_SASS" "indeed")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "sasstests.py"))))
(add-after 'install 'delete-test
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Delete sasstests.py because it attempts to open a file
;; that is not installed when loaded, which breaks the sanity
;; check.
(delete-file (string-append
(assoc-ref outputs "out")
"/lib/python"
(python-version
(dirname (dirname
(search-input-file inputs "bin/python"))))
"/site-packages/sasstests.py")))))))
(native-inputs
(list python-pytest python-werkzeug))
(inputs
(list libsass))
(propagated-inputs
(list python-six))
(home-page "https://sass.github.io/libsass-python/")
(synopsis "Straightforward binding of libsass for Python")
(description
"This package provides a simple Python extension module @code{sass} which
is binding LibSass.")
(license license:expat)))
(define-public python-idna-ssl
(package
(name "python-idna-ssl")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "idna-ssl" version))
(sha256
(base32
"0ydrc8hpg9mdr5hqq1lqfsfbn6sjq69slwpfrnlrm3k0phqg14qj"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;circular dependency with python-aiohttp
(propagated-inputs (list python-idna))
(home-page "https://github.com/aio-libs/idna-ssl")
(synopsis "Patch @code{ssl.match_hostname} for Unicode(idna) domains support")
(description "Patch @code{ssl.match_hostname} for Unicode(idna)
domains support.")
(license license:expat)))
;;; Variant used to break a cycle with python-pip-run-bootstrap.
(define-public python-path-bootstrap
(hidden-package
(package
(name "python-path-bootstrap")
(version "16.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "path" version))
(sha256
(base32 "0lig13gxnfv98v790db1smvsbd3mnj7y8rwyiwhfi6xiqibygwms"))))
(build-system pyproject-build-system)
(arguments
(list #:tests? #f))
(native-inputs (list python-setuptools-scm))
(home-page "https://github.com/jaraco/path")
(synopsis "Object-oriented file system path manipulation library")
(description "@code{path} (formerly @code{path.py}) implements path
objects as first-class entities, allowing common operations on files to be
invoked on those path objects directly.")
(license license:expat))))
(define-public python-path
(package/inherit python-path-bootstrap
(name "python-path")
(arguments
(substitute-keyword-arguments
(package-arguments python-path-bootstrap)
((#:tests? _ #f)
(not (%current-target-system)))
((#:test-flags flags #~'())
#~(append (list "-k"
(string-append
;; Do not test the myproject.toml build as it tries
;; to pull dependencies from the Internet.
"not project "
;; This tests assumes a root user exists.
"and not test_get_owner"))
#$flags))))
(native-inputs
(modify-inputs (package-native-inputs python-path-bootstrap)
(append python-appdirs
python-packaging
python-pygments
python-pytest
python-pytest-black
python-pytest-checkdocs
python-pytest-cov
python-pytest-enabler
python-pytest-flake8
python-pytest-mypy)))
(properties (alist-delete 'hidden?
(package-properties
python-path-bootstrap)))))
(define-public python-pathpy
(deprecated-package "python-pathpy" python-path))
(define-public python-pretend
(package
(name "python-pretend")
(version "1.0.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pretend" version))
(sha256
(base32
"040vm94lcbscg5p81g1icmwwwa2jm7wrd1ybmxnv1sz8rl8bh3n9"))))
(build-system python-build-system)
(home-page "https://github.com/alex/pretend")
(synopsis "Library for stubbing in Python")
(description
"Pretend is a library to make stubbing with Python easier. Stubbing is a
technique for writing tests. You may hear the term mixed up with mocks,
fakes, or doubles. Basically, a stub is an object that returns pre-canned
responses, rather than doing any computation.")
(license license:bsd-3)))
;;; Variant used to break a dependency cycle with
;;; python-pytest-perf-bootstrap.
(define-public python-pip-run-bootstrap
(hidden-package
(package
(name "python-pip-run-bootstrap")
(version "8.8.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jaraco/pip-run")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0ycrjj3jgqcr9c2k7y8vprq65iblg0q0hvwz8zwi13gmb0ffds0c"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'pretend-version
;; The version string is usually derived via setuptools-scm, but
;; without the git metadata available this fails.
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs (list python-setuptools-scm))
(propagated-inputs (list python-autocommand python-path-bootstrap
python-packaging))
(home-page "https://github.com/jaraco/pip-run")
(synopsis "Dynamic dependency loader for Python")
(description "The @command{pip-run} command provides on-demand temporary
package installation for a single interpreter run. It replaces this series of
commands:
@example
$ virtualenv --python pythonX.X --system-site-packages /tmp/env
$ /tmp/env/bin/pip install pkg1 pkg2 -r reqs.txt
$ /tmp/env/bin/python ...
$ rm -rf /tmp/env
@end example")
(license license:expat))))
(define-public python-pip-run
(package/inherit python-pip-run-bootstrap
(name "python-pip-run")
(arguments
(substitute-keyword-arguments (package-arguments python-pip-run-bootstrap)
((#:tests? _ #f)
(not (%current-target-system)))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-k"
(string-append
;; Do not test the myproject.toml build as it tries
;; to pull dependencies from the internet.
"not project "
;; These tests attempt to install dependencies from
;; the network and fail.
"and not test_pkg_imported "
"and not test_pkg_loaded_from_alternate_index ")))))))))
(propagated-inputs
(modify-inputs (package-propagated-inputs python-pip-run-bootstrap)
(replace "python-path-bootstrap" python-path)))
(native-inputs
(modify-inputs (package-native-inputs python-pip-run-bootstrap)
(append python-nbformat
python-pygments
python-pytest
python-pytest-black
python-pytest-checkdocs
python-pytest-cov
python-pytest-enabler
python-pytest-flake8
python-pytest-mypy)))
(properties (alist-delete 'hidden? (package-properties
python-pip-run-bootstrap)))))
(define-public python-tlsh
(package
(name "python-tlsh")
(version "4.11.2")
(home-page "https://github.com/trendmicro/tlsh")
(source
(origin
(method git-fetch)
(uri (git-reference (url home-page) (commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1gb5j73nw3nmx030rf8pm75rns5syxhv44zxr6i74kjicyly1i9w"))))
(build-system cmake-build-system)
(arguments
(list #:out-of-source? #f
#:phases
#~(modify-phases %standard-phases
(replace 'install
(lambda _
;; Build and install the Python bindings. The underlying
;; C++ library is apparently not meant to be installed.
(with-directory-excursion "py_ext"
(and (system* "python" "setup.py" "build")
(system* "python" "setup.py" "install"
(string-append "--prefix=" #$output))))))
;; Delay tests until the phase above has run.
(delete 'check)
(add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys)
(substitute* "Testing/python_test.sh"
;; The script sets up a working PYTHONPATH, but does not
;; export it for all subsequent test commands. Fix that.
(("^PYTHONPATH=\".*" all)
(string-append all "\nexport PYTHONPATH\n")))
(when tests?
(with-directory-excursion "Testing"
(invoke "./python_test.sh"))))))))
(inputs (list python-wrapper)) ;for the bindings
(synopsis "Fuzzy matching library for Python")
(description
"Trend Micro Locality Sensitive Hash (TLSH) is a fuzzy matching library.
Given a byte stream with a minimum length of 256 bytes, TLSH generates a hash
value which can be used for similarity comparisons. Similar objects have
similar hash values, which allows for the detection of similar objects by
comparing their hash values. The byte stream should have a sufficient amount
of complexity; for example, a byte stream of identical bytes will not generate
a hash value.")
(license license:asl2.0)))
(define-public python-termcolor
(package
(name "python-termcolor")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "termcolor" version))
(sha256
(base32
"0fv1vq14rpqwgazxg4981904lfyp84mnammw7y046491cv76jv8x"))))
(build-system python-build-system)
(arguments
;; There are no tests.
`(#:tests? #f))
(home-page "https://pypi.org/project/termcolor/")
(synopsis "ANSII Color formatting for terminal output")
(description
"This package provides ANSII Color formatting for output in terminals.")
(license license:expat)))
(define-public python-terminaltables
(package
(name "python-terminaltables")
(version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "terminaltables" version))
(sha256
(base32
"109vhldk6nv1z3hzp4dyqf6rjvlhl0y2k5k7qcm9fcrq5swhxszk"))))
(build-system python-build-system)
(home-page "https://github.com/Robpol86/terminaltables")
(synopsis
"Generate simple tables in terminals from a nested list of strings")
(description
"This package makes it easy to draw tables in terminal/console
applications from a list of lists of strings. It supports multi-line rows.")
(license license:expat)))
(define-public python-libarchive-c
(package
(name "python-libarchive-c")
(version "2.9")
(source (origin
(method url-fetch)
(uri (pypi-uri "libarchive-c" version))
(sha256
(base32
"0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-before
'build 'reference-libarchive
(lambda* (#:key inputs #:allow-other-keys)
;; Retain the absolute file name of libarchive.so.
(let ((libarchive (assoc-ref inputs "libarchive")))
(substitute* "libarchive/ffi.py"
(("find_library\\('archive'\\)")
(string-append "'" libarchive
"/lib/libarchive.so'"))))))
(replace 'check
(lambda _ (invoke "pytest" "-vv"))))))
(native-inputs
(list python-mock python-pytest))
(inputs
(list libarchive))
(home-page "https://github.com/Changaco/python-libarchive-c")
(synopsis "Python interface to libarchive")
(description
"This package provides Python bindings to libarchive, a C library to
access possibly compressed archives in many different formats. It uses
Python's @code{ctypes} foreign function interface (FFI).")
(license license:lgpl2.0+)))
(define-public python-file
(package/inherit file
(name "python-file")
(build-system python-build-system)
(arguments
'(#:tests? #f ;no tests
#:configure-flags '("--single-version-externally-managed" "--root=/")
#:phases (modify-phases %standard-phases
(add-before 'build 'change-directory
(lambda _
(chdir "python")
#t))
(add-before 'build 'set-library-file-name
(lambda* (#:key inputs #:allow-other-keys)
(let ((file (assoc-ref inputs "file")))
(substitute* "magic.py"
(("find_library\\('magic'\\)")
(string-append "'" file "/lib/libmagic.so'")))
#t))))))
(inputs `(("file" ,file)))
(native-inputs (if (%current-target-system)
`(("self" ,this-package))
'()))
(synopsis "Python bindings to the libmagic file type guesser")
(description "This package provides Python bindings to the libmagic file
type guesser.
Note that this module and the @code{python-magic} module both provide a
@file{magic.py} file; these two modules, which are different and were
developed separately, both serve the same purpose: provide Python bindings for
libmagic.")))
(define-public python-pydevd
;; Use the latest commit, which includes cleanups that removes Python 2
;; syntax that would fail to build.
(let ((revision "0")
(commit "47e298499ef19563bb2ef5941a57046a35ae6868"))
(package
(name "python-pydevd")
(version (git-version "2.8.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/fabioz/PyDev.Debugger")
(commit commit)))
(modules '((guix build utils)))
(snippet '(begin
;; Delete pre-built binaries.
(for-each delete-file (find-files "." "\\.(so|dylib|dll)"))
;; This source is generated via Cython.
(delete-file "_pydevd_bundle/pydevd_cython.c")))
(file-name (git-file-name name version))
(sha256
(base32
"1yd017dh6xgxrqcyf8kk8jrr0a3zw895yfjih0z5jghyf0rck38q"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
(substitute* "tests_python/test_convert_utilities.py"
;; Add missing trailing '/'.
(("'\\\\\\\\usr\\\\\\\\bin\\\\\\\\') == '/usr/bin" all)
(string-append all "/")))))
(add-after 'unpack 'patch-command-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "_pydevd_bundle/pydevd_api.py"
(("'kill'")
(format #f "~s" (search-input-file inputs "bin/kill")))
(("'pgrep'")
(format #f "~s" (search-input-file inputs "bin/pgrep"))))))
(add-after 'unpack 'generate-sources
(lambda _
(setenv "PYTHONPATH" (getcwd))
(invoke "python" "build_tools/build.py")))
(add-after 'unpack 'adjust-attach-binary-name
(lambda _
(substitute*
'("pydevd_tracing.py"
"pydevd_attach_to_process/add_code_to_python_process.py")
(("def get_(target|python_helper_lib)_filename.*" all)
(format #f "~a return ~s~%" all
(string-append #$output "/lib/attach.so"))))))
(add-after 'unpack 'patch-gdb
(lambda* (#:key inputs #:allow-other-keys)
(substitute*
"pydevd_attach_to_process/add_code_to_python_process.py"
(("'gdb',")
(format #f "~s," (search-input-file inputs "bin/gdb"))))))
(add-after 'build 'build-attach-linux-binary
(lambda _
(invoke #+(cxx-for-target) "-shared" "-o" "attach.so"
"-fPIC" "-nostartfiles"
"pydevd_attach_to_process/linux_and_mac/attach.cpp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "PYDEVD_USE_CYTHON" "YES")
(invoke "pytest" "-vv"
"-n" (number->string (parallel-job-count))
"-k"
(string-append
;; the GUI event loop requires an X server.
"not test_gui_event_loop_custom "
;; This test validates that 'pydevd' is not in the
;; exception message, but it is due to being part
;; of the build file name present in the message.
"and not test_evaluate_exception_trace "
;; These fail on systems with YAMA LSM’s ptrace
;; scope > 0. Upstream issue:
;; https://github.com/fabioz/PyDev.Debugger/issues/218
"and not test_attach_to_pid")))))
(add-after 'install 'install-attach-binary
(lambda _
(install-file "attach.so"
(string-append #$output "/lib"))))
;; Some modules aren't designed to be loadable by themselves, such
;; as 'pydev_app_engine_debug_startup' and fail.
(delete 'sanity-check))))
(native-inputs
(list python-cython
python-numpy
python-psutil
python-pytest
python-pytest-xdist
python-trio
python-untangle))
(inputs (list coreutils gdb procps))
(home-page "https://github.com/fabioz/PyDev.Debugger/")
(synopsis "Python debugger")
(description "PyDev.Debugger is a capable Python debugger used in PyDev
and other @acronym{IDEs, Integrated Development Environments}.")
(license license:epl1.0))))
(define-public python-debugpy
(package
(name "python-debugpy")
(version "1.6.0")
(source
(origin
(method git-fetch)
(uri (git-reference ;no tests in PyPI archive
(url "https://github.com/microsoft/debugpy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(modules '((guix build utils)))
;; Remove the bundled PyDev-Debugger copy, including its pre-built
;; attach binary.
(snippet '(delete-file-recursively "src/debugpy/_vendored"))
(patches (search-patches "python-debugpy-unbundle-pydevd.patch"))
(sha256
(base32
"1dpfzs3p51648i7f3fz8dw5d0vrj39iwn1jhn0226idc02ybyqih"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f ; Fail on systems with YAMA LSM’s ptrace scope > 0.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-sh-in-tests
(lambda _
(substitute* "tests/debugpy/test_run.py"
(("#!/bin/sh")
(string-append "#!" (which "sh"))))))
(add-after 'unpack 'fix-version
;; Versioneer is useless when there is no git metadata.
(lambda _
(substitute* "setup.py"
(("version=versioneer.get_version\\(),")
(format #f "version=~s," #$version)))))
(add-before 'build 'configure
(lambda _
;; This adjusts the behavior of debugpy to load pydevd from
;; Python site packages.
(setenv "DEBUGPY_BUNDLING_DISABLED" "1")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-n" (number->string (parallel-job-count))
"-k"
(string-append
;; These tests cannot be run in parallel because their
;; test data would not be copied by xdist and lead to
;; import errors. (see:
;; https://github.com/microsoft/debugpy/issues/342 and
;; https://github.com/microsoft/debugpy/issues/880).
"not test_custom_python_args "
"and not test_autokill "))))))))
(native-inputs
;; See: https://raw.githubusercontent.com/microsoft/debugpy/
;; main/tests/requirements.txt.
(list python-django
python-gevent
python-flask
python-psutil
python-pytest
python-pytest-cov
python-pytest-timeout
python-pytest-xdist
python-requests))
(propagated-inputs (list python-pydevd))
(home-page "https://aka.ms/debugpy")
(synopsis "Debug Adapter Protocol Python implementation")
(description "An implementation of the Debug Adapter Protocol for
Python.")
(license license:expat)))
(define-public python-debian
(package
(name "python-debian")
(home-page "https://salsa.debian.org/python-debian-team/python-debian")
(version "0.1.36")
(source
(origin
;; Use git-fetch, as pypi doesn't include test suite.
(method git-fetch)
(uri (git-reference
(url home-page)
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0qy6x28bj6yfikhjww932v5xq4mf5bm1iczl7acy4c7zm6mwhqfa"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'set-version
;; for reproducible builds, otherwise python-debian
;; generates a _version.py including the date
(lambda _
(copy-file "lib/debian/_version.py.in" "lib/debian/_version.py")
(substitute* "lib/debian/_version.py"
(("__CHANGELOG_VERSION__") ,version))))
(add-after 'unpack 'remove-debian-specific-tests
;; python-apt, apt and dpkg are not yet available in guix,
;; and these tests heavily depend on them.
(lambda _
(delete-file "lib/debian/tests/test_deb822.py")
(delete-file "lib/debian/tests/test_debfile.py")
#t)))))
(propagated-inputs
(list python-six python-chardet))
(synopsis "Debian package related modules")
(description
;; XXX: Use @enumerate instead of @itemize to work around
;; <http://bugs.gnu.org/21772>.
"This package provides Python modules that abstract many formats of
Debian-related files, such as:
@enumerate
@item Debtags information;
@item @file{debian/changelog} files;
@item packages files, pdiffs;
@item control files of single or multiple RFC822-style paragraphs---e.g.
@file{debian/control}, @file{.changes}, @file{.dsc};
@item Raw @file{.deb} and @file{.ar} files, with (read-only) access to
contained files and meta-information.
@end enumerate\n")
;; Modules are either GPLv2+ or GPLv3+.
(license license:gpl3+)))
(define-public python-json-spec
(package
(name "python-json-spec")
(version "0.10.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "json-spec" version))
(sha256
(base32
"06dpbsq61ja9r89wpa2pzdii47qh3xri9ajdrgn1awfl102znchb"))))
(build-system python-build-system)
(propagated-inputs
(list python-pathlib python-six))
(native-inputs
(list python-pytest))
(home-page "http://py.errorist.io/json-spec")
(synopsis
"JSON Schema, JSON Pointer and JSON Reference for Python")
(description
"This Python library implements several JSON specs, like JSON Schema,
JSON Reference and JSON Pointer.")
(license license:bsd-3)))
(define-public python-fastbencode
(package
(name "python-fastbencode")
(version "0.0.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fastbencode" version))
(modules '((guix build utils)))
;; Delete pre-generated Cython C files.
(snippet '(for-each delete-file (find-files "." "\\.c$")))
(sha256
(base32 "1r66w3vpmvfmssshjpgqaj2m14c8p94nymr96mwn61idajz9mg5n"))))
(build-system python-build-system)
(native-inputs (list python-cython))
(home-page "https://github.com/breezy-team/fastbencode")
(synopsis "Python Bencode (de)serializer with optional fast C extensions")
(description
"The fastbencode Python package implements the bencode serialization
format for storing and transmitting loosely structured data, originally used
by BitTorrent.
The format can encode four different types of values: byte strings, integers,
lists, and dictionaries (associative arrays). It's simple and unaffected by
endianness,
This package includes both a pure-Python version and an optional C extension
based on Cython. Both provide the same functionality, but the C version has
significantly better performance.")
(license (list license:expat ; _bencode_py.py
license:gpl2+)))) ; __init__.py
(define-public python-fastjsonschema
(package
(name "python-fastjsonschema")
(version "2.15.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fastjsonschema" version))
(sha256
(base32 "1ln2j60jzyn6p8i8ljygfgrji58hc23452g7nllkcjdk4p93c7v7"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Fail with a strange backtrace ending in importlib.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "-m" "not benchmark")))))))
(native-inputs
(list python-colorama
python-json-spec
python-jsonschema
python-pylint
python-pytest
python-pytest-benchmark
python-pytest-cache
python-validictory))
(home-page
"https://github.com/horejsek/python-fastjsonschema")
(synopsis
"Fast Python implementation of JSON schema")
(description
"This library implements validation of JSON documents by JSON schema for
drafts 04, 06 and 07.")
(license license:bsd-3)))
(define-public python-nbformat
(package
(name "python-nbformat")
(version "5.3.0")
;; The PyPi release tarball lacks some test cases and test data.
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jupyter/nbformat")
(commit version)))
(sha256
(base32
"114c5c6cvpxhxj8zrw74351gcfzyzjh1jq3py4xf8wk9rahfay9z"))
(file-name (git-file-name name version))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-fastjsonschema python-jsonschema python-jupyter-core
python-traitlets))
(native-inputs
(list python-pytest
python-testpath))
(home-page "https://jupyter.org")
(synopsis "Jupyter Notebook format")
(description "This package provides the reference implementation of the
Jupyter Notebook format and Python APIs for working with notebooks.")
(license license:bsd-3)))
(define-public python-nb-clean
(package
(name "python-nb-clean")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nb-clean" version))
(sha256
(base32 "01qvk9n7rx15dhc23m8bj9bw5wdyxh6y18c5fm8hllmrd3ndsx14"))))
(build-system python-build-system)
(propagated-inputs (list python-nbformat))
(home-page "https://github.com/srstevenson/nb-clean")
(synopsis "Clean Jupyter notebooks for versioning")
(description "This package cleans Jupyter notebooks of cell execution
counts, metadata, outputs, and empty cells, preparing them for committing to
version control. It provides a Git filter to automatically clean notebooks
before they're staged, and can also be used with other version control
systems, as a command line tool, and as a Python library.")
(license license:isc)))
(define-public python-bleach
(package
(name "python-bleach")
(version "5.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bleach" version))
(sha256
(base32 "0rc5avysbsl3w3i2qvb6522263zhwlvf50w0ifs8776w9c2wrmn6"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv")))))))
(propagated-inputs (list python-tinycss2 python-webencodings))
(native-inputs (list python-pytest))
(home-page "https://github.com/mozilla/bleach")
(synopsis "Whitelist-based HTML-sanitizing tool")
(description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
(license license:asl2.0)))
(define-public python-entrypoints
(package
(name "python-entrypoints")
(version "0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "entrypoints" version))
(sha256
(base32
"0lc4si3xb7hza424414rdqdc3vng3kcrph8jbvjqb32spqddf3f7"))))
(build-system python-build-system)
;; The package does not come with a setup.py file, so we have to generate
;; one ourselves.
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'create-setup.py
(lambda _
(call-with-output-file "setup.py"
(lambda (port)
(format port "\
from setuptools import setup
setup(name='entrypoints', version='~a', py_modules=['entrypoints'])
" ,version))))))))
(home-page "https://github.com/takluyver/entrypoints")
(synopsis "Discover and load entry points from installed Python packages")
(description "Entry points are a way for Python packages to advertise
objects with some common interface. The most common examples are
@code{console_scripts} entry points, which define shell commands by
identifying a Python function to run. The @code{entrypoints} module contains
functions to find and load entry points.")
(license license:expat)))
(define-public python-epc
(package
(name "python-epc")
(version "0.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "epc" version))
(sha256
(base32
"09bx1ln1bwa00917dndlgs4k589h8qx2x080xch5m58p92kjwkd1"))))
(build-system python-build-system)
(propagated-inputs
(list python-sexpdata))
(native-inputs
(list python-nose))
(home-page "https://github.com/tkf/python-epc")
(synopsis "Remote procedure call (RPC) stack for Emacs Lisp and Python")
(description
"Python-EPC can call elisp functions from Python and Python functions
from elisp.")
(license license:gpl3)))
(define-public python-forex-python
(package
(name "python-forex-python")
(version "1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "forex-python" version))
(sha256
(base32 "1ma8cl1i2dh8aa99pifnlilyy4d1gd1s07fj0yd17wcbpsh532cj"))))
(build-system python-build-system)
(arguments
;; Tests are not included in the PyPI tarball. Also, the tests in the
;; repository require online data.
`(#:tests? #f))
(propagated-inputs
(list python-requests python-simplejson))
(home-page "https://github.com/MicroPyramid/forex-python")
(synopsis "Foreign exchange rates and currency conversion")
(description
"@code{python-forex-python} can be used to manipulate foreign
exchange rates and to operate currency conversions.
Features:
@itemize
@item List all currency rates.
@item BitCoin price for all currencies.
@item Converting amount to BitCoins.
@item Get historical rates for any day since 1999.
@item Conversion rate for one currency(ex; USD to INR).
@item Convert amount from one currency to other.('USD 10$' to INR).
@item Currency symbols.
@item Currency names.
@end itemize")
(license license:expat)))
(define-public python-simpleeval
(package
(name "python-simpleeval")
(version "0.9.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "simpleeval" version))
(sha256
(base32 "0diysdzvx865yy2rjfah75ha2qfxaxz7r108kp7j2kkd903ya2ry"))))
(build-system python-build-system)
(home-page "https://github.com/danthedeckie/simpleeval")
(synopsis "Simple, safe single expression evaluator library")
(description
"This package provides a quick single file library for easily adding
evaluatable expressions into python projects. Say you want to allow a user
to set an alarm volume, which could depend on the time of day, alarm level,
how many previous alarms had gone off, and if there is music playing at the
time.")
(license license:expat)))
(define-public python-nbconvert
(package
(name "python-nbconvert")
(version "6.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nbconvert" version))
(sha256
(base32
"17g9xq4za7vvzml6l6d8zrzknhxsvgx02hymmsw9d1dygbi4cgi2"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
;; Use pandoc binary from input.
(substitute* "nbconvert/utils/pandoc.py"
(("'pandoc'")
(format #f "~s" (search-input-file inputs "bin/pandoc"))))
;; Same for LaTeX.
(substitute* "nbconvert/exporters/pdf.py"
(("\"xelatex\"")
(format #f "~s" (search-input-file inputs "bin/xelatex")))
(("\"bibtex\"")
(format #f "~s" (search-input-file inputs "bin/bibtex"))))
;; Likewise for Inkscape.
(substitute* "nbconvert/preprocessors/svg2pdf.py"
(("inkscape_path = which\\(\"inkscape\")")
(format #f "inkscape_path = ~s"
(search-input-file inputs "bin/inkscape"))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Tests depend on templates installed to output.
(setenv "JUPYTER_PATH"
(string-append #$output "/share/jupyter:"
(getenv "JUPYTER_PATH")))
;; Step outside of the source directory to avoid having both
;; the installed package *and* the package from the source on
;; Python's path.
(with-directory-excursion "/tmp"
(invoke "pytest" "--pyargs" "nbconvert"
"-vv" "-n" (number->string (parallel-job-count))
"-k"
(string-append
;; These tests require pyppeteer, not yet
;; available in Guix.
"not test_webpdf_with_chromium "
"and not test_webpdf.py "
;; These tests require ipywidgets, which would
;; introduce a dependency cycle.
"and not test_execute_widgets_from_nbconvert "
"and not test_execute_multiple_notebooks ")))))))))
(inputs
(list inkscape/stable pandoc))
(native-inputs
(list python-ipykernel
;; Adding ipywidgets would create a cycle.
;;python-ipywidgets
;;python-pyppeteer ;TODO: package me
python-pytest
python-pytest-xdist))
(propagated-inputs
(list python-beautifulsoup4
python-bleach
python-defusedxml
python-entrypoints
python-jinja2
python-jupyter-core
python-mistune
python-nbclient
python-nbformat
python-pandocfilters
python-pygments
python-jupyterlab-pygments
python-testpath
python-traitlets
;; Required, even if [serve] is not used.
python-tornado-6
;; Required at runtime for `jupyter nbconvert --to=pdf`.
texlive-adjustbox
texlive-booktabs
texlive-caption
texlive-enumitem
texlive-fontspec
texlive-generic-iftex
texlive-grffile
texlive-hyperref
texlive-latex-fancyvrb
texlive-latex-float
texlive-latex-geometry
texlive-latex-jknapltx
texlive-latex-ms
texlive-latex-parskip
texlive-latex-trimspaces
texlive-latex-upquote
texlive-stringenc
texlive-tcolorbox
texlive-titling
texlive-tools
texlive-ulem
texlive-unicode-math
texlive-xcolor
(texlive-updmap.cfg (list texlive-amsfonts
texlive-amsmath
texlive-eurosym
texlive-fonts-rsfs
texlive-jknappen
texlive-latex-ucs
texlive-lm
texlive-lm-math
texlive-mathpazo
texlive-oberdiek
texlive-zapfding))))
(home-page "https://jupyter.org")
(synopsis "Converting Jupyter Notebooks")
(description "The @code{nbconvert} tool, @code{jupyter nbconvert}, converts
notebooks to various other formats via Jinja templates. It allows you to
convert an @code{.ipynb} notebook file into various static formats including:
@enumerate
@item HTML
@item LaTeX
@item PDF
@item Reveal JS
@item Markdown (md)
@item ReStructured Text (rst)
@item executable script
@end enumerate\n")
(license license:bsd-3)))
(define-public python-notebook
(package
(name "python-notebook")
(version "6.4.10")
(source (origin
(method url-fetch)
(uri (pypi-uri "notebook" version))
(sha256
(base32
"03p976xq1l9xf4djwk0snmywd0zck3i6gjngxsl874i8qrmsf214"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'use-our-home-for-tests
(lambda _
;; The 'get_patch_env' function in this file reads:
;; 'HOME': cls.home_dir
;; but for some reason, that definition of HOME is not what the
;; GLib/GIO trash mechanism honors, which would cause test
;; failures. Instead, set 'HOME' here to an existing directory
;; and let the tests honor it.
(substitute* "notebook/tests/launchnotebook.py"
(("'HOME': .*," all)
(string-append "# " all "\n")))
(setenv "HOME" (getcwd))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
;; These tests require a browser.
(delete-file-recursively "notebook/tests/selenium")
(when tests?
;; Interferes with test expectations.
(unsetenv "JUPYTER_CONFIG_PATH")
;; Some tests do not expect all files to be installed in the
;; same directory, but JUPYTER_PATH contains multiple entries.
(unsetenv "JUPYTER_PATH")
(invoke "pytest" "-vv"
;; TODO: This tests fails because nbconvert does not
;; list "python" as a format.
"-k" "not test_list_formats")))))))
(propagated-inputs
(list python-argon2-cffi
python-ipykernel
python-ipython-genutils
python-jinja2
python-jupyter-client
python-jupyter-core
python-nest-asyncio
python-nbconvert
python-nbformat
python-prometheus-client
python-pyzmq
python-send2trash
python-terminado
python-tornado-6
python-traitlets))
(native-inputs
(list python-coverage
python-nbval
python-pytest
python-pytest-cov
python-requests
python-requests-unixsocket))
(home-page "https://jupyter.org/")
(synopsis "Web-based notebook environment for interactive computing")
(description
"The Jupyter HTML notebook is a web-based notebook environment for
interactive computing.")
(license license:bsd-3)))
(define-public python-widgetsnbextension
(package
(name "python-widgetsnbextension")
(version "3.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "widgetsnbextension" version))
(sha256
(base32
"1ismyaxbv9d56yqqqb8xl58hg0iq0bbyy014a53y1g3hfbc8g7q7"))))
(build-system python-build-system)
(propagated-inputs
(list python-notebook))
(home-page "https://ipython.org")
(synopsis "IPython HTML widgets for Jupyter")
(description "This package provides interactive HTML widgets for Jupyter
notebooks.")
(license license:bsd-3)))
(define-public python-ipywidgets
(package
(name "python-ipywidgets")
(version "7.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ipywidgets" version))
(sha256
(base32
"1w217j8i53x14l7b05fk300k222zs9vkcjaa1rbrw3sk43k466lz"))))
(build-system python-build-system)
(propagated-inputs
(list python-ipykernel
python-ipython
python-jupyterlab-widgets
python-nbformat
python-traitlets
python-widgetsnbextension))
(native-inputs
(list python-mock python-pytest python-pytest-cov))
(home-page "https://ipython.org")
(synopsis "IPython HTML widgets for Jupyter")
(description "Ipywidgets are interactive HTML widgets for Jupyter
notebooks and the IPython kernel. Notebooks come alive when interactive
widgets are used. Users gain control of their data and can visualize changes
in the data.")
(license license:bsd-3)))
(define-public python-jupyter-console
(package
(name "python-jupyter-console")
(version "6.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jupyter_console" version))
(sha256
(base32
"1iqrxhd8hvlyf8cqbc731ssnwm61wrycnbiczy5wsfahd3hlh8i4"))))
(build-system python-build-system)
(propagated-inputs
(list python-ipykernel python-jupyter-client python-prompt-toolkit
python-pygments))
(native-inputs
(list python-nose python-pytest))
(home-page "https://jupyter.org")
(synopsis "Jupyter terminal console")
(description "This package provides a terminal-based console frontend for
Jupyter kernels. It also allows for console-based interaction with non-Python
Jupyter kernels such as IJulia and IRKernel.")
(license license:bsd-3)))
;; The python-ipython and python-jupyter-console require each other. To get
;; the functionality in both packages working, strip down the
;; python-jupyter-console package when using it as an input to python-ipython.
(define python-jupyter-console-minimal
(package/inherit python-jupyter-console
(name "python-jupyter-console-minimal")
(arguments
(substitute-keyword-arguments
(package-arguments python-jupyter-console)
((#:phases phases)
`(modify-phases ,phases
(add-after 'install 'delete-bin
(lambda* (#:key outputs #:allow-other-keys)
;; Delete the bin files, to avoid conflicts in profiles
;; where python-ipython and python-jupyter-console are
;; both present.
(delete-file-recursively
(string-append
(assoc-ref outputs "out") "/bin"))))))))
;; Remove the python-ipython propagated input, to avoid the cycle
(propagated-inputs
(modify-inputs (package-propagated-inputs python-jupyter-console)
(delete "python-ipython")))))
(define-public python-qtconsole
(package
(name "python-qtconsole")
(version "5.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "qtconsole" version))
(sha256
(base32 "09anp8g7vqi8z8wyi2lv21a2frd2dyhyrzvcrk2anijyqzyj0dcf"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'pre-check
(lambda _
(setenv "QT_QPA_PLATFORM" "offscreen")
(setenv "HOME" "/tmp")
;; FIXME: skip a failing test.
(substitute* "qtconsole/tests/test_jupyter_widget.py"
(("def test_other_output") "def _test_other_output")))))))
(propagated-inputs
(list python-ipykernel python-ipython-genutils python-jupyter-client
python-jupyter-core python-pygments python-pyqt-without-qtwebkit
python-pyzmq python-qtpy python-traitlets))
(native-inputs
(list python-flaky python-pytest python-pytest-qt))
(home-page "https://jupyter.org")
(synopsis "Jupyter Qt console")
(description "This package provides a Qt-based console for Jupyter with
support for rich media output.")
(license license:bsd-3)))
(define-public python-jsbeautifier
(package
(name "python-jsbeautifier")
(version "1.10.2")
(home-page "https://github.com/beautify-web/js-beautify")
(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
"0wawb070ki1axb3jc9xvsrgpji52vcfif3zmjzc3z4g98m5xw4kg"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'chdir
(lambda _
;; The upstream Git repository contains all the code,
;; but this package only builds the python code.
(chdir "python")
#t))
(add-after 'unpack 'patch-python-six-requirements
(lambda _
(substitute* "python/setup.py"
(("six>=1.12.0")
"six>=1.11.0"))
#t)))))
(propagated-inputs
(list python-editorconfig python-six))
(native-inputs
(list python-pytest))
(synopsis "JavaScript unobfuscator and beautifier")
(description "Beautify, unpack or deobfuscate JavaScript, leveraging
popular online obfuscators.")
(license license:expat)))
(define-public jupyter
(package
(name "jupyter")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jupyter" version))
(sha256
(base32
"0pwf3pminkzyzgx5kcplvvbvwrrzd3baa7lmh96f647k30rlpp6r"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; there are none.
(propagated-inputs
(list python-ipykernel
python-ipywidgets
python-jupyter-console
python-nbconvert
python-notebook
python-qtconsole))
(home-page "https://jupyter.org")
(synopsis "Web application for interactive documents")
(description
"The Jupyter Notebook is a web application that allows you to create and
share documents that contain live code, equations, visualizations and
explanatory text. Uses include: data cleaning and transformation, numerical
simulation, statistical modeling, machine learning and much more.")
(license license:bsd-3)))
(define-public python-chardet
(package
(name "python-chardet")
(version "5.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "chardet" version))
(sha256
(base32
"1amqmz8731ly6f9rkbk09w4jqgmmgyxykd1bawhgrdbqzlmxys03"))))
(native-inputs
(list python-pytest))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv" "-k"
;; Disable test that fails sporadically:
;; https://github.com/chardet/chardet/issues/256
"not test_detect_all_and_detect_one_should_agree")))
;; This package provides a 'chardetect' executable that only
;; depends on Python, so customize the wrap phase to avoid
;; adding pytest and friends in order to save size.
;; (See also <https://bugs.gnu.org/25235>.)
(replace 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((sitedir (site-packages inputs outputs))
(python (dirname (dirname
(search-input-file
inputs "bin/python"))))
(python-sitedir
(string-append python "/lib/python"
(python-version python)
"/site-packages")))
(wrap-program (string-append #$output "/bin/chardetect")
`("GUIX_PYTHONPATH" ":" suffix
,(list sitedir python-sitedir)))))))))
(home-page "https://github.com/chardet/chardet")
(synopsis "Universal encoding detector for Python 2 and 3")
(description
"This package provides @code{chardet}, a Python module that can
automatically detect a wide range of file encodings.")
(license license:lgpl2.1+)))
(define-public python-charset-normalizer
(package
(name "python-charset-normalizer")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "charset-normalizer" version))
(sha256
(base32 "04zlajr77f6c7ai59l46as1idi0jjgbvj72lh4v5wfpz2s070pjp"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
;; This package provides a 'normalizer' executable that only
;; depends on Python, so customize the wrap phase to avoid
;; adding pytest and friends in order to save size.
;; (See also <https://bugs.gnu.org/25235>.)
(replace 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((sitedir (site-packages inputs outputs))
(python (dirname (dirname
(search-input-file
inputs "bin/python"))))
(python-sitedir
(string-append python "/lib/python"
(python-version python)
"/site-packages")))
(wrap-program (string-append #$output "/bin/normalizer")
`("GUIX_PYTHONPATH" ":" suffix
,(list sitedir python-sitedir)))))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/ousret/charset_normalizer")
(synopsis "Universal Charset Detector, alternative to Chardet")
(description "This library helps you read text from an unknown charset
encoding. Motivated by @code{chardet}, it tries to resolve the issue by
taking a new approach. All IANA character set names for which the Python core
library provides codecs are supported.")
(license license:expat)))
(define-public python-docopt
(package
(name "python-docopt")
(version "0.6.2")
(source
(origin
(method git-fetch)
;; The release on PyPI does not include tests.
(uri (git-reference
(url "https://github.com/docopt/docopt")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0aad9gbswnnhssin2q0m5lmpm0ahyf80ahs2zjigbn5y7fvljnd0"))
(patches (search-patches "python-docopt-pytest6-compat.patch"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "py.test")))))))
(home-page "http://docopt.org")
(synopsis "Command-line interface description language for Python")
(description "This library allows the user to define a command-line
interface from a program's help message rather than specifying it
programmatically with command-line parsers like @code{getopt} and
@code{argparse}.")
(license license:expat)))
(define-public python-pythonanywhere
(package
(name "python-pythonanywhere")
(version "0.9.10")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pythonanywhere/helper_scripts")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0vzzc1g8pl7cb9yvm3n1j5zlzxf0jd423rzspc2kvpb8yhvydklx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'change-home
(lambda _
(setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Exclude tests marked as slowtest that assume running
;; inside Git repository on system with virtualenvwrapper
;; installed.
(invoke "pytest" "-m" "not slowtest")))))))
(native-inputs
(list python-pytest
python-psutil
python-responses
python-pytest-mock))
(propagated-inputs
(list python-dateutil
python-docopt
python-packaging
python-requests
python-schema
python-tabulate
python-typer))
(home-page "https://github.com/pythonanywhere/helper_scripts/")
(synopsis "PythonAnywhere helper tools for users")
(description "PythonAnywhere provides a command-line interface and an
application programming interface that allows managing Web apps and scheduled
tasks. It includes single-command deployment for the Django Girls tutorial.")
(license license:expat)))
(define-public python-pythondialog
(package
(name "python-pythondialog")
(version "3.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pythondialog" version))
(sha256
(base32
"1728ghsran47jczn9bhlnkvk5bvqmmbihabgif5h705b84r1272c"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-path
(lambda* (#:key inputs #:allow-other-keys)
(let* ((dialog (assoc-ref inputs "dialog")))
(substitute* "dialog.py"
(("os.getenv\\(\"PATH\", \":/bin:/usr/bin\"\\)") (string-append
"os.getenv(\"PATH\") + \":"
dialog
"/bin\"")))
#t))))
#:tests? #f))
(propagated-inputs (list dialog))
(home-page "http://pythondialog.sourceforge.net/")
(synopsis "Python interface to the UNIX dialog utility")
(description
"A Python wrapper for the dialog utility. Its purpose is to
provide an easy to use, pythonic and comprehensive Python interface to dialog.
This allows one to make simple text-mode user interfaces on Unix-like systems")
(license license:lgpl2.1)))
(define-public python-configobj
(package
(name "python-configobj")
(version "5.0.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "configobj" version))
(sha256
(base32
"00h9rcmws03xvdlfni11yb60bz3kxfvsj6dg6nrpzj71f03nbxd2"))
;; Patch setup.py so it looks for python-setuptools, which is
;; required to parse the keyword 'install_requires' in setup.py.
(patches (search-patches "python-configobj-setuptools.patch"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(synopsis "Config file reading, writing and validation")
(description "ConfigObj is a simple but powerful config file reader and
writer: an ini file round tripper. Its main feature is that it is very easy to
use, with a straightforward programmer’s interface and a simple syntax for
config files.")
(home-page "https://github.com/DiffSK/configobj")
(license license:bsd-3)))
(define-public python-configargparse
(package
(name "python-configargparse")
(version "1.2.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "ConfigArgParse" version))
(sha256
(base32
"1p1pzpf5qpf80bfxsx1mbw9blyhhypjvhl3i60pbmhfmhvlpplgd"))))
(build-system python-build-system)
(native-inputs
(list python-pyyaml))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; Bypass setuptools-shim because one test relies on "setup.py"
;; being the first argument passed to the python call.
;;
;; NOTE: Many tests do not run because they rely on Python's
;; built-in test.test_argparse, but we remove the unit tests from
;; our Python installation.
(invoke "python" "setup.py" "test"))))))
(synopsis "Replacement for argparse")
(description "A drop-in replacement for argparse that allows options to also
be set via config files and/or environment variables.")
(home-page "https://github.com/bw2/ConfigArgParse")
(license license:expat)))
(define-public python-connection-pool
(package
(name "python-connection-pool")
(version "0.0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "connection_pool" version))
(sha256
(base32 "1p6hfkcl4n3hhhcgjbaxn21i7b1yipag6j7dnilir4k5xxx9whmz"))))
(build-system python-build-system)
(home-page "https://github.com/zhouyl/ConnectionPool")
(synopsis "Thread-safe connection pool")
(description "This package provides a library implementing a thread-safe
connection pool.")
(license license:expat)))
(define-public python-argparse-manpage
(package
(name "python-argparse-manpage")
(version "1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "argparse-manpage" version))
(sha256
(base32
"0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p"))))
(build-system python-build-system)
(home-page "https://github.com/praiskup/argparse-manpage")
(synopsis "Build manual page from Python's ArgumentParser object")
(description
"This package provides tools to build manual pages from Python's
@code{ArgumentParser} object.")
(license license:asl2.0)))
(define-public python-contextlib2
(package
(name "python-contextlib2")
(version "0.6.0.post1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "contextlib2" version))
(sha256
(base32
"0bhnr2ac7wy5l85ji909gyljyk85n92w8pdvslmrvc8qih4r1x01"))))
(build-system python-build-system)
(home-page "https://contextlib2.readthedocs.org/")
(synopsis "Tools for decorators and context managers")
(description "This module is primarily a backport of the Python
3.2 contextlib to earlier Python versions. Like contextlib, it
provides utilities for common tasks involving decorators and context
managers. It also contains additional features that are not part of
the standard library.")
(license license:psfl)))
(define-public python-texttable
(package
(name "python-texttable")
(version "1.6.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "texttable" version))
(sha256
(base32
"1sbn821394rix6xgj3zqk743pj6nqm1qz81zgis2bcpp2ng7pvj2"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv" "tests.py")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/foutaise/texttable/")
(synopsis "Python module for creating simple ASCII tables")
(description "Texttable is a Python module for creating simple ASCII
tables.")
(license license:expat)))
(define-public python-atomicwrites
(package
(name "python-atomicwrites")
(version "1.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "atomicwrites" version))
(sha256
(base32
"0yla2svfhfqrcj8qbyqzx7wi4jy0dwcxvlkg0k3zjd54s5m3jw5f"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ;avoid circular dependency with pytest
(synopsis "Atomic file writes in Python")
(description "Library for atomic file writes using platform dependent tools
for atomic file system operations.")
(home-page "https://github.com/untitaker/python-atomicwrites")
(license license:expat)))
(define-public python-qstylizer
(package
(name "python-qstylizer")
(version "0.1.10")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blambright/qstylizer")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0zvkn6g1dn51kkw33v8qrlnwlmf5h6sw1ay3bh14ifjr8b9xsjjz"))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"
#:phases
(modify-phases %standard-phases
(add-before 'build 'set-pbr-version
(lambda _
(setenv "PBR_VERSION" "3.0.1"))))))
(native-inputs
(list python-pbr
python-pytest
python-pytest-catchlog
python-pytest-cov
python-pytest-mock
python-pytest-runner
python-pytest-xdist))
(propagated-inputs
(list python-inflection python-tinycss))
(home-page "https://github.com/blambright/qstylizer")
(synopsis "Qt stylesheet generation utility for PyQt/PySide")
(description "@code{qstylizer} is a Python package designed to help with
the construction of PyQt/PySide stylesheets.")
(license license:expat)))
(define-public python-click-threading
(package
(name "python-click-threading")
(version "0.5.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "click-threading" version))
(sha256
(base32
"0f9lmxwcq0y9lb8w0whbni7gwy12gbv74h1igh85qn9aq0iydkxd"))))
(build-system python-build-system)
(propagated-inputs
(list python-click))
(synopsis "Utilities for multithreading in Click")
(description "This package provides utilities for multithreading in Click
applications.")
(home-page "https://github.com/click-contrib/click-threading")
(license license:expat)))
(define-public python-click-log
(package
(name "python-click-log")
(version "0.3.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "click-log" version))
(sha256
(base32
"091i03bhxyzsdbc6kilxhivfda2f8ymz3b33xa6cj5kbzjiirz8n"))))
(build-system python-build-system)
(propagated-inputs
(list python-click))
(synopsis "Logging for click applications")
(description "This package provides a Python library for logging Click
applications.")
(home-page "https://github.com/click-contrib/click-log")
(license license:expat)))
(define-public python-click-default-group
(package
(name "python-click-default-group")
(version "1.2.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "click-default-group" version))
(sha256
(base32
"015r78jk8gznfw0dphpwaqcx5mhg5822b55w5xbb6i7sin70wmnr"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no target
(propagated-inputs
(list python-click))
(synopsis "Extends click.Group")
(description "This package extends click.Group to invoke a command without
explicit subcommand name.")
(home-page "https://github.com/click-contrib/click-default-group")
(license license:bsd-3)))
(define-public python-structlog
(package
(name "python-structlog")
(version "20.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "structlog" version))
(sha256
(base32
"0x1i21vn3xjfa3j9ijbblia5z0jlzc9aqvpqc26sy16i8yjxyydg"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest"))
#t)))))
(native-inputs
(list python-coverage
python-freezegun
python-pretend
python-pytest
python-pytest-asyncio
python-simplejson
python-twisted))
(home-page "https://www.structlog.org/")
(synopsis "Structured Logging for Python")
(description "@code{structlog} changes logging in Python by adding structure
to your log entries.")
(license (list license:asl2.0 license:expat))))
(define-public python-apipkg
(package
(name "python-apipkg")
(version "1.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "apipkg" version))
(sha256
(base32
"1xhak74yj3lqflvpijg15rnkklrigvsp5q7s4as4h6a157d8q8ip"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-setuptools-scm))
(synopsis "Namespace control and lazy-import mechanism")
(description "With apipkg you can control the exported namespace of a Python
package and greatly reduce the number of imports for your users. It is a small
pure Python module that works on virtually all Python versions.")
(home-page "https://github.com/pytest-dev/apipkg")
(license license:expat)))
(define-public python-execnet
(package
(name "python-execnet")
(version "1.9.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "execnet" version))
(sha256
(base32
"1ia7dvrh0gvzzpi758mx55f9flr16bzdqlmi12swm4ncm4xlyscg"))
(patches (search-patches "python-execnet-read-only-fix.patch"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
;; Unset PYTHONDONTWRITEBYTECODE to match the
;; expectations of a test in
;; 'testing/test_gateway.py'.
(unsetenv "PYTHONDONTWRITEBYTECODE")
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest python-setuptools-scm))
(synopsis "Rapid multi-Python deployment")
(description "Execnet provides a share-nothing model with
channel-send/receive communication for distributing execution across many
Python interpreters across version, platform and network barriers. It has a
minimal and fast API targeting the following uses:
@enumerate
@item distribute tasks to (many) local or remote CPUs
@item write and deploy hybrid multi-process applications
@item write scripts to administer multiple environments
@end enumerate")
(home-page "https://codespeak.net/execnet/")
(license license:expat)))
(define-public python-icalendar
(package
(name "python-icalendar")
(version "4.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "icalendar" version))
(sha256
(base32
"15dkq42rkqjdi17rpvmd1plnbwn4daby0nk1s1c3xi7w5v0bfj4p"))))
(build-system python-build-system)
(propagated-inputs
(list python-dateutil python-pytz))
(synopsis "Python library for parsing iCalendar files")
(description "The icalendar package is a parser/generator of iCalendar
files for use with Python.")
(home-page "https://github.com/collective/icalendar")
(license license:bsd-2)))
(define-public python-args
(let ((commit "9460f1a35eb3055e9e4de1f0a6932e0883c72d65") (revision "0"))
(package
(name "python-args")
(version (git-version "0.1.0" revision commit))
(home-page "https://github.com/kennethreitz-archive/args")
(source (origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1zfxpbp9vldqdrjmd0c6y3wisl35mx5v8zlyp3nhwpy1730wrc9j"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-args.py
(lambda _
(substitute* "args.py"
(("basestring") "str"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "nosetests" "-v")))))))
(native-inputs (list python-nose))
(synopsis "Command-line argument parser")
(description
"This library provides a Python module to parse command-line arguments.")
(license license:bsd-3))))
(define-public python-clint
(package
(name "python-clint")
(version "0.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "clint" version))
(sha256
(base32
"1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "py.test" "-v"))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-args))
(home-page "https://github.com/kennethreitz/clint")
(synopsis "Command-line interface tools")
(description
"Clint is a Python module filled with a set of tools for developing
command-line applications, including tools for colored and indented
output, progress bar display, and pipes.")
(license license:isc)))
(define-public python-rply
(package
(name "python-rply")
(version "0.7.8")
(source (origin
(method url-fetch)
(uri (pypi-uri "rply" version))
(sha256
(base32
"1j81nddvnb145x4p81bnfpyai6g26i2dc1633ycsk025bb18m01a"))))
(build-system python-build-system)
(propagated-inputs
(list python-appdirs))
(home-page "https://github.com/alex/rply")
(synopsis "Parser generator for Python")
(description
"This package provides a pure Python based parser generator, that also
works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
with a new public API, and RPython support.")
(license license:bsd-3)))
(define-public python-hy
(package
(name "python-hy")
(version "0.24.0")
(source
(origin
(method git-fetch) ; no tests in PyPI release
(uri (git-reference
(url "https://github.com/hylang/hy")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1s458ymd9g3s8k2ccc300jr4w66c7q3vhmhs9z3d3a4qg0xdhs9y"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "-k"
(string-append ; skip some failed tests
"not test_sys_executable"
" and not test_circular_macro_require"
" and not test_macro_require"
" and not test_requires_pollutes_core"))))))))
(native-inputs
(list python-pytest-7.1 python-wheel))
(propagated-inputs
(list python-colorama python-funcparserlib))
(home-page "https://docs.hylang.org/en/stable/")
(synopsis "Lisp frontend to Python")
(description
"Hy is a dialect of Lisp that's embedded in Python. Since Hy transforms
its Lisp code into the Python Abstract Syntax Tree, you have the whole world of
Python at your fingertips, in Lisp form.")
(license license:expat)))
(define-public python-hissp
(package
(name "python-hissp")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "hissp" version))
(sha256
(base32
"0yns7f0q699zn2ziagyas2nkndl7mp1hhssv9x9mpl7jxj2p5myw"))))
(build-system python-build-system)
(home-page "https://github.com/gilch/hissp")
(synopsis "It's Python with a Lissp")
(description "Hissp is a modular Lisp implementation that compiles to a
functional subset of Python—Syntactic macro metaprogramming with full access
to the Python ecosystem.")
(license license:asl2.0)))
(define-public python-promise
(package
(name "python-promise")
(version "0.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "promise" version))
(sha256
(base32
"1k19ms8l3d5jzjh557rgkxb5sg4mqgfc315rn4hx1z3n8qq6lr3h"))))
(build-system python-build-system)
;; Tests wants python-futures, which is a python2 only program, and
;; can't be found by python-promise at test time.
(arguments `(#:tests? #f))
(home-page "https://github.com/syrusakbary/promise")
(synopsis "Promises/A+ implementation for Python")
(description
"Promises/A+ implementation for Python")
(license license:expat)))
(define-public python-progress
(package
(name "python-progress")
(version "1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "progress" version))
(sha256
(base32 "1k9lpb7lqr6mywpnqcz71y6qny54xlgprdp327za2gy0nnc6xj69"))))
(build-system python-build-system)
(home-page "http://github.com/verigak/progress/")
(synopsis "Progress reporting bars for Python")
(description "This Python package provides progress reporting for visual
of progress of long running operations. There are multiple choices of
progress bars and spinners, with customizable options, such as width, fill
character, and suffix.")
(license license:isc)))
(define-public python-progressbar2
(package
(name "python-progressbar2")
(version "3.51.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "progressbar2" version))
(sha256
(base32
"0b2v3mim90rmfvixkaniz2qrs650sk230rzgd5zhcjfldmlqgxpc"))))
(build-system python-build-system)
(propagated-inputs
(list python-six python-utils))
(native-inputs
(list python-flake8
python-freezegun
python-pycodestyle
python-pytest
python-pytest-cache
python-pytest-cov
python-pytest-flakes
python-pytest-pep8
python-sphinx))
(home-page "https://github.com/WoLpH/python-progressbar")
(synopsis "Text progress bar library for Python")
(description
"This package provides a Python progressbar library to provide
visual (yet text based) progress to long running operations.")
(license license:bsd-3)))
(define-public python-progressbar33
(package
(name "python-progressbar33")
(version "2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "progressbar33" version))
(sha256
(base32
"1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji"))))
(build-system python-build-system)
(home-page "https://github.com/germangh/python-progressbar")
(synopsis "Text progress bar library for Python")
(description
"This package provides a text progress bar library for Python. This
version only differs from the original @code{progressbar} package in that it
uses relative package imports instead of absolute imports, which is necessary
for the module to work under Python 3.3.")
;; Either or both of these licenses may be selected.
(license (list license:lgpl2.1+ license:bsd-3))))
(define-public python-colorama
(package
(name "python-colorama")
(version "0.4.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "colorama" version))
(sha256
(base32 "16w62sm95hmh55rqxn4zwdz0bkh3fqm1qnz9cwi3s510iasb4har"))))
(build-system python-build-system)
(synopsis "Colored terminal text rendering for Python")
(description "Colorama is a Python library for rendering colored terminal
text.")
(home-page "https://pypi.org/project/colorama/")
(license license:bsd-3)))
;; awscli and botocore do not accept version 0.4.4
(define-public python-colorama-for-awscli
(package
(inherit python-colorama)
(version "0.4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "colorama" version))
(sha256
(base32 "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9"))))))
(define-public python-moto
(package
(name "python-moto")
(version "3.1.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "moto" version))
(sha256
(base32 "0dfnad1f9d5ybabs69dzc7x357z1r4jbhrhgw57gyic1qnmcw864"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-hardcoded-executable-names
(lambda* (#:key inputs #:allow-other-keys)
(let ((bash-exec (search-input-file inputs "/bin/sh")))
(substitute* "moto/batch/models.py"
(("/bin/sh") bash-exec))
(substitute* (find-files "tests" "\\.py$")
(("#!/bin/bash") (string-append "#!" bash-exec))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "-m" "not network" "-k"
(string-append
;; XXX: This test is timing sensitive and may
;; fail non-deterministically.
"not test_cancel_pending_job"
;; These tests require Docker.
" and not test_terminate_job"
" and not test_invoke_function_from_sqs_exception"
" and not test_create_custom_lambda_resource__verify_cfnresponse_failed"
" and not test_lambda_function"
;; These tests also require the network.
" and not test_put_record_batch_http_destination"
" and not test_put_record_http_destination"
" and not test_dependencies"
" and not test_cancel_running_job"
" and not test_container_overrides"))))))))
(native-inputs
(list python-flask
python-flask-cors
python-freezegun
python-graphql-core
python-pytest
python-sure))
(inputs
(list bash-minimal))
(propagated-inputs
(list python-aws-xray-sdk
python-boto3
python-botocore
python-cfn-lint
python-cryptography
python-dateutil
python-docker
python-importlib-metadata
python-jinja2
python-jose
python-jsondiff
python-markupsafe
python-pytz
python-pyyaml
python-requests
python-responses
python-sshpubkeys
python-werkzeug
python-xmltodict))
(home-page "https://github.com/spulec/moto")
(synopsis "Mock out the boto library")
(description
"@code{moto} is a library designed to easily mock out the
@code{boto} library.")
(license license:asl2.0)))
(define-public python-rsa
(package
(name "python-rsa")
(version "3.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rsa" version))
(sha256
(base32
"1dcxvszbikgzh99ybdc7jq0zb9wspy2ds8z9mjsqiyv3q884xpr5"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyasn1))
(synopsis "Pure-Python RSA implementation")
(description "Python-RSA is a pure-Python RSA implementation. It supports
encryption and decryption, signing and verifying signatures, and key
generation according to PKCS#1 version 1.5. It can be used as a Python
library as well as on the command line.")
(home-page "https://stuvel.eu/rsa")
(license license:asl2.0)))
(define-public python-pluggy
(package
(name "python-pluggy")
(version "0.13.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pluggy" version))
(sha256
(base32
"1c35qyhvy27q9ih9n899f3h4sdnpgq027dbiilly2qb5cvgarchm"))))
(build-system python-build-system)
(native-inputs
(list python-setuptools-scm))
(synopsis "Plugin and hook calling mechanism for Python")
(description "Pluggy is an extraction of the plugin manager as used by
Pytest but stripped of Pytest specific details.")
(home-page "https://pypi.org/project/pluggy/")
(license license:expat)))
(define-public python-plumbum
(package
(name "python-plumbum")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "plumbum" version))
(sha256
(base32 "1kidj821k79dw064rlxh84xamb9h79ychg3pgj81jlvm5hs48xri"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;no tests
(native-inputs
;; XXX: Not actually used since there are no tests but required for
;; build.
(list python-pytest))
(home-page "https://plumbum.readthedocs.io")
(synopsis "Python shell combinators library")
(description
"Plumbum is a library of tools for replacing shell scripts with Python
code.")
(license license:expat)))
(define-public python-deprecation
(package
(name "python-deprecation")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "deprecation" version))
(sha256
(base32
"1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
(build-system python-build-system)
(propagated-inputs
(list python-packaging))
(native-inputs
(list python-unittest2))
(home-page "https://deprecation.readthedocs.io/")
(synopsis "Python library to handle automated deprecations")
(description
"This is a library that enables automated deprecations. It offers the
@code{deprecated()} decorator to wrap functions, providing proper warnings
both in documentation and via Python’s warnings system, as well as the
@code{deprecation.fail_if_not_removed()} decorator for test methods to ensure
that deprecated code is eventually removed.")
(license license:asl2.0)))
(define-public python-jmespath
(package
(name "python-jmespath")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jmespath" version))
(sha256
(base32
"0pmzfi230zfgiq2rz896kbb9f7mp0lnrjdl6x1npvxfixn0f5454"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(synopsis "JSON Matching Expressions")
(description "JMESPath (pronounced “james path”) is a Python library that
allows one to declaratively specify how to extract elements from a JSON
document.")
(home-page "https://github.com/jmespath/jmespath.py")
(license license:expat)))
(define-public python-symengine
(package
(name "python-symengine")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "symengine" version))
(sha256
(base32 "0qjgdbnb10kfk7jdhxnzfl8cpaps81k8vap7gm7q9ym3pgslazhg"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
;; Run tests against installed package.
(with-directory-excursion "/tmp"
(invoke "nosetests" "-v" "symengine.tests"))
(format #t "test suite not run~%")))))))
(native-inputs
(list cmake python-cython python-nose))
(inputs
(list symengine))
(home-page "https://github.com/symengine/symengine.py")
(synopsis "Python library providing wrappers to SymEngine")
(description
"This library provides a Python wrapper to SymEngine, a fast C++ symbolic
manipulation library.")
(license license:expat)))
(define-public python-uncertainties
(package
(name "python-uncertainties")
(version "3.1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "uncertainties" version))
(sha256
(base32
"00z9xl40czmqk0vmxjvmjvwb41r893l4dad7nj1nh6blw3kw28li"))))
(build-system python-build-system)
;; While there are test files, there is no "tests" directory, so the tests
;; fail.
(arguments '(#:tests? #false))
(propagated-inputs
(list python-future))
(native-inputs
(list python-nose python-numpy))
(home-page "https://uncertainties-python-package.readthedocs.io/")
(synopsis "Calculations with uncertainties")
(description
"The uncertainties package transparently handles calculations with
numbers with uncertainties. It can also yield the derivatives of any
expression.")
(license license:bsd-3)))
(define-public python-unicodedata2
(package
(name "python-unicodedata2")
(version "14.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "unicodedata2" version))
(sha256
(base32 "110nnvh02ssp92xbmswy39aa186jrmb7m41x4220wigl8c0dzxs1"))))
(build-system python-build-system)
(home-page "https://github.com/fonttools/unicodedata2")
(synopsis "Python unicodedata backport")
(description "This package corresponds to the latest @code{unicodedata}
standard Python module.")
(license license:asl2.0)))
(define-public python-asteval
(package
(name "python-asteval")
(version "0.9.23")
(source
(origin
(method url-fetch)
(uri (pypi-uri "asteval" version))
(sha256
(base32
"0f54sd4w1a72ij1bcxs2x7dk9xf8bzclawijf1z18bqx9f96l2gm"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/newville/asteval")
(synopsis "Minimalistic evaluator of Python expressions")
(description
"This package provides a minimalistic evaluator of Python expression
using the @code{ast} module")
(license license:expat)))
(define-public python-lmfit
(package
(name "python-lmfit")
(version "1.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lmfit" version))
(sha256
(base32
"0iab33jjb60f8kn0k0cqb0vjp1mdskks2n3kpn97zkw5cvjhq2b7"))))
(build-system python-build-system)
(propagated-inputs
(list python-asteval python-numpy python-scipy python-uncertainties))
(native-inputs
(list python-pytest))
(home-page "https://lmfit.github.io/lmfit-py/")
(synopsis "Least-Squares minimization with bounds and constraints")
(description
"Lmfit provides a high-level interface to non-linear optimization and
curve fitting problems for Python. It builds on and extends many of the
optimization methods of @code{scipy.optimize}. Initially inspired by (and
named for) extending the Levenberg-Marquardt method from
@code{scipy.optimize.leastsq}, lmfit now provides a number of useful
enhancements to optimization and data fitting problems.")
(license license:bsd-3)))
(define-public python-bokeh
(package
(name "python-bokeh")
(version "2.4.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "bokeh" version))
(sha256
(base32
"00sbhya9vfdv3yi07j6mxwx1x1h9497nhd3smdjrcdxgc48q0czg"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; These require selenium.
(delete-file "tests/unit/bokeh/io/test_export.py")
(delete-file "tests/unit/bokeh/io/test_webdriver.py")
(delete-file "tests/unit/bokeh/embed/test_standalone.py")
;; Doesn't find ManagedServerLoop fixture
(delete-file "tests/unit/bokeh/test_client_server.py")
;; This fails because of the Guix wrapper around pytest
(delete-file "tests/unit/bokeh/io/test_util__io.py")
;; Fixture ipython not found.
(delete-file "tests/unit/bokeh/application/handlers/test_notebook__handlers.py")
(delete-file "tests/unit/bokeh/command/subcommands/test_info.py")
;; pd fixture not found.
(delete-file "tests/unit/bokeh/models/test_mappers.py")
(delete-file "tests/unit/bokeh/models/util/test_structure.py")
(delete-file "tests/unit/bokeh/plotting/test__plot.py")
(delete-file "tests/unit/bokeh/plotting/test__graph.py")
(delete-file "tests/unit/bokeh/plotting/test_figure.py")
(delete-file "tests/unit/bokeh/core/test_json_encoder.py")
(delete-file "tests/unit/bokeh/core/property/test_bases.py")
(delete-file "tests/unit/bokeh/core/property/test_container.py")
(delete-file "tests/unit/bokeh/core/property/test_dataspec.py")
(delete-file "tests/unit/bokeh/core/property/test_datetime.py")
(delete-file "tests/unit/bokeh/core/property/test_pandas.py")
;; nx fixture not found.
(delete-file "tests/unit/bokeh/plotting/test_graph.py")
(delete-file "tests/unit/bokeh/models/test_graphs.py")
(delete-file "tests/unit/bokeh/io/test_showing.py")
(delete-file "tests/unit/bokeh/document/test_events__document.py")
;; These tests need external sample data
(delete-file-recursively "tests/unit/bokeh/sampledata/")
;; Attempts to install something via npm.
(delete-file "tests/unit/bokeh/test_ext.py")
;; More failures due to set up problems.
(delete-file "tests/unit/bokeh/server/test_server__server.py")
(delete-file "tests/unit/bokeh/server/test_tornado__server.py")
(delete-file "tests/unit/bokeh/util/test_serialization.py")
(delete-file "tests/unit/bokeh/util/test_hex.py")
(delete-file "tests/unit/bokeh/models/test_sources.py")
(delete-file "tests/unit/bokeh/embed/test_bundle.py")
(invoke "pytest" "-v")))))))
(propagated-inputs
(list node-lts
python-jinja2
python-numpy
python-packaging
python-pillow
python-pyyaml
python-tornado
python-typing-extensions))
(native-inputs
(list python-beautifulsoup4
python-dateutil
python-flaky
python-nbconvert
python-pandas
python-pytest
python-pytz
python-requests))
(home-page "https://github.com/bokeh/bokeh")
(synopsis "Interactive plots and applications in the browser from Python")
(description
"This package provides tools for interactive plots and applications in the
browser from Python.")
(license license:bsd-3)))
(define-public python-boto
(package
(name "python-boto")
(version "2.49.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "boto" version))
(sha256
(base32
"0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
(build-system python-build-system)
(arguments
;; XXX: This package is unmaintained and has problems with newer versions
;; of Python 3 as well as test libraries. 'python-moto' still uses a
;; subset of this library, so keep it around for now, but disable tests.
'(#:tests? #f))
(propagated-inputs
(list python-paramiko python-requests))
(home-page "https://github.com/boto/boto")
(synopsis "Python interfaces for Amazon Web Services")
(description
"This package provides various facilities for interacting with Amazon
Web Services through Python.
This software is unmaintained, and new projects should use @code{boto3} instead.")
(license license:expat)))
(define-public python-botocore
;; Note: When updating botocore, also make sure that boto3 and awscli
;; are compatible.
(package
(name "python-botocore")
(version "1.24.35")
(source
(origin
(method url-fetch)
(uri (pypi-uri "botocore" version))
(sha256
(base32
"0rv8mvhq5s373zdjs2yb45hzvqcqdh2lp2rbb21jjc8ciwnl5d9n"))))
(build-system python-build-system)
(arguments
;; FIXME: Many tests are failing.
'(#:tests? #f))
(propagated-inputs
(list python-dateutil python-jmespath python-urllib3))
(home-page "https://github.com/boto/botocore")
(synopsis "Low-level interface to AWS")
(description "Botocore is a Python library that provides a low-level
interface to the Amazon Web Services (AWS) API.")
(license license:asl2.0)))
(define-public python-boto3
(package
(name "python-boto3")
(version "1.21.35")
(home-page "https://github.com/boto/boto3")
(source (origin
(method git-fetch)
(uri (git-reference (url home-page) (commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1kdyf238rpfldnpzs0rdh3nhjn6hwfym4faskyhzlgzkf1smmbg1"))))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-network-tests
;; Deleting integration tests because they are trying to connect to AWS.
(lambda _
(delete-file-recursively "tests/integration")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v")))))))
(build-system python-build-system)
(native-inputs
(list python-nose python-mock python-pytest))
(propagated-inputs
(list python-botocore python-jmespath python-s3transfer))
(synopsis "AWS SDK for Python")
(description
"Boto3 is a Python library for writing programs that interact with
@acronym{AWS,Amazon Web Services}.")
(license license:asl2.0)))
(define-public python-pyfiglet
(package
(name "python-pyfiglet")
(version "0.8.post1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyfiglet" version))
(sha256
(base32
"0f9n2076ga2ccsg174k2d7n0z4d44ml96yzc72s6g4nhalbk5hn6"))))
(build-system python-build-system)
(home-page "https://github.com/pwaller/pyfiglet")
(synopsis "Draw ASCII art big letters in Python")
(description "This module lets you draw large letter from ordinary characters
in pure Python.")
(license license:expat)))
(define-public python-xdo
(package
(name "python-xdo")
(version "0.3")
(source (origin
(method url-fetch)
(uri (string-append
"http://http.debian.net/debian/pool/main/p/python-xdo/"
"python-xdo_" version ".orig.tar.gz"))
(sha256
(base32
"1vqh1n5yy5dhnq312kwrl90fnck4v26is3lq3lxdvcn60vv19da0"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'install 'patch-libxdo-path
;; Hardcode the path of dynamically loaded libxdo library.
(lambda* (#:key inputs #:allow-other-keys)
(let ((libxdo (string-append
(assoc-ref inputs "xdotool")
"/lib/libxdo.so"))
(libc (string-append
(assoc-ref inputs "libc")
"/lib/libc.so.6")))
(substitute* "xdo/_xdo.py"
(("find_library\\(\"xdo\"\\)")
(simple-format #f "\"~a\"" libxdo))
(("ctypes\\.util\\.find_library\\('libc'\\)")
(simple-format #f "\"~a\"" libc)))
#t))))
#:tests? #f)) ; no tests provided
(propagated-inputs
(list python-six))
(inputs
`(("xdotool" ,xdotool)
("libX11" ,libx11)))
(home-page "https://tracker.debian.org/pkg/python-xdo")
(synopsis "Python library for simulating X11 keyboard/mouse input")
(description "Provides bindings to libxdo for manipulating X11 via simulated
input. (Note that this is mostly a legacy library; you may wish to look at
python-xdo for newer bindings.)")
(license license:bsd-3)))
(define-public python-xdoctest
(package
(name "python-xdoctest")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xdoctest" version))
(sha256
(base32 "0bgbmb9nqv95f9gfxqifqff1qaz5fnanjqy4hv7ygrjp2kksgfvy"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; A writable HOME is needed by the
;; 'import_module_from_path' test.
(setenv "HOME" "/tmp")
(invoke "pytest" "-vv")))))))
(propagated-inputs (list python-six))
(native-inputs (list python-pytest which))
(home-page "https://github.com/Erotemic/xdoctest")
(synopsis "Rewrite of the Python builtin doctest module")
(description "This package provides a rewrite of the builtin doctest
module which leverages the Python @acronym{AST, Abstract Syntax Tree} instead
of @acronym{REGEXPs, regular expressions}.")
(license license:asl2.0)))
(define-public python-mako
(package
(name "python-mako")
(version "1.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Mako" version))
(sha256
(base32
"09ywrmhr6gdyfx6d5727wwjnz73i6rklqcb4c14m7sqc830wi5c1"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "nosetests" "-v")
(format #t "test suite not run~%"))
#t)))))
(propagated-inputs
(list python-markupsafe))
(native-inputs
(list python-mock python-nose))
(home-page "https://www.makotemplates.org/")
(synopsis "Templating language for Python")
(description "Mako is a templating language for Python that compiles
templates into Python modules.")
(license license:expat)))
(define-public python-waitress
(package
(name "python-waitress")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "waitress" version))
(patches (search-patches "python-waitress-fix-tests.patch"))
(sha256
(base32
"1a85gyji0kajc3p0s1pwwfm06w4wfxjkvvl4rnrz3h164kbd6g6k"))))
(build-system python-build-system)
(home-page "https://github.com/Pylons/waitress")
(synopsis "Waitress WSGI server")
(description "Waitress is meant to be a production-quality pure-Python WSGI
server with very acceptable performance.")
(license license:zpl2.1)))
(define-public python-whichcraft
(package
(name "python-whichcraft")
(version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "whichcraft" version))
(sha256
(base32
"11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/pydanny/whichcraft")
(synopsis "Cross-platform cross-python shutil.which functionality")
(description
"This package provides a shim of the shutil.which function that's
designed to work across multiple versions of Python.")
(license license:bsd-3)))
(define-public python-cookiecutter
(package
(name "python-cookiecutter")
(version "1.7.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cookiecutter" version))
(sha256
(base32 "0mx49whhwcxmvcak27zr7p7ndzkn3w7psfd7fzh3n91fi1r4v6kb"))))
(build-system python-build-system)
(native-inputs
(list python-freezegun python-pytest python-pytest-catchlog
python-pytest-cov python-pytest-mock))
(propagated-inputs
(list python-binaryornot
python-click
python-future
python-jinja2
python-jinja2-time
python-poyo
python-requests
python-slugify
python-text-unidecode
python-whichcraft))
(home-page "https://github.com/cookiecutter/cookiecutter")
(synopsis
"Command-line utility that creates projects from project templates")
(description
"This package provides a command-line utility that creates projects from
project templates, e.g. creating a Python package project from a Python package
project template.")
(license license:bsd-3)))
(define-public python-pyquery
(package
(name "python-pyquery")
(version "1.2.17")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyquery" version))
(sha256
(base32
"1xia20wm0vx5dk85kcwgh13bylz8qh47ffjxssd2586r60xi783a"))))
(build-system python-build-system)
(native-inputs
(list python-webob python-webtest))
(propagated-inputs
(list python-lxml python-cssselect))
(home-page "https://github.com/gawel/pyquery")
(synopsis "Make jQuery-like queries on xml documents")
(description "pyquery allows you to make jQuery queries on xml documents.
The API is as much as possible the similar to jQuery. pyquery uses lxml for
fast xml and html manipulation.")
(license license:bsd-3)))
(define-public python-anyjson
(package
(name "python-anyjson")
(version "0.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "anyjson" version))
(sha256
(base32
"1fjph4alvcscsl5d4b6qpv1yh31jy05jxi1l0xff7lws7j32v09p"))))
(build-system python-build-system)
(arguments
`(;; We could possibly get tests working, but on Python 3 it's not so easy.
;; Very strangely, 2to3 is run *during setup.py install* (or bdist, or
;; whatever) so this transformation needs to be done before the tests
;; can be run. Maybe we could add a build step to transform beforehand
;; but it could be annoying/difficult.
;; We can enable tests for the Python 2 version, though, and do below.
#:tests? #f))
(home-page "https://bitbucket.org/runeh/anyjson/")
(synopsis
"Wraps best available JSON implementation in a common interface")
(description
"Anyjson loads whichever is the fastest JSON module installed
and provides a uniform API regardless of which JSON implementation is used.")
(license license:bsd-3)))
(define-public python-amqp
(package
(name "python-amqp")
(version "5.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "amqp" version))
(sha256
(base32 "1qmmffiy48nady7is8529vxcyqbq88v5zgawqr3fk4q8rkz166rc"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-c" "/dev/null" ;take control over pytest options
;; Integration tests require network connectivity.
"--ignore" "t/integration")))))))
(native-inputs (list python-pytest))
(propagated-inputs (list python-vine))
(home-page "https://github.com/celery/py-amqp")
(synopsis "Low-level AMQP client for Python (fork of amqplib)")
(description
"This is a fork of amqplib which was originally written by Barry Pederson.
It is maintained by the Celery project, and used by kombu as a pure python
alternative when librabbitmq is not available.")
(license license:lgpl2.1+)))
(define-public python-beniget
(package
(name "python-beniget")
(version "0.4.1")
(home-page "https://github.com/serge-sans-paille/beniget")
(source
(origin
(method url-fetch)
(uri (pypi-uri "beniget" version))
(sha256
(base32 "035c4f78yllpw2c5p1w92520rilm7nnpsqh7yvi3qmfhi8xlnmbm"))))
(build-system python-build-system)
(propagated-inputs
(list python-gast))
(synopsis "Extract semantic information about static Python code")
(description
"Beniget is a collection of analyzers for Python @acronym{AST,
Abstract Syntax Tree}. It is a building block for writing a static analyzer
or compiler for Python.")
(license license:bsd-3)))
(define-public python-txamqp
(package
(name "python-txamqp")
(version "0.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "txAMQP" version))
(sha256
(base32
"0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4"))))
(build-system python-build-system)
(propagated-inputs
(list python-six python-twisted))
(home-page "https://github.com/txamqp/txamqp")
(synopsis "Communicate with AMQP peers and brokers using Twisted")
(description
"This package provides a Python library for communicating with AMQP peers
and brokers using the asynchronous networking framework Twisted. It contains
all the necessary code to connect, send and receive messages to/from an
AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted. It
also includes support for using Thrift RPC over AMQP in Twisted
applications.")
(license license:asl2.0)))
(define-public python-kombu
(package
(name "python-kombu")
(version "5.2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "kombu" version))
(sha256
(base32 "044ng79gj04668kf5fmy7fjkw8302xyapskkn65ym52zfbpf7kip"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
;; The transport tests attempt to pass messages to
;; many different databases.
"--ignore" "t/unit/transport")))))))
(native-inputs
(list python-case python-pyro4 python-pytest-sugar
python-pytest python-pytz))
(propagated-inputs
(list python-amqp python-cached-property python-vine))
(home-page "https://kombu.readthedocs.io")
(synopsis "Message passing library for Python")
(description "The aim of Kombu is to make messaging in Python as easy as
possible by providing an idiomatic high-level interface for the AMQ protocol,
and also provide proven and tested solutions to common messaging problems.
AMQP is the Advanced Message Queuing Protocol, an open standard protocol for
message orientation, queuing, routing, reliability and security, for which the
RabbitMQ messaging server is the most popular implementation.")
(license license:bsd-3)))
(define-public python-billiard
(package
(name "python-billiard")
(version "3.6.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "billiard" version))
(sha256
(base32 "0ismj2p8c66ykpss94rs0bfra5agxxmljz8r3gaq79r8valfb799"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-win-files
(lambda _
(for-each delete-file-recursively
;; test_multiprocessing seem to be written in Python2.
'("t/integration/tests/test_multiprocessing.py"
"t/unit/test_win32.py"
"billiard/popen_spawn_win32.py"
"billiard/_win.py")))))))
(native-inputs
(list python-case python-psutil python-pytest))
(home-page "https://github.com/celery/billiard")
(synopsis "Python multiprocessing fork with improvements and bugfixes")
(description
"Billiard is a fork of the Python 2.7 multiprocessing package. The
multiprocessing package itself is a renamed and updated version of R Oudkerk's
pyprocessing package. This standalone variant is intended to be compatible with
Python 2.4 and 2.5, and will draw its fixes/improvements from python-trunk.")
(license license:bsd-3)))
(define-public python-celery
(package
(name "python-celery")
(version "5.2.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "celery" version))
(sha256
(base32 "109lcqarrbmh95sk1dm4yxayq1h3i27f4w23ndk64mqgyfnqqffi"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "requirements/default.txt"
(("pytz.*")
"pytz\n"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "t"
"--ignore" "t/integration" ;hangs tests
;; The MongoDB backend test appears to expect an older
;; version of MongoDB which provided its own bson
;; module, fails with " AttributeError: module 'bson'
;; has no attribute 'encode'".
"--ignore" "t/unit/backends/test_mongodb.py"
;; AssertionErrors
"-k" "not test_check_privileges_no_fchown ")))))))
(native-inputs
(list python-case
python-dnspython
python-flaky
python-iniconfig
python-moto
python-msgpack
python-pytest
python-pytest-celery
python-pytest-subtests
python-pytest-timeout
python-toml))
(propagated-inputs
(list python-billiard
python-click
python-click-didyoumean
python-click-plugins
python-click-repl
python-kombu
python-pytz
python-vine))
(home-page "https://celeryproject.org")
(synopsis "Distributed Task Queue")
(description "Celery is an asynchronous task queue/job queue based on
distributed message passing. It is focused on real-time operation, but
supports scheduling as well. The execution units, called tasks, are executed
concurrently on a single or more worker servers using multiprocessing,
Eventlet, or gevent. Tasks can execute asynchronously (in the background) or
synchronously (wait until ready).")
(license license:bsd-3)))
(define-public python-translitcodec
(package
(name "python-translitcodec")
(version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "translitcodec" version))
(sha256
(base32
"10x6pvblkzky1zhjs8nmx64nb9jdzxad4bxhq4iwv0j4z2aqjnki"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests provided
(home-page
"https://github.com/claudep/translitcodec")
(synopsis
"Unicode to 8-bit charset transliteration codec")
(description
"This package contains codecs for transliterating ISO 10646 texts into
best-effort representations using smaller coded character sets (ASCII,
ISO 8859, etc.).")
(license license:expat)))
(define-public python-anyqt
(package
(name "python-anyqt")
(version "0.0.13")
(source
(origin
(method url-fetch)
(uri (pypi-uri "AnyQt" version))
(sha256
(base32 "0z7myf0mp1qx4gza6ncqyq9whk67vblmh9n3klk19dv4aakjml2f"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ;there are no tests
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-files
;; Delete files related to other operating systems.
(lambda _
(delete-file "AnyQt/QtMacExtras.py")
(delete-file "AnyQt/QtWinExtras.py"))))))
(home-page "https://github.com/ales-erjavec/anyqt")
(synopsis "PyQt4/PyQt5 compatibility layer")
(description "AnyQt is a PyQt4/PyQt5 compatibility layer.")
(license license:gpl3)))
(define-public python-pyqtgraph
(package
(name "python-pyqtgraph")
(version "0.12.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyqtgraph" version))
(sha256
(base32 "0kc7ncv0lr3spni29i9g8nszyr4xinswqi2zzs6v8kqqi593pvyj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-home-and-qpa
(lambda _
(setenv "HOME" "/tmp")
(setenv "QT_QPA_PLATFORM" "offscreen")
#t))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "-k"
(string-append
;; These tests try to download online data.
"not test_PolyLineROI"
" and not test_getArrayRegion_axisorder"
" and not test_getArrayRegion"
" and not test_PlotCurveItem"
" and not test_NonUniformImage_colormap"
" and not test_NonUniformImage_lut"
" and not test_ImageItem_axisorder"
" and not test_ImageItem"
;; The test_reload test fails and suggests adding
;; "--assert=plain" to the pytest command, but it
;; doesn't solve the failure.
" and not test_reload")))))))
(native-inputs
(list python-pytest python-pytest-cov python-pytest-xdist))
(inputs
(list qtbase-5))
(propagated-inputs
(list python-h5py python-numpy python-pyopengl python-scipy
python-pyqt-without-qtwebkit))
(home-page "http://www.pyqtgraph.org")
(synopsis "Scientific graphics and GUI library for Python")
(description
"PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2
and PySide6. It is intended for use in mathematics, scientific or engineering
applications.")
(license license:expat)))
(define-public python-qasync
(package
(name "python-qasync")
(version "0.22.0")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/CabbageDevelopment/qasync/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1q9cllrwf94whr0f6mipa0hdq1rcyqvklwx19g35g2dav8f3xkjl"))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"
#:phases
(modify-phases %standard-phases
(add-before 'check 'set-qpa
(lambda _
(setenv "QT_QPA_PLATFORM" "offscreen"))))))
(native-inputs
(list python-pytest python-pytest-runner))
(propagated-inputs
(list python-pyqt))
(home-page "https://github.com/CabbageDevelopment/qasync")
(synopsis "Implementation of the PEP 3156 Event-Loop with Qt")
(description
"@code{qasync} allows coroutines to be used in PyQt/PySide applications
by providing an implementation of the PEP 3156 event-loop.")
(license license:bsd-2)))
(define-public python-editor
(package
(name "python-editor")
(version "1.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-editor" version))
(sha256
(base32
"0yrjh8w72ivqxi4i7xsg5b1vz15x8fg51xra7c3bgfyxqnyadzai"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ;XXX: needs a TTY and an editor
(home-page "https://github.com/fmoo/python-editor")
(synopsis "Programmatically open an editor, capture the result")
(description
"python-editor is a library that provides the editor module for
programmatically interfacing with your system's $EDITOR.")
(license license:asl2.0)))
(define-public python-multiprocessing-logging
(package
(name "python-multiprocessing-logging")
(version "0.3.1")
(home-page "https://github.com/jruere/multiprocessing-logging")
(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
"1625wy3djlr3b2fpd3vi822f8gw6b75mnls5a4318dbi9za5pf0y"))))
(build-system python-build-system)
(synopsis "Manage logs from multiple processes")
(description
"This Python module implements a multiprocessing-aware @code{Handler}
that, when set on the root @code{Logger}, will tunnel log records to the
main process so that they are handled correctly.")
(license license:lgpl3+)))
(define-public python-vobject
(package
(name "python-vobject")
(version "0.9.6.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "vobject" version))
(sha256
(base32
"0081g4gngw28j7vw8101jk600wz4gzfrhf5myrqvn2mrfkn2llcn"))))
(build-system python-build-system)
(arguments
'(;; The test suite relies on some non-portable Windows interfaces.
#:tests? #f))
(propagated-inputs
(list python-dateutil python-pyicu))
(synopsis "Parse and generate vCard and vCalendar files")
(description "Vobject is intended to be a full featured Python package for
parsing and generating vCard and vCalendar files. Currently, iCalendar files
are supported and well tested. vCard 3.0 files are supported, and all data
should be imported, but only a few components are understood in a sophisticated
way.")
(home-page "https://eventable.github.io/vobject/")
(license license:asl2.0)))
(define-public python-munkres
(package
(name "python-munkres")
(version "1.1.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "munkres" version))
(sha256
(base32
"00yvj8bxmhhhhd74v7j0x673is7vizmxwgb3dd5xmnkr74ybyi7w"))))
(arguments
(list
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'disable-test
(lambda _
;; See https://github.com/bmc/munkres/issues/40
(substitute* "test/test_munkres.py"
(("^def test_profit_float" m)
(string-append "\
import platform
@pytest.mark.skipif(platform.architecture()[0] == \"32bit\",
reason=\"Fails on 32 bit architectures\")
" m))))))))
(build-system python-build-system)
(native-inputs (list python-pytest-6))
(home-page "https://software.clapper.org/munkres/")
(synopsis "Implementation of the Munkres algorithm")
(description "The Munkres module provides an implementation of the Munkres
algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
useful for solving the Assignment Problem.")
(license license:bsd-3)))
(define-public python-whoosh
(package
(name "python-whoosh")
(version "2.7.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Whoosh" version))
(sha256
(base32
"10qsqdjpbc85fykc1vgcs8xwbgn4l2l52c8d83xf1q59pwyn79bw"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; Test invocation is no longer supported by Python.
(native-inputs
(list python-pytest))
(home-page "https://bitbucket.org/mchaput/whoosh")
(synopsis "Full text indexing, search, and spell checking library")
(description
"Whoosh is a fast, pure-Python full text indexing, search, and spell
checking library.")
(license license:bsd-2)))
(define-public python-codespell
(package
(name "python-codespell")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "codespell" version))
(sha256
(base32 "1r9y714cz8m894rxp7pyvicr1lw2iid24vz6fxbl5wzy8ibgxlqr"))))
(build-system python-build-system)
(inputs
(list python-chardet))
(native-inputs
(list python-check-manifest python-flake8 python-pytest
python-pytest-cov python-pytest-dependency))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key outputs tests? #:allow-other-keys)
(when tests?
;; Make installed executable available for running the tests.
(setenv "PATH"
(string-append (assoc-ref outputs "out") "/bin"
":" (getenv "PATH")))
(invoke "pytest" "-vv")))))))
(home-page "https://github.com/codespell-project/codespell/")
(synopsis "Spellchecker for code")
(description "Codespell fixes common misspellings in text files.
It's designed primarily for checking misspelled words in source code,
but it can be used with other files as well. It does not check for word
membership in a complete dictionary, but instead looks for a set of
common misspellings. Therefore it should catch errors like \"adn\", but
it will not catch \"adnasdfasdf\". This also means it shouldn't
generate false-positives when you use a niche term it doesn't know
about.")
(license
(list
; for codespell and codespell_lib
license:gpl2
; for dictionary*.txt
license:cc-by-sa3.0))))
(define-public python-pathlib
(package
(name "python-pathlib")
(version "1.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "pathlib" version))
(sha256
(base32
"17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"))))
(build-system python-build-system)
;; The tests depend on the internal "test" module, which does not provide
;; a stable interface.
(arguments `(#:tests? #f))
(home-page "https://pathlib.readthedocs.org/")
(synopsis "Object-oriented file system paths")
(description "Pathlib offers a set of classes to handle file system paths.
It offers the following advantages over using string objects:
@enumerate
@item No more cumbersome use of os and os.path functions. Everything can
be done easily through operators, attribute accesses, and method calls.
@item Embodies the semantics of different path types. For example,
comparing Windows paths ignores casing.
@item Well-defined semantics, eliminating any inconsistencies or
ambiguities (forward vs. backward slashes, etc.).
@end enumerate
Note: In Python 3.4, pathlib is now part of the standard library. For other
Python versions please consider python-pathlib2 instead, which tracks the
standard library module. This module (python-pathlib) isn't maintained
anymore.")
(license license:expat)))
(define-public python-jellyfish
(package
(name "python-jellyfish")
(version "0.8.8")
(source (origin
(method url-fetch)
(uri (pypi-uri "jellyfish" version))
(sha256
(base32
"0p2s6b30sfffx8sya2i8kz0i0riw9fq1fi0k89s8kdgrmjf0h1h5"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; XXX: Tests cannot find C coded version.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "jellyfish/test.py")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/jamesturk/jellyfish")
(synopsis "Approximate and phonetic matching of strings")
(description "Jellyfish uses a variety of string comparison and phonetic
encoding algorithms to do fuzzy string matching.")
(license license:bsd-2)))
(define-public python-pdfminer-six
(package
(name "python-pdfminer-six")
(version "20201018")
;; There are no tests in the PyPI tarball.
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pdfminer/pdfminer.six")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1a2fxxnnjqbx344znpvx7cnv1881dk6585ibw01inhfq3w6yj2lr"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; Tests write to the source tree.
(add-after 'unpack 'make-git-checkout-writable
(lambda _
(for-each make-file-writable (find-files "."))
#t))
(replace 'check
(lambda _
(invoke "make" "test"))))))
(propagated-inputs
(list python-chardet python-cryptography python-sortedcontainers))
(native-inputs
(list python-nose python-tox))
(home-page "https://github.com/pdfminer/pdfminer.six")
(synopsis "PDF parser and analyzer")
(description "@code{pdfminer.six} is a community maintained fork of
the original PDFMiner. It is a tool for extracting information from PDF
documents. It focuses on getting and analyzing text data. Pdfminer.six
extracts the text from a page directly from the sourcecode of the PDF. It
can also be used to get the exact location, font or color of the text.")
(license license:expat)))
(define-public python-rarfile
(package
(name "python-rarfile")
(version "4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "rarfile" version))
(sha256
(base32
"1882wv9szcm29mnyhjmspyflyr2l7z73srn14w4dlnww49lqfm37"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ;; The bsdtar utility is very limited and most tests fail.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "rarfile.py"
;; Disable unrar and unar, which are unavailable on Guix.
(("(unrar|unar)=True" all tool) (string-append tool "=False"))
;; Hardcode path to bsdtar
(("\"bsdtar\"")
(string-append "\"" (assoc-ref inputs "libarchive") "/bin/bsdtar\"")))
#t))
(replace 'check
(lambda* (#:key inputs tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest))
(inputs (list libarchive))
(home-page "https://github.com/markokr/rarfile")
(synopsis "RAR archive reader for Python")
(description "This is Python module for RAR archive reading. The interface
is made as zipfile like as possible.")
(license license:isc)))
(define-public python-rich
(package
(name "python-rich")
(version "12.4.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "rich" version))
(sha256
(base32
"149vjb4cpf9mz14iig0b6d8065dm8aslp6pc45g9ipmp1wf00ffj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs tests? #:allow-other-keys)
(when tests?
(copy-recursively (string-append
(assoc-ref inputs "tests") "/tests")
"tests")
(invoke "python" "-m" "pytest" "-vv")))))))
(propagated-inputs
(list python-attrs python-colorama python-commonmark python-pygments
python-typing-extensions))
(native-inputs
`(("python-pytest" ,python-pytest)
("tests"
;; The release on pypi comes without tests. We can't build from this
;; checkout, though, because installation requires an invocation of
;; poetry.
,(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/willmcgugan/rich")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"17c3gljn8zv32xnpsgd3fqgqn4r7cdfqri41hridcpbhssdgkyp9"))))))
(home-page "https://github.com/willmcgugan/rich")
(synopsis "Render rich text and more to the terminal")
(description
"This is a Python package for rendering rich text, tables, progress bars,
syntax highlighting, markdown and more to the terminal.")
(license license:expat)))
(define-public python-textual
(package
(name "python-textual")
(version "0.1.18")
(source (origin
(method url-fetch)
(uri (pypi-uri "textual" version))
(sha256
(base32
"08yg5a51hz1axfj5hx28hx31gq5apcj6vpkkmawmiplisa73z25j"))))
(build-system python-build-system)
(arguments
(let ((tests
;; The release on pypi comes without tests. We can't build
;; from this checkout, though, because installation requires
;; an invocation of poetry.
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Textualize/textual")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0b3ycwqhp21mg9fvmadgxhgbvkwq6fd784l2xcmvy77rravrnnax")))))
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(copy-recursively #$(file-append tests "/tests")
"tests")
(invoke "python" "-m" "pytest" "-vv"))))))))
(propagated-inputs
(list python-rich python-typing-extensions))
(native-inputs
(list python-pytest))
(home-page "https://github.com/Textualize/textual")
(synopsis "Build text user interfaces in Python")
(description "Textual is a @acronym{TUI, Text User Interface} framework
for Python inspired by modern web development.")
(license license:expat)))
(define-public python-magic
(package
(name "python-magic")
(version "0.4.24")
(home-page "https://github.com/ahupp/python-magic")
(source
(origin
(method git-fetch)
(uri (git-reference (url home-page) (commit version)))
(file-name (git-file-name name version))
(patches (search-patches "python-magic-python-bytecode.patch"))
(sha256
(base32
"17jalhjbfd600lzfz296m0nvgp6c7vx1mgz82jbzn8hgdzknf4w0"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
;; Replace a specific method call with a hard-coded
;; path to the necessary libmagic.so file in the
;; store. If we don't do this, then the method call
;; will fail to find the libmagic.so file, which in
;; turn will cause any application using
;; python-magic to fail.
(add-before 'build 'hard-code-path-to-libmagic
(lambda* (#:key inputs #:allow-other-keys)
(let ((magic (search-input-file inputs "/lib/libmagic.so")))
(substitute* "magic/loader.py"
(("find_library\\('magic'\\)")
(string-append "'" magic "'"))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
;; The test suite mandates this variable.
(setenv "LC_ALL" "en_US.UTF-8")
(if tests?
(with-directory-excursion "test"
(invoke "python" "./test.py")
(invoke "python" "./libmagic_test.py"))
(format #t "test suite not run~%")))))))
(native-inputs
(list which))
(inputs
;; python-magic needs to be able to find libmagic.so.
;; Use a newer version because 5.39 returns bogus for some archives
;; (notably Chromium .crx extensions), which breaks e.g. 'diffoscope'.
(list file-next))
(synopsis "File type identification using libmagic")
(description
"This module uses ctypes to access the libmagic file type
identification library. It makes use of the local magic database and
supports both textual and MIME-type output. Note that this module and
the python-file module both provide a \"magic.py\" file; these two
modules, which are different and were developed separately, both serve
the same purpose: to provide Python bindings for libmagic.")
(license license:expat)))
(define-public s3cmd
(package
(name "s3cmd")
(version "2.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/s3tools/s3cmd")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0rdgwwmmp8mdxc84bxq6k9a7v7z2qgc3df47djzs2b84gw81dglx"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'hide-wrapping
(lambda _
(substitute* "S3/MultiPart.py"
(("sys\\.argv\\[0\\]") "\"s3cmd\""))
(substitute* "s3cmd"
(("optparser\\.get_prog_name\\(\\)") "\"s3cmd\"")))))))
(inputs
(list python-dateutil
python-magic))
(home-page "https://s3tools.org/s3cmd")
(synopsis "Command line tool for S3-compatible storage services")
(description
"S3cmd is a command line tool for uploading, retrieving and managing data
in storage services that are compatible with the Amazon Simple Storage
Service (S3) protocol, including S3 itself. It supports rsync-like backup,
GnuPG encryption, and more. It also supports management of Amazon's
CloudFront content delivery network.")
(license license:gpl2+)))
(define-public python-pkgconfig
(package
(name "python-pkgconfig")
(version "1.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pkgconfig" version))
(sha256
(base32
"107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(inputs
(list pkg-config))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'patch
;; Hard-code the path to pkg-config.
(lambda _
(substitute* "pkgconfig/pkgconfig.py"
(("'pkg-config'")
(string-append "'" (which "pkg-config") "'")))))
(replace 'check
(lambda _
(invoke "nosetests" "test.py"))))))
(home-page "https://github.com/matze/pkgconfig")
(synopsis "Python interface for pkg-config")
(description "This module provides a Python interface to pkg-config. It
can be used to find all pkg-config packages, check if a package exists,
check if a package meets certain version requirements, query CFLAGS and
LDFLAGS and parse the output to build extensions with setup.py.")
(license license:expat)))
(define-public python-bz2file
(package
(name "python-bz2file")
(version "0.98")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bz2file" version))
(sha256
(base32
"126s53fkpx04f33a829yqqk8fj4png3qwg4m66cvlmhmwc8zihb4"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; Tests use deprecated python modules.
(home-page "https://github.com/nvawda/bz2file")
(synopsis "Read and write bzip2-compressed files")
(description
"Bz2file is a Python library for reading and writing bzip2-compressed
files. It contains a drop-in replacement for the I/O interface in the
standard library's @code{bz2} module, including features from the latest
development version of CPython that are not available in older releases.")
(license license:asl2.0)))
(define-public python-future
(package
(name "python-future")
(version "0.18.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "future" version))
(sha256
(base32
"0zakvfj87gy6mn1nba06sdha63rn4njm7bhh0wzyrxhcny8avgmi"))))
(build-system python-build-system)
;; Many tests connect to the network or are otherwise flawed.
;; https://github.com/PythonCharmers/python-future/issues/210
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(replace 'sanity-check
(let ((sanity-check (assoc-ref %standard-phases 'sanity-check)))
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
(let* ((files (find-files (site-packages inputs outputs)
"top_level\\.txt"))
(backups (map (lambda (f) (string-append f ".bak"))
files)))
(for-each copy-file files backups)
(substitute* files
;; Nobody be usin' winreg on Guix
;; Also, don't force users to have tkinter when they don't
;; need it
(("(winreg|tkinter)") ""))
(apply sanity-check args)
(for-each rename-file backups files))))))))
(home-page "https://python-future.org")
(synopsis "Single-source support for Python 3 and 2")
(description
"@code{python-future} is the missing compatibility layer between Python 2 and
Python 3. It allows you to use a single, clean Python 3.x-compatible codebase
to support both Python 2 and Python 3 with minimal overhead.")
(license license:expat)))
(define-public python-cysignals
(package
(name "python-cysignals")
(version "1.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cysignals" version))
(sha256
(base32
"15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2"))))
(build-system python-build-system)
(native-inputs
(list python-cython python-sphinx))
(inputs
(list pari-gp))
(arguments
`(#:modules ((guix build python-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
;; FIXME: Tests are executed after installation and currently fail
;; when not installing into standard locations; the author is working
;; on a fix.
#:tests? #f
#:phases
(modify-phases %standard-phases
(add-before
'build 'configure
(assoc-ref gnu:%standard-phases 'configure)))))
(home-page
"https://github.com/sagemath/cysignals")
(synopsis
"Handling of interrupts and signals for Cython")
(description
"The cysignals package provides mechanisms to handle interrupts (and
other signals and errors) in Cython code, using two related approaches,
for mixed Cython/Python code or external C libraries and pure Cython code,
respectively.")
(license license:lgpl3+)))
(define-public python-rope
(package
(name "python-rope")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rope" version))
(sha256
(base32
"0bkzwkllxxdxd3w70xiy137lqvnlmmaplsc2ya3s23ss4kq8y10k"))))
(build-system python-build-system)
(arguments
(list #:phases
`(modify-phases %standard-phases
(add-after 'unpack 'disable-broken-test
(lambda _
(substitute* "ropetest/contrib/autoimporttest.py"
(("def test_search_module")
"def __notest_search_module")
(("def test_search_submodule")
"def __notest_search_submodule")))))))
(native-inputs
(list python-pytest-timeout
python-pytest))
(home-page "https://github.com/python-rope/rope")
(synopsis "Refactoring library for Python")
(description "Rope is a refactoring library for Python. It facilitates
the renaming, moving and extracting of attributes, functions, modules, fields
and parameters in Python source code. These refactorings can also be applied
to occurrences in strings and comments.")
(license license:lgpl3+)))
(define-public python-py3status
(package
(name "python-py3status")
(version "3.21")
(source
(origin
(method url-fetch)
(uri (pypi-uri "py3status" version))
(sha256
(base32 "16z8zq83hxy48g6hh4xczbdz50qvxv9k1aahr4fqq7jis60cc262"))))
(build-system python-build-system)
(inputs
(list file))
(arguments
'(#:phases
(modify-phases %standard-phases
;; 'file' is used for detection of configuration file encoding
;; let's make link the dependency to particular input
(add-before 'build 'patch-file-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((file-path (assoc-ref inputs "file")))
(substitute* "py3status/parse_config.py"
(("\\[\"file\", \"-b\"")
(string-append "['" file-path "/bin/file', '-b'")))
#t))))
#:tests? #f)) ; TODO: Requires many libraries not in Guix.
(home-page "https://github.com/ultrabug/py3status")
(synopsis "Extensible i3status wrapper written in Python")
(description "py3status is an i3status wrapper which extends i3status
functionality in a modular way, allowing you to extend your panel with your
own code, responding to click events and updating clock every second.")
(license license:bsd-3)))
(define-public python-tblib
(package
(name "python-tblib")
(version "1.6.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "tblib" version))
(sha256
(base32
"0i136n5pydmd202254wzrdbspkw0br0c9mbxhfs9hpfbahvyx6r2"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "py.test" "-vv" "tests" "README.rst"))))))
(native-inputs
(list python-pytest python-six))
(home-page "https://github.com/ionelmc/python-tblib")
(synopsis "Traceback serialization library")
(description
"Traceback serialization allows you to:
@enumerate
@item Pickle tracebacks and raise exceptions with pickled tracebacks in
different processes. This allows better error handling when running code over
multiple processes (imagine multiprocessing, billiard, futures, celery etc).
@item Parse traceback strings and raise with the parsed tracebacks.
@end enumerate\n")
(license license:bsd-3)))
(define-public python-tftpy
(package
(name "python-tftpy")
(version "0.8.2")
(source
(origin
(method git-fetch) ;no tests in PyPI archive
(uri (git-reference
(url "https://github.com/msoulier/tftpy")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1gl04ps8h8r7av3h0zbm8gwmkqs9rkk5vf7n8mv2bzrkwvy9hacc"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
;; The default DEBUG logging level is way too verbose.
(substitute* "t/test.py"
(("logging\\.DEBUG")
"logging.INFO"))
(invoke "python" "-m" "unittest" "t/test.py")))))))
(home-page "http://tftpy.sourceforge.net/")
(synopsis "Python trivial file transfer protocol (TFTP) library")
(description "TFTPy is a trivial file transfer protocol (TFTP) Python
library. It can be used to act both as a TFTP client or TFTP server.")
(license license:expat)))
(define-public python-greenlet
(package
(name "python-greenlet")
(version "1.1.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "greenlet" version))
(sha256
(base32
"0jkln5bf6rq7dbvpv7ypin3pp9jqd2jr91yyxlnfcii3msj5w3z3"))))
(build-system python-build-system)
(home-page "https://greenlet.readthedocs.io/")
(synopsis "Lightweight in-process concurrent programming")
(description
"Greenlet package is a spin-off of Stackless, a version of CPython
that supports micro-threads called \"tasklets\". Tasklets run
pseudo-concurrently (typically in a single or a few OS-level threads) and
are synchronized with data exchanges on \"channels\".")
(license (list license:psfl license:expat))))
(define-public python-objgraph
(package
(name "python-objgraph")
(version "3.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "objgraph" version))
(sha256
(base32
"19qmqsh984zq1rzzjy4vqnmviaqnymcyl8h7z99pnicbgwnm2adz"))))
(build-system python-build-system)
(propagated-inputs
(list python-graphviz))
(native-inputs
(list python-mock graphviz))
(home-page "https://mg.pov.lt/objgraph/")
(synopsis "Draw Python object reference graphs with graphviz")
(description
"This package provides tools to draw Python object reference graphs with
graphviz.")
(license license:expat)))
(define-public python-gevent
(package
(name "python-gevent")
(version "21.12.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "gevent" version))
(sha256
(base32
"0kh9mmq811mzfgj60n64icybjp4ryjmfmy1vg7x92yrniibn92zl"))
(modules '((guix build utils)))
(snippet
'(begin
;; unbunding libev and c-ares
(delete-file-recursively "deps")
;; Remove cythonized files.
(with-directory-excursion "src/gevent"
(for-each delete-file
(append (list "resolver/cares.c"
"queue.c"
"local.c"
"libev/corecext.h"
"libev/corecext.c"
"greenlet.c"
"event.c"
"_waiter.c"
"_tracer.c"
"_semaphore.c"
"_imap.c"
"_ident.c"
"_hub_primitives.c"
"_hub_local.c"
"_greenlet_primitives.c"
"_abstract_linkable.c")
(find-files "." "\\.html$"))))))))
(build-system python-build-system)
(arguments
`(#:modules ((ice-9 ftw)
(ice-9 match)
(srfi srfi-26)
(guix build utils)
(guix build python-build-system))
#:phases (modify-phases %standard-phases
(add-before 'patch-source-shebangs 'patch-hard-coded-paths
(lambda _
(substitute* "src/gevent/subprocess.py"
(("/bin/sh") (which "sh")))
(for-each (lambda (file)
(substitute* file
(("/bin/sh") (which "sh"))
(("/bin/true") (which "true"))))
(find-files "src/greentest" "\\.py$"))))
(add-before 'build 'do-not-use-bundled-sources
(lambda _
(setenv "GEVENTSETUP_EMBED" "0")
;; Prevent building bundled libev.
(substitute* "setup.py"
(("run_make=_BUILDING")
"run_make=False"))))
(add-before 'build 'add-greenlet-on-C_INCLUDE_PATH
(lambda* (#:key inputs #:allow-other-keys)
(let ((greenlet (string-append
(assoc-ref inputs "python-greenlet")
"/include")))
(match (scandir greenlet
(lambda (item)
(string-prefix? "python" item)))
((python)
(setenv "C_INCLUDE_PATH"
(string-append greenlet "/" python ":"
(or (getenv "C_INCLUDE_PATH")
""))))))))
(add-before 'check 'pretend-to-be-CI
(lambda _
;; A few tests are skipped due to network constraints or
;; get longer timeouts when running in a CI environment.
;; Piggy-back on that, as we need the same adjustments.
(setenv "TRAVIS" "1")
(setenv "APPVEYOR" "1")))
(add-before 'check 'adjust-tests
(lambda _
(let ((disabled-tests
'(;; These tests relies on networking which is
;; not available in the build container.
"test__getaddrinfo_import.py"
"test__server_pywsgi.py"
;; XXX: These tests borrow functionality from the
;; Python builtin 'test' module, but it is not
;; installed with the Guix Python distribution.
"test_smtpd.py"
"test_wsgiref.py"
"test_urllib2.py"
"test_thread.py"
"test_threading.py"
"test__threading_2.py"
;; These tests rely on KeyboardInterrupts which do not
;; work inside the build container for some reason
;; (lack of controlling terminal?).
"test_subprocess.py"
"test__issues461_471.py"
;; TODO: Patch out the tests that use getprotobyname, etc
;; instead of disabling all the tests from these files.
"test__resolver_dnspython.py"
"test__doctests.py"
"test__all__.py"
"test___config.py"
"test__execmodules.py"
;; This test contains 'test_unlink', which
;; fails on i686 (see:
;; https://github.com/gevent/gevent/issues/1558).
"test__core_stat.py")))
(call-with-output-file "skipped_tests.txt"
(lambda (port)
(format port "~a~%"
(string-join disabled-tests "\n")))))))
(replace 'check
(lambda _
;; Use the build daemons configured number of workers.
(setenv "NWORKERS" (number->string (parallel-job-count)))
(invoke "python" "-m" "gevent.tests" "-unone" "--config"
"known_failures.py" "--ignore" "skipped_tests.txt"))))))
(propagated-inputs
(list python-greenlet python-zope-event python-zope-interface))
(native-inputs
(list python-cython
;; For tests.
python-dnspython python-psutil python-objgraph))
(inputs
(list c-ares libev))
(home-page "https://www.gevent.org/")
(synopsis "Coroutine-based network library")
(description
"@code{gevent} is a coroutine-based Python networking library that uses
@code{greenlet} to provide a high-level synchronous API on top of the
@code{libev} event loop.")
(license license:expat)))
(define-public python-fastimport
(package
(name "python-fastimport")
(version "0.9.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fastimport" version))
(sha256
(base32 "06gk14qgm9dxx3pzjn0ckdbywc8ial2bjfzddqwlr4bn1nnqkbll"))))
(build-system python-build-system)
(home-page "https://github.com/jelmer/python-fastimport")
(synopsis "VCS fastimport parser and generator in Python")
(description "This package provides a parser for and generator of the Git
@url{https://www.kernel.org/pub/software/scm/git/docs/git-fast-import.html,fastimport}
format.")
(license license:gpl2+)))
(define-public python-twisted
(package
(name "python-twisted")
(version "19.7.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "Twisted" version ".tar.bz2"))
(sha256
(base32
"17d3hnxv9qndagzz63mdpyk99xj63p9gq586vjn0rxk8cl197nym"))))
(build-system python-build-system)
(arguments
'(#:tests? #f ; FIXME: some tests fail
#:phases
(modify-phases %standard-phases
;; Remove scripts, because they depend on [conch]
(add-after 'unpack 'remove-entrypoint
(lambda _
(substitute* "src/twisted/python/_setup.py"
(("\".+ = twisted\\.conch\\.scripts\\..+\",") "")))))))
(propagated-inputs
(list python-zope-interface
python-pyhamcrest
python-incremental
python-hyperlink
python-constantly
python-automat))
(home-page "https://twistedmatrix.com/")
(synopsis "Asynchronous networking framework written in Python")
(description
"Twisted is an extensible framework for Python programming, with special
focus on event-based network programming and multiprotocol integration.")
(license license:expat)))
(define-public python-pika
(package
(name "python-pika")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pika/pika")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0sqj3bg6jwign8vwvn337fbwy69sm684ns1vh5kbfnskq4him9i2"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-after 'unpack 'disable-live-tests
(lambda _
;; Disable tests that require RabbitMQ, which is not
;; yet available in Guix.
(substitute* "nose2.cfg"
(("tests=tests/unit,tests/acceptance")
"start-dir=tests/unit"))
(with-directory-excursion "tests"
(for-each delete-file
'("unit/base_connection_tests.py"
"unit/threaded_test_wrapper_test.py")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "PYTHONPATH" (getcwd))
(invoke "nose2" "-v")))))))
(native-inputs
(list python-mock
python-nose2
;; These are optional at runtime, and provided here for tests.
python-gevent
python-tornado
python-twisted))
(home-page "https://pika.readthedocs.org")
(synopsis "Pure Python AMQP Client Library")
(description
"Pika is a pure-Python implementation of the AMQP (Advanced Message Queuing
Protocol) 0-9-1 protocol that tries to stay fairly independent of the underlying
network support library.")
(license license:bsd-3)))
(define-public python-ply
(package
(name "python-ply")
(version "3.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ply" version))
(sha256
(base32
"18qx113g9bi1ac4indd5phma82zcdq601lxncp3vjn43m2mc3iq0"))))
(build-system python-build-system)
(home-page "http://www.dabeaz.com/ply/")
(synopsis "Python Lex & Yacc")
(description "PLY is a @code{lex}/@code{yacc} implemented purely in Python.
It uses LR parsing and does extensive error checking.")
(license license:bsd-3)))
(define-public python-tabulate
(package
(name "python-tabulate")
(version "0.8.9")
(source (origin
(method url-fetch)
(uri (pypi-uri "tabulate" version))
(sha256
(base32
"19qkdz8xwk5jxa5xn53mnk76qnh4ysm81vzj664jw1b0azr167gb"))))
(build-system python-build-system)
(arguments
;; FIXME: The pypi release tarball is missing a 'test/common.py'
;; and the latest release is not tagged in the upstream repository.
'(#:tests? #f))
(home-page "https://bitbucket.org/astanin/python-tabulate")
(synopsis "Pretty-print tabular data")
(description
"Tabulate is a library and command-line utility to pretty-print tabular
data in Python.")
(license license:expat)))
(define-public python-kazoo
(package
(name "python-kazoo")
(version "2.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "kazoo" version))
(sha256
(base32
"1zpj5cc8624w6i0pxgcxqkjwbkm4pkrv19d7wh5df3jais32g3jq"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; XXX: needs zookeeper
(propagated-inputs
(list python-six))
(home-page "https://kazoo.readthedocs.org")
(synopsis "High-level Zookeeper client library")
(description
"Kazoo is a Python client library for the Apache Zookeeper distributed
application service. It is designed to be easy to use and to avoid common
programming errors.")
(license license:asl2.0)))
(define-public python-pykafka
(package
(name "python-pykafka")
(version "2.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pykafka" version))
(sha256
(base32
"1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
(propagated-inputs
(list python-gevent python-kazoo python-tabulate))
(inputs
(list librdkafka))
(home-page "https://pykafka.readthedocs.io/")
(synopsis "Apache Kafka client for Python")
(description
"PyKafka is a client for the Apache Kafka distributed messaging system.
It includes Python implementations of Kafka producers and consumers, which
are optionally backed by a C extension built on librdkafka.")
(license license:asl2.0)))
(define-public python-wcwidth
(package
(name "python-wcwidth")
(version "0.1.8")
(source (origin
(method url-fetch)
(uri (pypi-uri "wcwidth" version))
(sha256
(base32
"1a1pzds3xzfylm5mnc5f6c1p8kiig0daqjc9gygd9rc3cj53x2zj"))))
(build-system python-build-system)
(home-page "https://github.com/jquast/wcwidth")
(synopsis "Measure number of terminal column cells of wide-character codes")
(description "Wcwidth measures the number of terminal column cells of
wide-character codes. It is useful for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one. It is a
Python implementation of the @code{wcwidth} and @code{wcswidth} C functions
specified in POSIX.1-2001 and POSIX.1-2008.")
(license license:expat)))
(define-public python-chai
(package
(name "python-chai")
(version "1.1.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "chai" version))
(sha256
(base32
"1k6n6zbgrrs83crp6mr3yqj9zlv40b8rpisyrliwsq7naml2p3gz"))
(patches (search-patches "python-chai-drop-python2.patch"))))
(build-system python-build-system)
(home-page "https://github.com/agoragames/chai")
(synopsis "Mocking framework for Python")
(description
"Chai provides an api for mocking, stubbing and spying your python
objects, patterned after the Mocha library for Ruby.")
(license license:bsd-3)))
(define-public python-inflection
(package
(name "python-inflection")
(version "0.3.1")
(source
(origin (method url-fetch)
(uri (pypi-uri "inflection" version))
(sha256
(base32
"1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/jpvanhal/inflection")
(synopsis "Python string transformation library")
(description
"Inflection is a string transformation library. It singularizes
and pluralizes English words, and transforms strings from CamelCase to
underscored string.")
(license license:expat)))
(define-public python-pylev
(package
(name "python-pylev")
(version "1.3.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pylev" version))
(sha256
(base32
"1hz1x9blsbxya1y9nnhnwwdnqmakxi9mc0jkwj0rn6b1h44i0f86"))))
(build-system python-build-system)
(home-page "https://github.com/toastdriven/pylev")
(synopsis "Levenshtein distance implementation in Python")
(description "Pure Python Levenshtein implementation, based off the
Wikipedia code samples at
@url{http://en.wikipedia.org/wiki/Levenshtein_distance}.")
(license license:bsd-3)))
(define-public python-cleo
(package
(name "python-cleo")
(version "0.8.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "cleo" version))
(sha256
(base32
"17q6wi3q280kxmxzb2iwnnqih2xbljn18v0bjx2ip18p079j43ix"))))
(build-system python-build-system)
(native-inputs
(list ;; For testing
python-mock python-pytest-mock python-pytest))
(propagated-inputs
(list python-backpack python-clikit python-pastel python-pylev))
(home-page "https://github.com/sdispater/cleo")
(synopsis "Command-line arguments library for Python")
(description
"Cleo allows you to create command-line commands with signature in
docstring and colored output.")
(license license:expat)))
(define-public python-tomlkit
(package
(name "python-tomlkit")
(version "0.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tomlkit" version))
(sha256
(base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-pyyaml))
(home-page "https://github.com/sdispater/tomlkit")
(synopsis "Style-preserving TOML library")
(description
"TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that
preserves all comments, indentations, whitespace and internal element ordering,
and makes them accessible and editable via an intuitive API. It can also
create new TOML documents from scratch using the provided helpers. Part of the
implementation has been adapted, improved, and fixed from Molten.")
(license license:expat)))
(define-public python-shellingham
(package
(name "python-shellingham")
(version "1.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "shellingham" version))
(sha256
(base32 "07hpndvcv9mf9hp54b4apzpwzmzfzl8ryaacsfdq4139im2w4ma8"))))
(build-system python-build-system)
(home-page "https://github.com/sarugaku/shellingham")
(synopsis "Tool to detect surrounding shell")
(description
"Shellingham detects what shell the current Python executable is
running in.")
(license license:isc)))
(define-public python-memcached
(package
(name "python-memcached")
(version "1.59")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-memcached" version))
(sha256
(base32
"0kvyapavbirk2x3n1jx4yb9nyigrj1s3x15nm3qhpvhkpqvqdqm2"))
(patches (search-patches "python-memcached-syntax-warnings.patch"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
(home-page
"https://github.com/linsomniac/python-memcached")
(synopsis "Pure python memcached client")
(description
"This software is a pure Python interface to the memcached memory cache
daemon. It is the client side software which allows storing values in one or
more, possibly remote, memcached servers.")
(license license:psfl)))
(define-public python-mergedeep
(package
(name "python-mergedeep")
(version "1.3.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/clarketm/mergedeep")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1msvvdzk33sxzgyvs4fs8dlsrsi7fjj038z83s0yw5h8m8d78469"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/clarketm/mergedeep")
(synopsis "Deep merge function for Python")
(description "This package provides a deep merge function for Python,
useful to combine multiple data objects as one.")
(license license:expat)))
(define-public python-clikit
(package
(name "python-clikit")
(version "0.6.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "clikit" version))
(sha256
(base32
"0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; no test in the PyPI tarball
(propagated-inputs
(list python-crashtest python-pastel python-pylev))
(home-page "https://github.com/sdispater/clikit")
(synopsis "Group of utilities to build command line interfaces")
(description
"CliKit is a group of utilities to build testable command line
interfaces.")
(license license:expat)))
(define-public python-msgpack-python
(package
(name "python-msgpack-python")
(version "0.5.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "msgpack-python" version))
(sha256
(base32
"16wh8qgybmfh4pjp8vfv78mdlkxfmcasg78lzlnm6nslsfkci31p"))))
(build-system python-build-system)
(home-page "https://msgpack.org/")
(synopsis "Package to deserialize messages in MessagePack binary format")
(description
"MessagePack is an efficient binary serialization format. It lets you
exchange data among multiple languages like JSON. But it's faster and
smaller. Small integers are encoded into a single byte, and typical short
strings require only one extra byte in addition to the strings themselves.")
(license license:asl2.0)))
(define-public python-cattrs
(package
(name "python-cattrs")
(version "22.1.0")
(source (origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/python-attrs/cattrs")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1n0h25gj6zd02kqyl040xpdvg4hpy1j92716sz0rg019xjqqijqb"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'adjust-for-older-attrs
;; Our older attrs package is using the 'attr' rather than 'attrs'
;; namespace.
;; TODO: Remove after python-attrs is updated to >= 21.4.0.
(lambda _
(substitute* (find-files "." "\\.py$")
(("from attrs\\b")
"from attr"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Do not use the 'pytest' binary as it hard-codes an older
;; python-hypothesis version near the beginning of its
;; GUIX_PYTHONPATH.
(invoke "python" "-m" "pytest" "-vv" "-c" "/dev/null" "tests"
"-n" (number->string (parallel-job-count))
;; This test requires orjson, which needs the maturin
;; build system and new Rust dependencies.
"--ignore" "tests/test_preconf.py")))))))
(native-inputs
(list python-hypothesis-next
python-immutables
python-msgpack
python-poetry-core
python-pymongo ;for the bson module
python-pytest
python-pytest-xdist))
(propagated-inputs
(list python-attrs
python-exceptiongroup
python-typing-extensions))
(home-page "https://github.com/python-attrs/cattrs")
(synopsis "Python library for structuring and unstructuring data")
(description "@code{cattrs} is an Python library for structuring and
unstructuring data. @code{cattrs} works best with @code{attrs} classes,
@code{dataclasses} and the usual Python collections, but other kinds of
classes can also be supported by manually registering converters.")
(license license:expat)))
(define-public python-cachy
(package
(name "python-cachy")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cachy" version))
(sha256
(base32
"1cb9naly8ampzlky7h74n5wj628l7jkpsh0c0jz0namlrvs82r8q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "pifpaf" "run" "memcached" "--port" "11211" "--"
"pytest"))))))
(native-inputs
(list memcached python-fakeredis python-flexmock python-pifpaf
python-pytest))
(propagated-inputs
(list python-memcached python-msgpack-python python-redis))
(home-page "https://github.com/sdispater/cachy")
(synopsis "Simple yet effective caching library")
(description
"Cachy provides a simple yet effective caching library. A simple but
powerful API: thread-safety; decorator syntax; support for memcached, redis,
database, file, dict stores. Cachy supports python versions 2.7+ and 3.2+.")
(license license:expat)))
(define-public poetry
(package
(name "poetry")
(version "1.1.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "poetry" version))
(sha256
(base32
"0rr54mvcfcv9cv6vw2122y28xvd2pwqpv2x8c8j5ayz3gwsy4rjw"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ;PyPI does not have tests
#:phases
(modify-phases %standard-phases
(add-before 'build 'patch-setup-py
(lambda _
(substitute* "setup.py"
;; Relax some of the requirements.
(("(keyring>=21.2.0),<22.0.0" _ keyring) keyring)
(("(packaging>=20.4),<21.0" _ packaging) packaging)))))))
(propagated-inputs
(list python-cachecontrol
python-cachy
python-cleo
python-crashtest
python-entrypoints
python-html5lib
python-keyring
; Use of deprecated version of msgpack reported upstream:
; https://github.com/python-poetry/poetry/issues/3607
python-msgpack-transitional
python-packaging
python-pexpect
python-pip
python-pkginfo
python-poetry-core
python-requests
python-requests-toolbelt
python-shellingham
python-tomlkit
python-virtualenv))
(home-page "https://python-poetry.org")
(synopsis "Python dependency management and packaging made easy")
(description "Poetry is a tool for dependency management and packaging
in Python. It allows you to declare the libraries your project depends on and
it will manage (install/update) them for you.")
(license license:expat)))
(define-public python-lark-parser
(package
(name "python-lark-parser")
(version "0.9.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "lark-parser" version))
(sha256
(base32
"1kd61asrb3h9spgsj4bslfbgp8q4271sw3hblk6f2vbbblv8jxcy"))))
(build-system python-build-system)
(home-page "https://github.com/lark-parser/lark")
(synopsis "Multi-language parser for Python")
(description
"Lark is a parser built with a focus on ergonomics, performance and
resilience. Lark can parse all context-free languages. That means it is
capable of parsing almost any programming language out there, and to
some degree most natural languages too.")
(license license:expat)))
(define-public python-libcst
(package
(name "python-libcst")
(version "0.3.8")
(source (origin
(method url-fetch)
(uri (pypi-uri "libcst" version))
(sha256
(base32
"05zsc61gsd2pyb6wiyh58zczndxi6rm4d2jl94rpf5cv1fzw6ks8"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-tests
(lambda _
;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>.
(delete-file "libcst/tests/test_fuzz.py")
;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>.
(delete-file "libcst/tests/test_pyre_integration.py")
(delete-file "libcst/codemod/tests/test_codemod_cli.py")
(delete-file "libcst/metadata/tests/test_full_repo_manager.py")
(delete-file "libcst/metadata/tests/test_type_inference_provider.py")))
(add-before 'check 'generate-test-data
(lambda _
(invoke "python" "-m" "libcst.codegen.generate" "visitors")
(invoke "python" "-m" "libcst.codegen.generate" "return_types")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest")))))))
(native-inputs
(list python-black python-isort))
(propagated-inputs
(list python-typing-extensions python-typing-inspect python-pyyaml))
(home-page "https://github.com/Instagram/LibCST")
(synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python")
(description
"LibCST parses Python source code as a CST tree that keeps all
formatting details (comments, whitespaces, parentheses, etc). It's useful
for building automated refactoring (codemod) applications and linters.
LibCST creates a compromise between an Abstract Syntax Tree (AST) and
a traditional Concrete Syntax Tree (CST). By carefully reorganizing and
naming node types and fields, LibCST creates a lossless CST that looks and
feels like an AST.")
(license (list license:expat
;; Some files unde libcst/_parser/ are under Python Software
;; Foundation license (see LICENSE file for details)
license:psfl
;; libcst/_add_slots.py
license:asl2.0))))
(define-public python-libcst-minimal
(hidden-package
(package
(inherit python-libcst)
(name "python-libcst-minimal")
(arguments '(#:tests? #f))
(native-inputs '()))))
(define-public python-typing-inspect
(package
(name "python-typing-inspect")
(version "0.6.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "typing_inspect" version))
(sha256
(base32
"1dzs9a1pr23dhbvmnvms2jv7l7jk26023g5ysf0zvnq8b791s6wg"))
(patches (search-patches "python-typing-inspect-fix.patch"))))
(build-system python-build-system)
(propagated-inputs
(list python-mypy-extensions python-typing-extensions))
(home-page "https://github.com/ilevkivskyi/typing_inspect")
(synopsis "API for inspection of types in the Python @code{typing} module")
(description
"The @code{typing_inspect} module defines experimental API for runtime
inspection of types defined in the Python standard typing module.")
(license license:expat)))
(define-public python-lazy-object-proxy
(package
(name "python-lazy-object-proxy")
(version "1.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "lazy-object-proxy" version))
(sha256
(base32
"0hwh29m9wa582ramj30p4pysckdrmki1z1b8iaaxk6mpfx2kc8wp"))))
(native-inputs
(list python-setuptools-scm))
(build-system python-build-system)
(home-page "https://github.com/ionelmc/python-lazy-object-proxy")
(synopsis "Lazy object proxy for python")
(description
"Lazy object proxy is an object that wraps a callable but defers the call
until the object is actually required, and caches the result of said call.")
(license license:bsd-2)))
(define-public python-dnspython
(package
(name "python-dnspython")
(version "2.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "dnspython" version ".zip"))
(sha256
(base32
"1m0xvyby8baaxp6pfm0fgq8d2pq5dd8qm8bzfbrs009jaw5pza74"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; XXX: requires internet access
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-getprotobyname-calls
;; These calls are problematic in the build environment as there is
;; no /etc/protocols. This breaks the sanity-check phase of any
;; package depnding on this one.
(lambda _
(substitute* "dns/rdtypes/IN/WKS.py"
(("socket.getprotobyname\\('tcp'\\)")
"6")
(("socket.getprotobyname\\('udp'\\)")
"17")))))))
(native-inputs (list unzip))
(home-page "https://www.dnspython.org")
(synopsis "DNS toolkit for Python")
(description
"dnspython is a DNS toolkit for Python. It supports almost all record
types. It can be used for queries, zone transfers, and dynamic updates.
It supports TSIG authenticated messages and EDNS0.")
(license license:expat)))
(define-public python-dnspython-1.16
(package
(inherit python-dnspython)
(version "1.16.0")
(source (origin
(method url-fetch)
(uri (string-append "http://www.dnspython.org/kits/"
version "/dnspython-" version ".tar.gz"))
(sha256
(base32
"1yaw7irazy42n0kdhlk7wyg8ki34rxcnc5xbc1wfwy245b0wbxab"))))
(native-inputs '())))
(define-public python-py3dns
(package
(name "python-py3dns")
(version "3.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "py3dns" version))
(sha256
(base32
"1r25f0ys5p37bhld7m7n4gb0lrysaym3w318w2f8bncq7r3d81qz"))))
(build-system python-build-system)
;; This package wants to read /etc/resolv.conf. We can't patch it without
;; removing functionality so we copy from Nix and "just don't build it".
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
(substitute* "setup.py"
(("import DNS") "")
(("DNS.__version__") (string-append "\"" ,version "\"")))))
;; For the same reason, drop the sanity check because the library
;; fails to load without /etc/resolv.conf.
(delete 'sanity-check))
#:tests? #f)) ; Also skip the tests.
(home-page "https://launchpad.net/py3dns")
(synopsis "Python 3 DNS library")
(description "This Python 3 module provides a DNS API for looking up DNS
entries from within Python 3 modules and applications. This module is a
simple, lightweight implementation.")
(license license:psfl)))
(define-public python-email-validator
(package
(name "python-email-validator")
(version "1.0.2")
(source
(origin (method url-fetch)
(uri (pypi-uri "email_validator" version))
(sha256
(base32
"1ja9149l9ck5n45a72h3is7v476hjny5ybxbcamx1nw6iplsm7k6"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'build 'use-dnspython
(lambda _
(substitute* "setup.py"
(("dnspython3") "dnspython"))
#t)))))
(propagated-inputs
(list python-dnspython python-idna))
(home-page "https://github.com/JoshData/python-email-validator")
(synopsis "Email address validation library for Python")
(description
"This library validates email address syntax and deliverability.")
(license license:cc0)))
(define-public python-ukpostcodeparser
(package
(name "python-ukpostcodeparser")
(version "1.1.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "UkPostcodeParser" version))
(sha256
(base32
"03jkf1ygbwq3akzbcjyjk1akc1hv2sfgx90306pq1nwklbpn80lk"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Tests for lowercase postcodes fail.
(invoke "pytest" "-vv" "ukpostcodeparser/test/parser.py" "-k"
(string-append "not test_091 "
"and not test_097 "
"and not test_098 "
"and not test_125 "
"and not test_131"))))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/hamstah/ukpostcodeparser")
(synopsis "UK Postcode parser for Python")
(description
"This library provides the @code{parse_uk_postcode} function for
parsing UK postcodes.")
(license license:expat)))
(define-public python-faker
(package
(name "python-faker")
(version "13.3.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "Faker" version))
(sha256
(base32
"04855dqvvi2mr739l5x3qf82rxq0a7spc8gl76k8xixmbw36328q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "-v")))))))
(native-inputs
(list python-freezegun
python-pytest
python-random2
python-ukpostcodeparser
python-validators))
(propagated-inputs (list python-dateutil))
(home-page "https://github.com/joke2k/faker")
(synopsis "Python package that generates fake data")
(description
"Faker is a Python package that generates fake data such as names,
addresses, and phone numbers.")
(license license:expat)))
(define-public python-pyaml
(package
(name "python-pyaml")
(version "21.10.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "pyaml" version))
(sha256
(base32
"10w3frzqir5sbpglc9bwb8w414dsivmcvji07yxy61mz2gp9ylf6"))))
(build-system python-build-system)
(native-inputs
(list python-unidecode))
(propagated-inputs
(list python-pyyaml))
(home-page "https://github.com/mk-fg/pretty-yaml")
(synopsis "YAML pretty-print library for Python")
(description
"pyaml is a PyYAML based python module to produce pretty and readable
YAML-serialized data.")
(license license:wtfpl2)))
(define-public python-pyyaml-env-tag
(package
(name "python-pyyaml-env-tag")
(version "0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyyaml_env_tag" version))
(sha256
(base32 "1nsva88jsmwn0cb9jnrfiz4dvs9xakkpgfii7g1xwkx1pmsjc2bh"))))
(build-system python-build-system)
(propagated-inputs (list python-pyyaml))
(home-page "https://github.com/waylan/pyyaml-env-tag")
(synopsis "Custom YAML tag for environment variables")
(description "This package provides a custom YAML tag for referencing
environment variables in YAML files.")
(license license:expat)))
(define-public python-backpack
(package
(name "python-backpack")
(version "0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "backpack" version))
(sha256
(base32
"14rq1mvm0jda90lcx9gyyby9dvq4x3js2cmxvd6vl4686ixwyqh1"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-nose python-toml))
(propagated-inputs
(list python-simplejson))
(home-page "https://github.com/sdispater/backpack")
(synopsis "Utilities for working with Python collections")
(description "Backpack provides some useful utilities for working with
collections of data.")
(license license:expat)))
(define-public python-prompt-toolkit
(package
(name "python-prompt-toolkit")
(version "3.0.29")
(source
(origin
(method url-fetch)
(uri (pypi-uri "prompt_toolkit" version))
(sha256
(base32 "19vf5cahp3imdpwhgvk55g3dvqmc6ga175r4vkq79kffx1h0yr5x"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; HOME is needed for the test
;; "test_pathcompleter_can_expanduser".
(setenv "HOME" "/tmp")
(invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-wcwidth))
(native-inputs
(list python-pytest))
(home-page "https://github.com/prompt-toolkit/python-prompt-toolkit")
(synopsis "Library for building command line interfaces in Python")
(description
"Prompt-Toolkit is a library for building interactive command line
interfaces in Python. It's like GNU Readline but it also features syntax
highlighting while typing, out-of-the-box multi-line input editing, advanced
code completion, incremental search, support for Chinese double-width
characters, mouse support, and auto suggestions.")
(license license:bsd-3)))
(define-public python-proselint
(package
(name "python-proselint")
(version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "proselint" version))
(sha256
(base32
"0n1ahnq2mkgvh94g05xhc3l1fs3hh0ycskqlqivhhfdaq8ybdlkx"))))
(build-system python-build-system)
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-home-directory
(lambda _
(setenv "HOME" "/tmp"))))))
(propagated-inputs
(list python-click python-future python-six))
(home-page "https://github.com/amperser/proselint")
(synopsis "Linter for prose")
(description "@code{python-proselint} is a linter for English prose, that
scans through a file and detects issues.")
(license license:bsd-3)))
(define-public python-jedi
(package
(name "python-jedi")
(version "0.18.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/davidhalter/jedi")
(commit (string-append "v" version))
(recursive? #true)))
(file-name (git-file-name name version))
(sha256
(base32
"07drmi3ai49jw5n23ibkambcgijqcw073ihypjgxfnks5lv4yqy1"))
(modules '((guix build utils)))
(snippet
;; Adjust comprehension syntax for Python > 3.8.
;; From <https://github.com/davidhalter/jedi/issues/1824>.
'(substitute* "test/completion/lambdas.py"
(("if lambda: 3")
"if (lambda: 3)")))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-completion-test
(lambda _
;; This resolves a failure in the 'test_completion' test (see:
;; https://github.com/davidhalter/jedi/issues/1824).
;; TODO: Remove after a new release is made (currently: 0.18.1).
(substitute* "test/completion/lambdas.py"
(("\\[a for a in \\[1,2\\] if lambda: 3\\]\\[0\\]")
"[a for a in [1,2] if (lambda: 3)][0]"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
(invoke "python" "-m" "pytest" "-vv")))))))
(native-inputs
(list python-colorama python-docopt python-pytest))
(propagated-inputs
(list python-parso))
(home-page "https://github.com/davidhalter/jedi")
(synopsis "Autocompletion and static analysis library for Python")
(description
"Jedi is a static analysis tool for Python that can be used in Integrated
Development Environments (@dfn{IDE}s) and text editors. It understands Python
on a deeper level than many other static analysis frameworks for Python.
Jedi understands docstrings and you can use Jedi autocompletion in your REPL
as well.")
(license license:expat)))
(define-public ptpython
(package
(name "ptpython")
(version "3.0.20")
(source (origin
(method url-fetch)
(uri (pypi-uri "ptpython" version))
(sha256
(base32
"1mjfyr5gwrs1qbizh6nki0nv6hahmg8mhhqxi1qc6pfa4znlrzga"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;there are no tests
(propagated-inputs
(list python-appdirs python-black python-jedi python-prompt-toolkit
python-pygments))
(home-page "https://github.com/jonathanslenders/ptpython")
(synopsis "Python Read-Eval-Print-Loop with nice IDE-like features")
(description
"ptpython is a Python read-eval-print loop with IDE-like features.
It supports syntax highlighting, multiline editing, autocompletion, mouse,
color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters
etc.")
(license license:bsd-3)))
(define-public python-easyprocess
(package
(name "python-easyprocess")
(version "0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "EasyProcess" version))
(sha256
(base32 "115rzzr0hx4af4m6krf7dxn8851n4l8jfxahjzjc2r0zq2m8v57v"))))
(build-system python-build-system)
(arguments
;; Tests require pyvirtualdisplay, which requires this package.
`(#:tests? #f))
(home-page "https://github.com/ponty/easyprocess")
(synopsis "Python subprocess interface")
(description
"@code{easyprocess} is an easy to use Python subprocess interface.")
(license license:bsd-3)))
(define-public python-entrypoint2
(package
(name "python-entrypoint2")
(version "0.2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "entrypoint2" version))
(sha256
(base32 "1qyxq54r2fbh09ab5sffbxajy8arbk6czxz5lq3ccr9qrypw6w27"))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"))
(native-inputs
(list python-easyprocess python-pytest python-pytest-runner))
(home-page "https://github.com/ponty/entrypoint2")
(synopsis "Command-line interface for Python modules")
(description
"@code{entrypoint2} is an easy to use command-line interface for Python
modules based on @code{argparse}. It translates function signature and
documentation to argparse configuration.")
(license license:bsd-3)))
(define-public python-pyvirtualdisplay
(package
(name "python-pyvirtualdisplay")
(version "2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyVirtualDisplay" version))
(sha256
(base32 "1z2fzgiw3xv3m1d9ppn53g07zhnpj05addiz56sm6ircxibnjk4x"))))
(build-system python-build-system)
(arguments
;; Tests fail with:
;; FileNotFoundError: [Errno 2] No such file or directory: 'Xvnc'.
`(#:tests? #f))
(native-inputs
(list python-entrypoint2 python-psutil python-pytest
python-pytest-runner))
(propagated-inputs
(list python-easyprocess python-pillow))
(home-page "https://github.com/ponty/pyvirtualdisplay")
(synopsis "Python wrapper for Xvfb, Xephyr and Xvnc")
(description
"@code{pyvirtualdisplay} is a Python wrapper for Xvfb, Xephyr and Xvnc.")
(license license:bsd-3)))
(define-public python-stem
(package
(name "python-stem")
(version "1.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "stem" version))
(sha256
(base32
"1hk8alc0r4m669ggngdfvryndd0fbx0w62sclcmg55af4ak8xd50"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
;; See https://github.com/torproject/stem/issues/56
(lambda _
(substitute* "run_tests.py"
(("test\\.task\\.MOCK_VERSION,")
""))))
(replace 'check
(lambda _
(invoke "./run_tests.py" "--unit")
#t)))))
(native-inputs
(list python-mock python-pycodestyle python-pyflakes))
(home-page "https://stem.torproject.org/")
(synopsis
"Python controller library that allows applications to interact with Tor")
(description
"Stem is a Python controller library for Tor. With it you can use Tor's
control protocol to script against the Tor process and read descriptor data
relays publish about themselves.")
(license license:lgpl3)))
(define-public python-pyserial
(package
(name "python-pyserial")
(version "3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyserial" version))
(sha256
(base32
"1nyd4m4mnrz8scbfqn4zpq8gnbl4x42w5zz62vcgpzqd2waf0xrw"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: 3/49 tests are failing.
;; #:phases
;; (modify-phases %standard-phases
;; (replace 'check
;; (lambda _
;; (zero? (system* "python" "test/run_all_tests.py" "loop://")))))))
(home-page
"https://github.com/pyserial/pyserial")
(synopsis "Python Serial Port Bindings")
(description "@code{pyserial} provide serial port bindings for Python. It
supports different byte sizes, stop bits, parity and flow control with RTS/CTS
and/or Xon/Xoff. The port is accessed in RAW mode.")
(license license:bsd-3)))
(define-public python-pyserial-asyncio
(package
(name "python-pyserial-asyncio")
(version "0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyserial-asyncio" version))
(sha256
(base32 "0cwd2cjz859v6jrm3y6hikfqjyhyfj5vhfjb8vvflvl6791yah8n"))))
(build-system python-build-system)
(propagated-inputs (list python-pyserial))
(home-page "https://github.com/pyserial/pyserial-asyncio")
(synopsis "Pyserial asynchronous I/O extension")
(description "This package extends Pyserial with asynchronous I/O
support.")
(license license:bsd-3)))
(define-public python-pymodbus
(package
(name "python-pymodbus")
(version "2.5.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/riptideio/pymodbus")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0kjjrx7xrlx0pf3y67hhr4xvqrly3xzmvf6ic5as61m6z19m7zd5"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'disable-problematic-tests
(lambda _
;; The following test modules rely on Python's own
;; 'test' module, which is not distributed in the Python
;; package of Guix.
(delete-file "test/test_client_async_asyncio.py")
(delete-file "test/test_client_sync_diag.py")
;; The following test module requires the asynctest
;; library, abandoned without support for Python 3.9+
;; (see:
;; https://github.com/riptideio/pymodbus/issues/681).
(delete-file "test/test_server_asyncio.py")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest")))))))
(native-inputs
(list python-mock
python-pytest
python-redis
python-sqlalchemy
python-tornado
python-twisted))
(propagated-inputs
(list python-pyserial
python-six
;; For the REPL.
python-aiohttp
python-click
python-prompt-toolkit
python-pygments
python-pyserial-asyncio))
(home-page "https://github.com/riptideio/pymodbus/")
(synopsis "Modbus protocol stack in Python")
(description "Pymodbus is a full Modbus protocol implementation using
@code{asyncio}, @code{tornado} or @code{twisted} for its asynchronous
communications core. It includes the following @emph{client} features:
@itemize
@item full read/write protocol on discrete and register
@item most of the extended protocol (diagnostic/file/pipe/setting/information)
@item TCP, UDP, Serial ASCII, Serial RTU, and Serial Binary
@item asynchronous and synchronous versions
@item payload builder/decoder utilities
@item pymodbus read eval print loop (REPL).
@end itemize
It also includes the following @emph{server} features:
@itemize
@item can function as a fully implemented Modbus server
@item TCP, UDP, Serial ASCII, Serial RTU, and Serial Binary
@item asynchronous and synchronous versions
@item full server control context (device information, counters, etc)
@item a number of backing contexts (database, redis, sqlite, a slave device).
@end itemize")
(license license:bsd-3)))
(define-public python-exodriver
(package
(name "python-exodriver")
(version "2.6.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/labjack/exodriver")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1ikjz8147p14s814yabdq821y691klnr2yg54zgsymcc97kvwp2q"))))
(outputs (list "out"
"doc")) ;544 KiB of examples
(build-system gnu-build-system)
(arguments
(list
#:tests? #f ;no test suite
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
(string-append "PREFIX=" #$output)
"RUN_LDCONFIG=0"
"LINK_SO=1")
#:phases
#~(modify-phases %standard-phases
(delete 'configure)
(replace 'build
(lambda* (#:key make-flags #:allow-other-keys #:rest args)
(with-directory-excursion "liblabjackusb"
(apply (assoc-ref %standard-phases 'build)
`(,@args #:make-flags ,make-flags)))))
(replace 'install
(lambda* (#:key make-flags #:allow-other-keys #:rest args)
(with-directory-excursion "liblabjackusb"
(apply (assoc-ref %standard-phases 'install)
`(,@args #:make-flags ,make-flags)))
;; Install udev rules.
(install-file "90-labjack.rules"
(string-append #$output "/lib/udev/rules.d"))
;; Install examples.
(let ((doc (string-append #$output:doc "/share/doc/" #$name)))
(mkdir-p doc)
(copy-recursively "examples"
(string-append doc "/examples"))))))))
(inputs (list libusb))
(home-page "https://github.com/labjack/exodriver")
(synopsis "USB driver for LabJack data acquisition instruments")
(description "This package provides @code{liblabjackusb}, a USB library for low-level
communication with the U3, U6, UE9, Digit, T4 and T7 LabJack data acquisition
instruments. A udev rule is also included to allow unprivileged users to
communicate with the instruments via USB.")
(license license:expat))) ;see README
(define-public python-labjack
(package
(name "python-labjack")
(version "2.0.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "LabJackPython" version))
(sha256
(base32
"013bjqdi05vlbdqprr6kqi8gs4qhqc7rnyp1klw8k6fng77rpdzz"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f ;no test suite
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-liblabjackusb.so
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (find-files "." "\\.py$")
(("ctypes.CDLL\\(\"liblabjackusb.so\"")
(format #f "ctypes.CDLL(~s"
(search-input-file inputs
"lib/liblabjackusb.so")))))))))
;; exodriver is provided as a regular input, as only its shared object is
;; used, not its Python API.
(inputs (list python-exodriver))
(home-page "https://labjack.com/support/software/examples/ud/labjackpython")
(synopsis "Python library for LabJack U3, U6, UE9 and U12")
(description "This Python library allows communicating with the U3, U6,
UE9 and U12 LabJack data acquisition (DAQ) modules.")
(license license:expat))) ;see setup.py
(define-public python-kivy-garden
(package
(name "python-kivy-garden")
(version "0.1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "kivy-garden" version))
(sha256
(base32 "0wkcpr2zc1q5jb0bi7v2dgc0vs5h1y7j42mviyh764j2i0kz8mn2"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-after 'install 'remove-bat-file
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(delete-file
(string-append out "/bin/garden.bat"))))))))
(propagated-inputs
(list python-requests))
(home-page "https://github.com/kivy-garden/garden")
(synopsis "Garden tool for Kivy flowers")
(description
"This package provides the @command{garden} command to install packages
for Kivy, the multitouch application platform.")
(license license:expat)))
(define-public python-kivy
(package
(name "python-kivy")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Kivy" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"1cq4djfn7h8560mvz94dydsldg2jpp5w9rby7nafgmbh7fxg65is"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Tests require many optional packages
#:phases
(modify-phases %standard-phases
(add-after 'patch-generated-file-shebangs 'set-sdl-paths
(lambda* (#:key inputs #:allow-other-keys)
(setenv "KIVY_SDL2_PATH"
(search-input-directory inputs "/include/SDL2"))))
(add-before 'build 'set-home
(lambda _
;; 'kivy/__init__.py' wants to create $HOME/.kivy.
(setenv "HOME" (getcwd)))))))
(native-inputs
(list pkg-config python-cython))
(inputs
(list gstreamer
mesa
(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))
python-docutils
python-kivy-garden
python-pygments))
(home-page "https://kivy.org")
(synopsis "Multitouch application framework")
(description
"Kivy is a software library for rapid development of hardware-accelerated
multitouch applications.")
(license license:expat)))
(define-public python-kivymd
(package
(name "python-kivymd")
(version "0.104.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "kivymd" version))
(sha256
(base32 "04lwy6j0agrdwa4a6dl6qs97nx9ysmscmm8psvdzjpyj8aa1zg4p"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ;tests require network
#:phases
(modify-phases %standard-phases
(add-before 'sanity-check 'set-home
(lambda _
;; 'kivy/__init__.py' wants to create $HOME/.kivy.
(setenv "HOME" (getcwd)))))))
(native-inputs (list python-docutils))
(propagated-inputs
(list python-kivy python-pillow python-pygments python-kivy-garden))
(home-page "https://github.com/kivymd/KivyMD")
(synopsis "Material Design compliant widgets for use with Kivy")
(description
"This package provides Kivy widgets that approximate Google's Material
Design spec without sacrificing ease of use or application performance.")
(license license:expat)))
(define-public python-asynckivy
(package
(name "python-asynckivy")
(version "0.5.3")
(source
(origin
(method url-fetch)
(uri
(pypi-uri "asynckivy" version))
(sha256
(base32 "0ivjvch8yn3k1ybfp7c1nm8mhc0ymg7d04mq54lly7yjvg0jvcni"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-home
(lambda _
;; 'kivy/__init__.py' wants to create $HOME/.kivy.
(setenv "HOME" (getcwd)))))))
(propagated-inputs (list python-kivy python-asyncgui))
(home-page "https://github.com/gottadiveintopython/asynckivy")
(synopsis "Async library for Kivy")
(description
"This package provides async versions of Kivy functions to avoid the
callback-heavy mode of interaction typical in some Kivy applications.")
(license license:expat)))
(define-public python-asyncgui
(package
(name "python-asyncgui")
(version "0.5.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "asyncgui" version))
(sha256
(base32
"0614130afg2qc1qq4p82piskvvx6lpjl4nlsakbjzdyd78xywnb7"))))
(build-system python-build-system)
(home-page "https://github.com/gottadiveintopython/asyncgui")
(synopsis "Enables async/await without an event loop")
(description "This package provides support for async/await applications
without requiring an event loop, useful for creative responsive GUIs.")
(license license:expat)))
(define-public python-binaryornot
(package
(name "python-binaryornot")
(version "0.4.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "binaryornot" version))
(sha256
(base32
"0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-tests
(lambda _
;; TypeError: binary() got an unexpected keyword argument
;; 'average_size'.
(substitute* "tests/test_check.py"
(("average_size=512") ""))
#t)))))
(propagated-inputs
(list python-chardet python-hypothesis))
(home-page "https://github.com/audreyr/binaryornot")
(synopsis "Package to check if a file is binary or text")
(description "Ultra-lightweight pure Python package to check if a file is
binary or text.")
(license license:bsd-3)))
(define-public binwalk
(package
(name "binwalk")
(version "2.3.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ReFirmLabs/binwalk")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0phqyqv34vhh80dgipiggs4n3iq2vfjk9ywx2c5d8g61vzgbd2g8"))
(modules '((guix build utils)))
(snippet
#~(begin
(for-each delete-file
(list "testing/tests/input-vectors/firmware.zip"
"testing/tests/test_firmware_zip.py"))))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-home
(lambda _
(setenv "HOME" ""))))))
(native-inputs
(list python-coverage python-nose))
(home-page "https://github.com/ReFirmLabs/binwalk")
(synopsis "Firmware analysis tool")
(description "Binwalk is a tool for analyzing, reverse engineering, and
extracting firmware images")
(license license:expat)))
(define-public python-binwalk
(deprecated-package "python-binwalk" binwalk))
(define-public python-bson
(package
(name "python-bson")
(version "0.5.10")
(source
(origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/py-bson/bson")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1vpy4rsvm3hhawvbg9rbw4j36ck8qylkhm8cjy0q6imvinkd2als"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "./test.py")))))))
(propagated-inputs (list python-dateutil python-six))
(home-page "https://github.com/py-bson/bson")
(synopsis "BSON (Binary JSON) codec for Python")
(description "@code{bson} is a Python library implementing a BSON (Binary
JSON) codec.")
(license license:asl2.0)))
(define-public python-nltk
(package
(name "python-nltk")
(version "3.6.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "nltk" version ".zip"))
(sha256
(base32
"1sq32lwgij9h8rsksymnxxr7bqfw3vgx5ijw4azbj6k2xnmmdmap"))))
(build-system python-build-system)
(arguments
'(;; The tests require some extra resources to be downloaded.
;; TODO Try packaging these resources.
#:tests? #f))
(propagated-inputs
(list python-click python-joblib python-regex python-tqdm))
(native-inputs
(list unzip))
(home-page "http://nltk.org/")
(synopsis "Natural Language Toolkit")
(description "It provides interfaces to over 50 corpora and lexical
resources such as WordNet, along with a suite of text processing libraries
for classification, tokenization, stemming, tagging, parsing, and semantic
reasoning, wrappers for natural language processing libraries.")
(license license:asl2.0)))
;; Versions >=3.5 breaks backward-compatibility,
;; so we keep version 3.4.x around for a while.
(define-public python-nltk-3.4
(package
(inherit python-nltk)
(version "3.4.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nltk" version ".zip"))
(sha256
(base32 "153x2clrnigs74jdgnn3qmljdjj4gprmvpdvh49i18ls4m8mbm5y"))))
(propagated-inputs (list python-six))))
(define-public python-pymongo
(package
(name "python-pymongo")
(version "4.1.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "pymongo" version))
(sha256
(base32
"1m9hc2a4kgg10xy3g5x00z4a7rrk9s0rbf5qfypwnhq0kdfg5f6p"))))
(build-system python-build-system)
(propagated-inputs
(list python-certifi))
(home-page "https://github.com/mongodb/mongo-python-driver")
(synopsis "Python driver for MongoDB")
(description "Python driver for MongoDB.")
(license license:asl2.0)))
(define-public python-consul
(package
(name "python-consul")
(version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-consul" version))
(sha256
(base32
"0rfyxcy4cr3x848vhx876ifalxd5ghq6l5x813m49h4vq2d4jiq8"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; The tests are not distributed
(propagated-inputs
(list python-requests python-six))
(home-page "https://github.com/cablehead/python-consul")
(synopsis "Python client for Consul")
(description
"Python client for @url{http://www.consul.io/,Consul}, a tool for service
discovery, monitoring and configuration.")
(license license:expat)))
(define-public python-schematics
(package
(name "python-schematics")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/schematics/schematics")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xdqskycznqc7mfp60bhw1zq8wx7yx1dvmbq3brnm1dx3xnqa0zd"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(arguments
;; The tests require a bunch of not very nice packages with fixed
;; version requirements (e.g. python-coveralls).
`(#:tests? #f))
(home-page "https://github.com/schematics/schematics")
(synopsis "Python Data Structures for Humans")
(description "Python Data Structures for Humans.")
(license license:bsd-3)))
(define-public python-odfpy
(package
(name "python-odfpy")
(version "1.4.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "odfpy" version))
(sha256
(base32
"1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv"))))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-defusedxml))
(home-page "https://github.com/eea/odfpy")
(synopsis "Python API and tools to manipulate OpenDocument files")
(description "Collection of libraries and utility programs written in
Python to manipulate OpenDocument 1.2 files.")
(license
;; The software is mainly dual GPL2+ and ASL2.0, but includes a
;; number of files with other licenses.
(list license:gpl2+ license:asl2.0 license:lgpl2.1+ license:cc-by-sa3.0))))
(define-public python-natsort
(package
(name "python-natsort")
(version "7.1.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "natsort" version))
(sha256
(base32
"00y49bfsi7rrsd1s42gc2w95a6arl9ipdsx2493hr0v54fj07ih0"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-test-hypothesis-deadlines
(lambda _
(substitute* "tests/test_utils.py"
(("from hypothesis import given")
"from hypothesis import given, settings")
(("( +)@given" all spaces)
(string-append spaces "@settings(deadline=None)\n" all)))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v")))))))
(native-inputs
(list python-hypothesis python-pytest-cov python-pytest-mock
python-pytest))
(propagated-inputs ; TODO: Add python-fastnumbers.
(list python-pyicu))
(home-page "https://github.com/SethMMorton/natsort")
(synopsis "Natural sorting for python and shell")
(description
"Natsort lets you apply natural sorting on lists instead of
lexicographical. If you use the built-in @code{sorted} method in python on a
list such as @code{[@code{a20}, @code{a9}, @code{a1}, @code{a4}, @code{a10}]},
it would be returned as @code{[@code{a1}, @code{a10}, @code{a20}, @code{a4},
@code{a9}]}. Natsort provides a function @code{natsorted} that identifies
numbers and sorts them separately from strings. It can also sort version
numbers, real numbers, mixed types and more, and comes with a shell command
@command{natsort} that exposes this functionality in the command line.")
(license license:expat)))
(define-public glances
(package
(name "glances")
(version "3.1.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Glances" version))
(sha256
(base32 "020vb38qrb0m3sdr7xjr43cmcfxpnyg4hmb97wgxsa9zvwsjwa5x"))
(modules '((guix build utils)))
(snippet
'(begin
;; Glances phones PyPI for weekly update checks by default.
;; Disable these. The user can re-enable them if desired.
(substitute* "glances/outdated.py"
(("^(.*)self\\.load_config\\(config\\)\n" line indentation)
(string-append indentation
"self.args.disable_check_update = True\n"
line)))
#t))))
(build-system python-build-system)
(propagated-inputs
(list python-future python-psutil))
(home-page "https://github.com/nicolargo/glances")
(synopsis "Cross-platform curses-based monitoring tool")
(description
"Glances is a curses-based monitoring tool for a wide variety of platforms.
Glances uses the PsUtil library to get information from your system. It
monitors CPU, load, memory, network bandwidth, disk I/O, disk use, and more.")
(license license:lgpl3+)))
(define-public python-graphql-core
(package
(name "python-graphql-core")
(version "3.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "graphql-core" version))
(sha256
(base32
"0fjv5w2wvgdr8gb27v241bavliipyir9fdz48rsgc3xapm644mn0"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Tests require the unpackaged pytest-benchmark.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-hardcoded-version
(lambda _ (substitute*
"setup.py"
(("'gevent==1.1rc1'") "'gevent'"))
#t)))))
(native-inputs
(list python-gevent python-mock python-pytest-mock))
(propagated-inputs
(list python-promise python-six))
(home-page "https://github.com/graphql-python/graphql-core")
(synopsis "GraphQL implementation for Python")
(description
"GraphQL implementation for Python. GraphQL is a data query language and
runtime designed and used to request and deliver data to mobile and web apps.
This library is a port of @url{https://github.com/graphql/graphql-js,graphql-js}
to Python.")
(license license:expat)))
(define-public python-graphql-relay
(package
(name "python-graphql-relay")
(version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "graphql-relay" version))
(sha256
(base32
"1d70vwam9gjhx7fqzsa03x7lc6ivcqki5r9pk8m7rslmb7pagmbh"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "tests")))))))
(native-inputs
(list
python-pytest
python-pytest-asyncio))
(propagated-inputs
(list python-graphql-core))
(home-page "https://github.com/graphql-python/graphql-relay-py")
(synopsis "Relay implementation for Python")
(description
"This is a library to allow the easy creation of Relay-compliant servers
using the GraphQL Python reference implementation of a GraphQL server. It
should be noted that the code is a exact port of the original
@url{https://github.com/graphql/graphql-relay-js,graphql-relay js implementation}
from Facebook.")
(license license:expat)))
(define-public python-graphene
(package
(name "python-graphene")
(version "3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "graphene" version))
(sha256
(base32
"08m1n2ydk48c18cvl8474v3pwwacjl1vgq61m9qs00122mp0cj5g"))))
(build-system python-build-system)
(propagated-inputs
(list python-graphql-core python-graphql-relay python-aniso8601
python-promise python-six))
(arguments
`(#:tests? #f)) ; no tests/ in the PyPI tarball
(home-page "https://graphene-python.org/")
(synopsis "GraphQL Framework for Python")
(description
"Graphene is a Python library for building GraphQL schemas/types.
A GraphQL schema describes your data model, and provides a GraphQL server
with an associated set of resolve methods that know how to fetch data.")
(license license:expat)))
(define-public python-random2
(package
(name "python-random2")
(version "1.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "random2" version ".zip"))
(sha256
(base32
"01y0s4747plsx8fdnxy0nz83dp69naddz58m81r9h0s1qfm31b9l"))
(patches
(search-patches "python-random2-getrandbits-test.patch"))))
(build-system python-build-system)
(native-inputs (list unzip))
(home-page "http://pypi.python.org/pypi/random2")
(synopsis "Python 3 version of the Python 2 @code{random} module")
(description
"This package provides a Python 3 ported version of Python 2.7’s
@code{random} module. It has also been back-ported to work in Python 2.6.
In Python 3, the implementation of @code{randrange()} was changed, so that
even with the same seed you get different sequences in Python 2 and 3.
This package closes that gap, allowing stable random number generation
between the different Python versions.")
(license license:psfl)))
(define-public python-snowballstemmer
(package
(name "python-snowballstemmer")
(version "2.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "snowballstemmer" version))
(sha256
(base32
"0ligk61idlz8kkgd5hpip5whm172riwglb6xydii7h62yhysqfyz"))))
(build-system python-build-system)
(arguments
`(;; No tests exist
#:tests? #f))
(home-page "https://github.com/shibukawa/snowball_py")
(synopsis "Snowball stemming library collection for Python")
(description "This package provides 16 word stemmer algorithms generated
from Snowball algorithms. It includes the 15 original ones plus the Poerter
English stemmer.")
(license license:bsd-3)))
(define-public python-setproctitle
(package
(name "python-setproctitle")
(version "1.3.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "setproctitle" version))
(sha256
(base32
"1zbp6kyzfbrmbh9j3idai0mnpa28zn5db3k5l07jc3c3gj89gyxr"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(setenv "PYTHON" (or (which "python3") (which "python")))
(setenv "PYCONFIG" (if (which "python3-config")
"python3-config --embed"
"python-config"))
(substitute* "tests/conftest.py"
(("cc") "gcc"))
(when tests?
(invoke "pytest" "tests/")))))))
(native-inputs
(list procps python-pytest)) ; required for tests
(home-page "https://github.com/dvarrazzo/py-setproctitle")
(synopsis
"Setproctitle implementation for Python to customize the process title")
(description "The library allows a process to change its title (as displayed
by system tools such as @code{ps} and @code{top}).
Changing the title is mostly useful in multi-process systems, for example when a
master process is forked: changing the children's title allows identifying the
task each process is busy with. The technique is used by PostgreSQL and the
OpenSSH Server for example.")
(license license:bsd-3)))
(define-public python-validictory
(package
(name "python-validictory")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "validictory" version))
(sha256
(base32
"1zf1g9sw47xzp5f80bd94pb42j9yqv82lcrgcvdwr6nkaphfi37q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'bootstrap
;; Move the tests out of the package directory to avoid
;; packaging them.
(lambda* _
(rename-file "validictory/tests" "tests")
(delete-file "tests/__init__.py")))
(replace 'check
(lambda _
(invoke "py.test" "-vv" ))))))
(native-inputs
(list python-pytest))
(home-page
"https://github.com/jamesturk/validictory")
(synopsis "General purpose Python data validator")
(description "It allows validation of arbitrary Python data structures.
The schema format is based on the JSON Schema
proposal (http://json-schema.org), so combined with json the library is also
useful as a validator for JSON data.")
(license license:expat)))
(define-public python-pyelftools
(package
(name "python-pyelftools")
(version "0.28")
(home-page "https://github.com/eliben/pyelftools")
(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 "1z4fx39c9rds0bd4d2fjjq7n05b1nfxl36pmy523x8knm38l4gpr"))
(snippet
;; Delete bundled readelf executable.
'(delete-file "test/external_tools/readelf"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Taken from tox.ini.
(invoke "python" "test/run_all_unittests.py")
(invoke "python" "test/run_examples_test.py")
(invoke "python" "test/run_readelf_tests.py")))))))
(synopsis
"Analyze binary and library file information")
(description "This Python library provides interfaces for parsing and
analyzing two binary and library file formats ; the Executable and Linking
Format (ELF), and debugging information in the Debugging With Attributed
Record Format (DWARF).")
(license license:public-domain)))
(define-public python-pefile
(package
(name "python-pefile")
(version "2022.5.30")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/erocarrera/pefile")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1qj90a0s2gd5hn2zggypqc1077inid5dcl1fp5973b04kf2b9z8a"))))
(build-system python-build-system)
(propagated-inputs (list python-future))
(home-page "https://github.com/erocarrera/pefile")
(synopsis "Portable Executable (PE) file parser")
(description "This python library provides interfaces for parsing and
working with Portable Executable (PE) files. It makes to most information
from the header, as well as section details and data available.")
(license license:expat)))
(define-public python-pyev
(package
(name "python-pyev")
(version "0.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyev" version))
(sha256
(base32
"0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; no test suite
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda* (#:key inputs #:allow-other-keys)
(let ((libev (search-input-file inputs "/lib/libev.so.4")))
(substitute* "setup.py"
(("libev_dll_name = find_library\\(\\\"ev\\\"\\)")
(string-append "libev_dll_name = \"" libev "\"")))))))))
(inputs
(list libev))
(home-page "https://github.com/gabrielfalcao/pyev")
(synopsis "Python libev interface")
(description "Pyev provides a Python interface to libev.")
(license license:gpl3)))
(define-public python-imagesize
(package
(name "python-imagesize")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "imagesize" version))
(sha256
(base32
"1cd24x0vqbd6c8ym1n21qc0aj54mfb7rzdqglmwk9xxixajbbxmi"))))
(build-system python-build-system)
(home-page "https://github.com/shibukawa/imagesize_py")
(synopsis "Gets image size of files in various formats in Python")
(description
"This package allows determination of image size from
PNG, JPEG, JPEG2000 and GIF files in pure Python.")
(license license:expat)))
(define-public python-termstyle
(package
(name "python-termstyle")
(version "0.1.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "termstyle" version))
(sha256
(base32
"17wzkkcqy5zc0g68xlad3kcv66iw14d2pwqc0h9420gak0vbhx7g"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "test3.py"))))))
(home-page "https://github.com/gfxmonk/termstyle")
(synopsis "Console text coloring for Python")
(description "This package provides console text coloring for Python.")
(license license:bsd-3)))
(define-public python-argcomplete
(package
(name "python-argcomplete")
(version "1.11.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "argcomplete" version))
(sha256
(base32
"0h1przxffrhqvi46k40pzjsvdrq4zc3sl1pc96kkigqppq0vdrss"))
(patches (search-patches "python-argcomplete-1.11.1-fish31.patch"))))
(build-system python-build-system)
(native-inputs
(list python-coverage
python-flake8
python-pexpect
python-wheel
tcsh
fish
bash)) ;full Bash for 'test_file_completion'
(home-page "https://github.com/kislyuk/argcomplete")
(synopsis "Shell tab completion for Python argparse")
(description "argcomplete provides extensible command line tab completion
of arguments and options for Python scripts using @code{argparse}. It's
particularly useful for programs with many options or sub-parsers that can
dynamically suggest completions ; for example, when browsing resources over the
network.")
(license license:asl2.0)))
(define-public python-csscompressor
(package
(name "python-csscompressor")
(version "0.9.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "csscompressor" version))
(sha256
(base32
"018ssffvlpnc1salmnpyl52c11glzzwj4k9f757hl4pkpjnjp8mg"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "py.test"))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/sprymix/csscompressor")
(synopsis "Python port of YUI CSS Compressor")
(description
"This package provides a python port of YUI CSS Compressor.")
(license license:bsd-3)))
(define-public python-rcssmin
(package
(name "python-rcssmin")
(version "1.0.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rcssmin" version))
(sha256
(base32
"0w42l4dhxghcz7pj3q7hkxp015mvb8z2cq9sfxbl31npsfavd1ya"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "run_tests.py" "tests"))))))
(home-page "http://opensource.perlig.de/rcssmin/")
(synopsis "CSS Minifier")
(description "The minifier is based on the semantics of the YUI compressor,
which itself is based on the rule list by Isaac Schlueter.")
(license license:asl2.0)))
(define-public python-rjsmin
(package
(name "python-rjsmin")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rjsmin" version))
(sha256
(base32
"0cmc72rlkvzz8fl89bc83czkx0pcvhzj7yn7m29r8pgnf5fcfpdi"))
(modules '((guix build utils)))
(snippet
'(begin
(for-each delete-file (find-files "bench" "\\.js$"))
#t))))
(build-system python-build-system)
(arguments
'(#:tests? #f ; Not all test files included.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(if tests?
(invoke "py.test" "-vv" "tests")
#t))))))
(native-inputs
(list python-pytest))
(home-page "http://opensource.perlig.de/rjsmin/")
(synopsis "Javascript Minifier")
(description "@code{rJSmin} is a javascript minifier written in Python. The
minifier is based on the semantics of jsmin.c by Douglas Crockford. The module
is a re-implementation aiming for speed, so it can be used at runtime (rather
than during a preprocessing step).")
(license license:asl2.0)))
(define-public python-xopen
(package
(name "python-xopen")
(version "0.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xopen" version))
(sha256
(base32
"1xrlcnd6fri3w97zzzp6vyk4l21yq1lc8r4wksi06hgpkbh4jdq0"))))
(build-system python-build-system)
(propagated-inputs
(list python-setuptools-scm))
(home-page "https://github.com/marcelm/xopen/")
(synopsis "Open compressed files transparently")
(description "This module provides an @code{xopen} function that works like
Python's built-in @code{open} function, but can also deal with compressed files.
Supported compression formats are gzip, bzip2 and, xz, and are automatically
recognized by their file extensions. The focus is on being as efficient as
possible on all supported Python versions.")
(license license:expat)))
(define-public python-cheetah
(package
(name "python-cheetah")
(version "3.2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Cheetah3" version))
(sha256
(base32
"0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'use-absolute-python
(lambda _
(substitute* "Cheetah/CheetahWrapper.py"
(("#!/usr/bin/env python")
(string-append "#!" (which "python"))))))
(add-after 'unpack 'fix-tests
(lambda _
(substitute* "Cheetah/Tests/ImportHooks.py"
(("os.path.dirname\\(__file__\\)")
(string-append "'" (getcwd) "/Cheetah/Tests'")))))
(replace 'check
(lambda _
(setenv "TMPDIR" "/tmp")
(substitute* "Cheetah/Tests/Test.py"
(("unittest.TextTestRunner\\(\\)")
"unittest.TextTestRunner(verbosity=2)"))
(invoke "python" "Cheetah/Tests/Test.py"))))))
(propagated-inputs
(list python-markdown)) ;optional
(home-page "https://cheetahtemplate.org/")
(synopsis "Template engine")
(description "Cheetah is a text-based template engine and Python code
generator.
Cheetah can be used as a standalone templating utility or referenced as
a library from other Python applications. It has many potential uses,
but web developers looking for a viable alternative to ASP, JSP, PHP and
PSP are expected to be its principle user group.
Features:
@enumerate
@item Generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
text-based format.
@item Cleanly separates content, graphic design, and program code.
@item Blends the power and flexibility of Python with a simple template language
that non-programmers can understand.
@item Gives template writers full access to any Python data structure, module,
function, object, or method in their templates.
@item Makes code reuse easy by providing an object-orientated interface to
templates that is accessible from Python code or other Cheetah templates.
One template can subclass another and selectively reimplement sections of it.
@item Provides a simple, yet powerful, caching mechanism that can dramatically
improve the performance of a dynamic website.
@item Compiles templates into optimized, yet readable, Python code.
@end enumerate")
(license (license:x11-style "file://LICENSE"))))
(define-public python-dulwich
(package
(name "python-dulwich")
(version "0.20.30")
(source
(origin
(method url-fetch)
(uri (list (string-append "https://www.dulwich.io/releases/"
"dulwich-" version ".tar.gz")
(pypi-uri "dulwich" version)))
(sha256
(base32
"0hafaff30bmkj30b8pwpwsy3fz5h6c1pn98ihqcvl5zndflr1h22"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-tests
(lambda* (#:key inputs #:allow-other-keys)
(substitute* '("dulwich/tests/test_repository.py"
"dulwich/tests/test_porcelain.py"
"dulwich/tests/test_hooks.py")
(("/bin/sh") (search-input-file inputs "/bin/sh")))
(setenv "TEST_RUNNER" "unittest")
(setenv "PYTHONHASHSEED" "random"))))))
(propagated-inputs
(list python-fastimport python-urllib3))
(native-inputs
(list python-mock python-geventhttpclient python-gpg
git gnupg))
(home-page "https://www.dulwich.io/")
(synopsis "Git implementation in Python")
(description "Dulwich is an implementation of the Git file formats and
protocols written in pure Python.")
;; Can be used with either license.
(license (list license:asl2.0 license:gpl2+))))
(define-public python-pbkdf2
(package
(name "python-pbkdf2")
(version "1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pbkdf2" version))
(sha256
(base32
"0yb99rl2mbsaamj571s1mf6vgniqh23v98k4632150hjkwv9fqxc"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "test/test_pbkdf2.py"))))))
(home-page "https://www.dlitz.net/software/python-pbkdf2/")
(synopsis "Password-based key derivation")
(description "This module implements the password-based key derivation
function, PBKDF2, specified in RSA PKCS#5 v2.0.
PKCS#5 v2.0 Password-Based Key Derivation is a key derivation function which
is part of the RSA Public Key Cryptography Standards series. The provided
implementation takes a password or a passphrase and a salt value (and
optionally a iteration count, a digest module, and a MAC module) and provides
a file-like object from which an arbitrarily-sized key can be read.")
(license license:expat)))
(define-public python-qrcode
(package
(name "python-qrcode")
(version "7.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "qrcode" version))
(sha256
(base32 "0y35jlwfvkgn9341lzshyaqgpp61vysjh107vhdd96ya83r6ynip"))))
(build-system python-build-system)
(arguments
;; FIXME: Tests require packaging 'pymaging'.
'(#:tests? #f))
(propagated-inputs
(list python-lxml ; for SVG output
python-pillow)) ; for PNG output
(home-page "https://github.com/lincolnloop/python-qrcode")
(synopsis "QR Code image generator")
(description "This package provides a pure Python QR Code generator
module. It uses the Python Imaging Library (PIL) to allow for the generation
of QR Codes.
In addition this package provides a command line tool to generate QR codes and
either write these QR codes to a file or do the output as ascii art at the
console.")
(license license:bsd-3)))
(define-public python-rst2ansi
(package
(name "python-rst2ansi")
(version "0.1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rst2ansi" version))
(sha256
(base32
"0vzy6gd60l79ff750scl0sz48r1laalkl6md6dwzah4dcadgn5qv"))))
(build-system python-build-system)
(propagated-inputs
(list python-docutils))
(home-page "https://github.com/Snaipe/python-rst-to-ansi")
(synopsis "Convert RST to ANSI-decorated console output")
(description
"Python module dedicated to rendering RST (reStructuredText) documents
to ansi-escaped strings suitable for display in a terminal.")
(license license:expat)))
(define-public python-ansi2html
(package
(name "python-ansi2html")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansi2html" version))
(sha256
(base32
"1wa00zffprb78w1mqq90dk47czz1knanys2a40zbw2vyapd5lp9y"))))
(build-system python-build-system)
(native-inputs
(list python-mock python-nose))
(propagated-inputs
(list python-six))
(home-page "https://github.com/ralphbean/ansi2html")
(synopsis "Convert ANSI-decorated console output to HTML")
(description
"@command{ansi2html} is a Python library and command line utility for
converting text with ANSI color codes to HTML or LaTeX.")
(license license:gpl3+)))
(define-public python-easy-ansi
(package
(name "python-easy-ansi")
(version "0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.com/joeysbytes/easy-ansi")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0albh55ynzs98qy9pln4qaxw5qhhh3lk09jy9bx19gycrp1c3lc3"))))
(build-system python-build-system)
(home-page "https://gitlab.com/joeysbytes/easy-ansi")
(synopsis "Terminal framework API")
(description
"Easy ANSI is a terminal framework API to give you an easy way to use
colors, cursor control movements, and line/box drawing. It is not meant as a
replacement to more full-featured frameworks (such as curses or urwid), but as
a tool to quickly create nice-looking screens in your terminal window. You
can even create animations with the cursor controls.")
(license license:expat)))
(define-public python-ddt
(package
(name "python-ddt")
(version "1.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ddt" version))
(sha256
(base32
"0y2k756qjz1rhpivi60hy29b4bf0bh3wck39i1mn6pkil9k779k4"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-pyyaml))
(home-page "https://github.com/datadriventests/ddt")
(synopsis "Data-Driven Tests")
(description
"Data-Driven Tests (@dfn{DDT}) allow you to multiply one test case by
running it with different test data, and make it appear as multiple test
cases.")
(license license:expat)))
(define-public python-pycountry
(package
(name "python-pycountry")
(version "22.3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycountry" version))
(sha256
(base32
"0ihnkh86zz01vi46gcwgq6h71jrpj7hq71zi13c98n2qdhj3l5mj"))))
(build-system python-build-system)
(home-page "https://bitbucket.org/flyingcircus/pycountry")
(synopsis "ISO databases for languages, countries, currencies, etc.")
(description
"@code{pycountry} provides the ISO databases for the standards:
@enumerate
@item 639-3 (Languages)
@item 3166 (Countries)
@item 3166-3 (Deleted Countries)
@item 3166-2 (Subdivisions of countries)
@item 4217 (Currencies)
@item 15924 (Scripts)
@end enumerate
It includes a copy from Debian’s pkg-isocodes and makes the data accessible
through a Python API.")
(license license:lgpl2.1+)))
(define-public python-pycountry@20.7.3
(package
(inherit python-pycountry)
(name "python-pycountry")
(version "20.7.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycountry" version))
(sha256
(base32 "0hnbabsmqimx5hqh0jbd2f64i8fhzhhbrvid57048hs5sd9ll241"))))))
(define-public python-pycosat
(package
(name "python-pycosat")
(version "0.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pycosat" version ".zip"))
(sha256
(base32
"1vg0f2fwcybpdqv92z0hwdl603n2safh3fqvjjxkksd78r4qg6ac"))))
;; TODO: Unundle picosat. http://fmv.jku.at/picosat/
(build-system python-build-system)
(native-inputs
(list unzip))
(home-page "https://github.com/ContinuumIO/pycosat")
(synopsis "Bindings to picosat (a SAT solver)")
(description
"This package provides efficient Python bindings to @code{picosat} on
the C level. When importing pycosat, the @code{picosat} solver becomes part
of the Python process itself. @code{picosat} is a @dfn{Boolean Satisfiability
Problem} (SAT) solver.")
(license license:expat)))
(define-public python-pypeg2
(package
(name "python-pypeg2")
(version "2.15.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyPEG2" version))
(sha256
(base32
"0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b"))))
(build-system python-build-system)
(propagated-inputs (list python-lxml))
(arguments
;;https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
'(#:tests? #f))
(home-page "https://fdik.org/pyPEG/")
(synopsis "Parsing Expression Grammars in Python")
(description "PyPEG is an intrinsic parser interpreter framework for
Python. It is based on Parsing Expression Grammars, PEG. With pyPEG you can
parse many formal languages.")
(license license:gpl2)))
(define-public python-incremental
(package
(name "python-incremental")
(version "17.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "incremental" version))
(sha256
(base32
"1cylxdz1cnkm5g3pklna3h2n0i0rks95ir1pnpxfnvpkmab1cxbv"))))
(build-system python-build-system)
(home-page "https://github.com/hawkowl/incremental")
(synopsis "Library for versioning Python projects")
(description "Incremental is a small library that versions your Python
projects.")
(license license:expat)))
(define-public python-invoke
(package
(name "python-invoke")
(home-page "https://www.pyinvoke.org/")
(version "1.6.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "invoke" version))
(sha256
(base32
"1lsql9daabfr31c7syva5myc5bka45k57ygs9fliv63qrwp1wk9p"))))
(build-system python-build-system)
(arguments
;; XXX: Requires many dependencies that are not yet in Guix.
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-python2-code
(lambda _
(delete-file-recursively "invoke/vendor/yaml2")))
(add-after 'unpack 'fix-bash-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((bash (assoc-ref inputs "bash")))
(substitute* "invoke/config.py"
(("shell = \"/bin/bash\"")
(string-append "shell = \"" bash "/bin/bash\"")))))))))
(inputs
`(("bash" ,bash-minimal)))
(synopsis "Pythonic task execution")
(description
"Invoke is a Python task execution tool and library, drawing inspiration
from various sources to arrive at a powerful and clean feature set. It is
evolved from the Fabric project, but focuses on local and abstract concerns
instead of servers and network commands.")
(license license:bsd-3)))
(define-public python-automat
(package
(name "python-automat")
(version "20.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "Automat" version))
(sha256
(base32
"0cyzrcqiibwdsp4y0djkllnzab8m5faa4s0d1kpi23k1fhy80ybr"))))
(build-system python-build-system)
;; We disable the tests because they require python-twisted, while
;; python-twisted depends on python-automat. Twisted is optional, but the
;; tests fail if it is not available. Also see
;; <https://github.com/glyph/automat/issues/71>.
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
;; Remove script, because it depends on python-twisted.
(add-after 'unpack 'remove-entrypoint
(lambda _
(substitute* "setup.py"
(("\"automat-visualize = automat._visualize:tool\"") "")))))))
(native-inputs
(list python-m2r python-setuptools-scm python-graphviz))
(propagated-inputs
(list python-six python-attrs))
(home-page "https://github.com/glyph/Automat")
(synopsis "Self-service finite-state machines")
(description "Automat is a library for concise, idiomatic Python
expression of finite-state automata (particularly deterministic finite-state
transducers).")
(license license:expat)))
(define-public python-m2r
(package
(name "python-m2r")
(version "0.2.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "m2r" version))
(sha256
(base32
"16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))
(modules '((guix build utils)))
(snippet
;; Adjust test regex for Python 3.10 compatibility.
;; Taken from upstream pull request:
;; https://github.com/miyakogi/m2r/pull/62
'(substitute* "tests/test_cli.py"
(("self.assertIn\\('optional arguments:', message\\)")
"self.assertRegex(message, r'option(s|al arguments):')")))))
(build-system python-build-system)
(propagated-inputs
(list python-docutils python-mistune))
(native-inputs
(list python-pygments python-mock))
(home-page "https://github.com/miyakogi/m2r")
(synopsis "Markdown to reStructuredText converter")
(description "M2R converts a markdown file including reST markups to valid
reST format.")
(license license:expat)))
(define-public python-constantly
(package
(name "python-constantly")
(version "15.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "constantly" version))
(sha256
(base32
"0dgwdla5kfpqz83hfril716inm41hgn9skxskvi77605jbmp4qsq"))))
(build-system python-build-system)
(home-page "https://github.com/twisted/constantly")
(synopsis "Symbolic constants in Python")
(description "Constantly is a Python library that provides symbolic
constant support. It includes collections and constants with text, numeric,
and bit flag values.")
(license license:expat)))
(define-public python-attrdict
(package
(name "python-attrdict")
(version "2.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "attrdict" version))
(sha256
(base32
"0w3vsz64j9npxfgh83hghsh161wwkrx1fxqi1533js2wnnc0dj9m"))))
(build-system python-build-system)
;; The package is no longer maintained and tests need some work.
(arguments '(#:tests? #f))
(propagated-inputs (list python-six))
(home-page "https://github.com/bcj/AttrDict")
(synopsis "Attribute-style access dictionaries")
(description
"This package provides mapping objects whose elements can be accessed
both as keys and as attributes.")
(license license:expat)))
(define-public python-attrs
(package
(name "python-attrs")
(version "21.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "attrs" version))
(sha256
(base32
"1yzmwi5d197p0qhl7rl4xi9q1w8mk9i3zn6hrl22knbcrb1slspg"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'remove-test-hypothesis-deadlines
(lambda _
(substitute* "tests/test_make.py"
(("assume, given") "assume, given, settings")
(("( +)@given" all spaces)
(string-append spaces "@settings(deadline=None)\n" all)))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(native-inputs
(list python-coverage python-hypothesis python-pympler python-pytest
python-six))
(home-page "https://github.com/python-attrs/attrs/")
(synopsis "Attributes without boilerplate")
(description "@code{attrs} is a Python package with class decorators that
ease the chores of implementing the most common attribute-related object
protocols.")
(license license:expat)))
(define-public python-attrs-bootstrap
(package
(inherit python-attrs)
(name "python-attrs-bootstrap")
(native-inputs `())
(arguments `(#:tests? #f))))
(define-public python-cliapp
(package
(name "python-cliapp")
(version "1.20180812.1")
(source
(origin
(method url-fetch)
(uri (string-append
"http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp/snapshot/cliapp-"
version ".tar.gz"))
(sha256
(base32
"1c1jlblbns8qhiaqjpg4xi6lip8xwfc5w643p43rg543havaj45x"))))
(build-system python-build-system)
(arguments
`(;; XXX: The tests only do style and coverage checks, which
;; fails due to deprecation warnings, etc.
#:tests? #f))
(native-inputs
(list python-coverage-test-runner python-pep8))
(propagated-inputs
(list python-pyaml))
(home-page "https://liw.fi/cliapp/")
(synopsis "Python framework for command line programs")
(description "@code{cliapp} is a Python framework for command line
programs. It contains the typical stuff such programs need to do, such
as parsing the command line for options, and iterating over input files.")
(license license:gpl2+)))
(define-public python-ttystatus
(package
(name "python-ttystatus")
(version "0.38")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "http://git.liw.fi/ttystatus")
;; There are no tags after ttystatus-0.36.
(commit "e9fc573326c5d1348f5fe56263b4f7a8c32f58c9")))
(sha256
(base32 "0v49q839nrwdm19c83wfmj6n2kw80xslwq9k0n5509r2h7wzjiqj"))
(file-name (git-file-name name version))))
(build-system python-build-system)
(native-inputs
(list python-coverage-test-runner python-pep8))
(arguments
`(#:phases
(modify-phases %standard-phases
;; check phase needs to be run before the build phase. If not,
;; coverage-test-runner looks for tests for the built source files,
;; and fails.
(delete 'check)
(add-before 'build 'check
(lambda _ (invoke "make" "check"))))))
(home-page "https://liw.fi/ttystatus/")
(synopsis "Python library for progress reporting and
status updates on terminals")
(description "@code{ttystatus} is a Python library for showing progress
reporting and status updates on terminals, for command line programs.
Output is automatically adapted to the width of the terminal: truncated
if it does not fit, and resized if the terminal size changes.")
(license license:gpl3+)))
(define-public python-astroid
(package
(name "python-astroid")
(version "2.9.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/PyCQA/astroid")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "19iiys4233cicpm48fd7lrkm31kk47qiv44wvk952rqbcn4rd2dh"))))
(build-system python-build-system)
(propagated-inputs
(list python-lazy-object-proxy python-typing-extensions python-wrapt))
(native-inputs
(list python-pytest python-pytest-runner))
(home-page "https://github.com/PyCQA/astroid")
(synopsis "Python source code base representation")
(description "@code{python-astroid} provides a common base representation
of Python source code for projects such as pychecker, pyreverse, pylint, etc.
It provides a compatible representation which comes from the _ast module. It
rebuilds the tree generated by the builtin _ast module by recursively walking
down the AST and building an extended ast. The new node classes have
additional methods and attributes for different usages. They include some
support for static inference and local name scopes. Furthermore, astroid
builds partial trees by inspecting living objects.")
(license license:lgpl2.1+)))
(define-public python-isbnlib
(package
(name "python-isbnlib")
(version "3.10.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "isbnlib" version))
(sha256
(base32
"0iin0x2xqwyphyyzd0mzrq5v5xm7b6dlbb294k4dywra5qvbrgzm"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; No test
(home-page "https://github.com/xlcnd/isbnlib")
(synopsis "Python library to work with ISBN strings")
(description "@code{python-isbnlib} is a (pure) python library that provides
several useful methods and functions to validate, clean, transform, hyphenate and
get metadata for ISBN strings. Its origin was as the core of isbntools. This short
version, is suitable to be include as a dependency in other projects.")
(license license:lgpl3+)))
(define-public python-isort
(package
(name "python-isort")
(version "5.10.1")
(source
(origin
(method git-fetch)
(uri (git-reference
;; Tests pass only from the Github sources
(url "https://github.com/timothycrosley/isort")
(commit version)))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet '(for-each delete-file (find-files "." "\\.whl$")))
(sha256
(base32
"09spgl2k9xrprr5gbpfc91a8p7mx7a0c64ydgc91b3jhrmnd9jg1"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'loosen-requirements
(lambda _
;; Permit newer versions of black.
(substitute* "example_isort_formatting_plugin/pyproject.toml"
(("\\^20\\.08b1")
">= 20.08b1"))))
;; A foretaste of what our future python-build-system will need to
;; do.
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" out whl))))
(add-after 'install 'install-example-plugins
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
;; Patch to use the core poetry API.
(substitute* '("example_isort_formatting_plugin/pyproject.toml"
"example_isort_sorting_plugin/pyproject.toml"
"example_shared_isort_profile/pyproject.toml")
(("poetry>=0.12")
"poetry-core>=1.0.0")
(("poetry.masonry.api")
"poetry.core.masonry.api"))
;; Build the example plugins.
(for-each (lambda (source-directory)
(invoke "python" "-m" "build" "--wheel"
"--no-isolation" "--outdir=dist"
source-directory))
'("example_isort_formatting_plugin"
"example_isort_sorting_plugin"
"example_shared_isort_profile"))
;; Install them to temporary storage, for the test.
(setenv "HOME" (getcwd))
(let ((example-whls (find-files "dist" "^example.*\\.whl$")))
(apply invoke "pip" "--no-cache-dir" "--no-input"
"install" "--user" "--no-deps" example-whls)))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
(setenv "PATH" (string-append (getenv "PATH") ":" bin)))
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "tests/unit/"
"-k" "not test_gitignore" ;requires git
"--ignore=tests/unit/test_deprecated_finders.py")))))))
(native-inputs
(list python-black
python-colorama
python-hypothesmith
python-libcst-minimal
python-natsort
python-poetry-core
python-pylama
python-pypa-build
python-pytest-mock
python-pytest))
(home-page "https://github.com/PyCQA/isort")
(synopsis "Python utility/library to sort python imports")
(description "@code{python-isort} is a python utility/library to sort
imports alphabetically, and automatically separated into sections. It
provides a command line utility, a python library and plugins for various
editors.")
(license license:expat)))
(define-public python-configparser
(package
(name "python-configparser")
(version "4.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "configparser" version))
(sha256
(base32
"1priacxym85yjcf68hh38w55nqswaxp71ryjyfdk222kg9l85ln7"))))
(native-inputs
(list python-setuptools-scm))
(build-system python-build-system)
(home-page "https://github.com/jaraco/configparser/")
(synopsis "Backport of configparser from python 3.5")
(description "@code{python-configparser} is a backport of
@code{configparser} from Python 3.5 so that it can be used directly
in other versions.")
(license license:expat)))
(define-public python-iniconfig
(package
(name "python-iniconfig")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "iniconfig" version))
(sha256
(base32
"0ckzngs3scaa1mcfmsi1w40a1l8cxxnncscrxzjjwjyisx8z0fmw"))))
(build-system python-build-system)
(home-page "https://github.com/RonnyPfannschmidt/iniconfig")
(synopsis "Simple INI-file parser")
(description "The @code{iniconfig} package provides a small and simple
INI-file parser module having a unique set of features ; @code{iniconfig}
@itemize
@item maintains the order of sections and entries ;
@item supports multi-line values with or without line-continuations ;
@item supports \"#\" comments everywhere ;
@item raises errors with proper line-numbers ;
@item raises an error when two sections have the same name.
@end itemize")
(license license:expat)))
(define-public python-mamba
(package
(name "python-mamba")
(version "0.11.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "mamba" version))
(sha256
(base32
"15m4dpnpv9m60pdaygvwgi43fwqaivs3qxfxhspwrp47sbgwdkvm"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; No test
(propagated-inputs
(list python-clint python-coverage))
(home-page "https://nestorsalceda.com/mamba/")
(synopsis "Test runner for Python")
(description
"Mamba is a Behaviour-Driven Development tool for Python developers.
Is heavily influenced from RSpec, Mocha, Jasmine or Ginkgo.")
(license license:expat)))
(define-public python-mando
(package
(name "python-mando")
(version "0.7.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "mando" version))
(sha256
(base32
"001mikga36i811pbc95rb45m2kzivkx4xb0fn3pzl4xnnjcskfhq"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-rst2ansi python-six))
(native-inputs
(list python-pytest))
(home-page "https://mando.readthedocs.org/")
(synopsis
"Wrapper around argparse, allowing creation of complete CLI applications")
(description
"This package is a wrapper around argparse, allowing you to write complete CLI
applications in seconds while maintaining all the flexibility.")
(license license:expat)))
(define-public python-mwclient
(package
(name "python-mwclient")
(version "0.10.1")
(source
(origin
(method git-fetch)
;; The PyPI version wouldn't contain tests.
(uri (git-reference
(url "https://github.com/mwclient/mwclient")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "120snnsh9n5svfwkyj1w9jrxf99jnqm0jk282yypd3lpyca1l9hj"))))
(build-system python-build-system)
(propagated-inputs
(list python-requests-oauthlib python-six))
(native-inputs
(list python-mock python-pytest python-pytest-cov
python-pytest-runner python-responses))
(home-page "https://github.com/btongminh/mwclient")
(synopsis "MediaWiki API client")
(description "This package provides a MediaWiki API client.")
(license license:expat)))
(define-public python-kneed
(package
(name "python-kneed")
(version "0.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "kneed" version))
(sha256
(base32 "0vkwi0pr7nfkp3c46hnmx0275yx68v96v10rmspv0wis33x6f39l"))))
(build-system python-build-system)
(propagated-inputs
(list python-matplotlib python-numpy python-scipy))
(home-page "https://github.com/arvkevi/kneed")
(synopsis "Knee-point detection in Python")
(description "This package implements the kneedle algorithm. Given a set
of x and y values, kneed will return the knee point of the function. The knee
point is the point of maximum curvature.")
(license license:bsd-3)))
(define-public python-utils
(package
(name "python-utils")
(version "2.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "python-utils" version))
(sha256
(base32
"12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(delete-file "pytest.ini")
(invoke "pytest" "-vv"))))))
(native-inputs
`(("pytest-runner" ,python-pytest-runner)
("pytest" ,python-pytest)
("six" ,python-six)))
(home-page "https://github.com/WoLpH/python-utils")
(synopsis "Convenient utilities not included with the standard Python install")
(description
"Python Utils is a collection of small Python functions and classes which
make common patterns shorter and easier.")
(license license:bsd-2)))
(define-public python-diff-match-patch
(package
(name "python-diff-match-patch")
(version "20121119")
(source
(origin
(method url-fetch)
(uri (pypi-uri "diff-match-patch" version))
(sha256
(base32
"0k1f3v8nbidcmmrk65m7h8v41jqi37653za9fcs96y7jzc8mdflx"))))
(build-system python-build-system)
(home-page "https://code.google.com/p/google-diff-match-patch")
(synopsis "Synchronize plain text")
(description "Diff Match and Patch libraries offer robust algorithms to
perform the operations required for synchronizing plain text.")
(license license:asl2.0)))
(define-public python-icdiff
(package
(name "python-icdiff")
(version "2.0.5")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jeffkaufman/icdiff")
(commit (string-append "release-" version))))
(file-name (git-file-name name version))
(sha256
(base32
"14gr9j2h7sfw47pwfzspm4zinywhqmzm4a0qz5c2k9wbixz120a4"))))
(build-system python-build-system)
(home-page "https://www.jefftk.com/icdiff")
(synopsis "Improved colored diff")
(description "This package provides colored diff functions that highlight
parts of the lines that were modified.")
(license license:psfl)))
(define-public python-dirsync
(package
(name "python-dirsync")
(version "2.2.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dirsync" version))
(sha256
(base32
"1gm82jddm1lkazdi8lfsl1b3vi1z0252ng60mzjym8irnv94qfhy"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(home-page "https://github.com/tkhyn/dirsync")
(synopsis "Advanced directory tree synchronisation tool")
(description "Advanced directory tree synchronisation tool.")
(license license:expat)))
(define-public python-levenshtein
(package
(name "python-levenshtein")
(version "0.12.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-Levenshtein" version))
(sha256
(base32
"1xj60gymwx1jl2ra9razx2wk8nb9cv1i7l8d14qsp8a8s7xra8yw"))))
(build-system python-build-system)
(home-page "https://github.com/ztane/python-Levenshtein")
(synopsis "Fast computation of Levenshtein distance and string similarity")
(description
"The Levenshtein Python C extension module contains functions for fast computation of
@enumerate
@item Levenshtein (edit) distance, and edit operations
@item string similarity
@item approximate median strings, and generally string averaging
@item string sequence and set similarity
@end enumerate
It supports both normal and Unicode strings.")
(license license:gpl2+)))
(define-public python-scandir
(package
(name "python-scandir")
(version "1.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "scandir" version))
(sha256
(base32 "1bkqwmf056pkchf05ywbnf659wqlp6lljcdb0y88wr9f0vv32ijd"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "test/run_tests.py"))))))
(home-page "https://github.com/benhoyt/scandir")
(synopsis "Directory iteration function")
(description
"Directory iteration function like os.listdir(), except that instead of
returning a list of bare filenames, it yields DirEntry objects that include
file type and stat information along with the name. Using scandir() increases
the speed of os.walk() by 2-20 times (depending on the platform and file
system) by avoiding unnecessary calls to os.stat() in most cases.
This package is part of the Python standard library since version 3.5.")
(license license:bsd-3)))
(define-public python-factory-boy
(package
(name "python-factory-boy")
(version "3.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "factory_boy" version))
(sha256
(base32 "0pm5lbvnwm0kg5i6z611rg907yw1gy551f2advmpaz041ixjg3d9"))))
(build-system python-build-system)
(arguments
;; Tests are not included in the tarball.
`(#:tests? #f))
(propagated-inputs (list python-faker))
(home-page "https://github.com/benhoyt/scandir")
(synopsis "Versatile test fixtures replacement")
(description "Factory_boy is a fixtures replacement based on thoughtbot’s
factory_girl. As a fixtures replacement tool, it aims to replace static, hard
to maintain fixtures with easy-to-use factories for complex object. Instead
of building an exhaustive test setup with every possible combination of corner
cases, factory_boy allows you to use objects customized for the current test,
while only declaring the test-specific fields.")
(license license:expat)))
(define-public python-translate-toolkit
(package
(name "python-translate-toolkit")
(version "3.6.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "translate-toolkit" version ".tar.gz"))
(sha256
(base32 "0m4cpsp7x7h5m5agg4ybscf7y86wla46q2lvxpi2myplb6qlgcli"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-sphinx))
(propagated-inputs
(list python-babel
python-beautifulsoup4
python-chardet
python-diff-match-patch
python-levenshtein
python-lxml
python-six
python-vobject
python-pyyaml))
(arguments
;; TODO: tests are not run, because they end with
;; TypeError: parse() missing 2 required positional arguments: 'tree' and
;; 'parse_funcs'
;; during test setup.
(list #:tests? #f
#:phases
#~(modify-phases %standard-phases
;; translate-toolkit has many optional dependencies (see
;; optional.txt), which the sanity check does not understand.
(delete 'sanity-check))))
(home-page "https://toolkit.translatehouse.org")
(synopsis "Tools and API for translation and localization engineering")
(description
"Tools and API for translation and localization engineering. It contains
several utilities, as well as an API for building localization tools.")
(license license:gpl2+)))
(define-public python-packaging
(package/inherit python-packaging-bootstrap
(name "python-packaging")
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-vv")
(format #t "test suite not run~%")))))))
(native-inputs
`(("python-pretend" ,python-pretend)
("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-pyparsing" ,python-pyparsing)
("python-six" ,python-six)))
(home-page "https://github.com/pypa/packaging")
(synopsis "Core utilities for Python packages")
(description "Packaging is a Python module for dealing with Python packages.
It offers an interface for working with package versions, names, and dependency
information.")
;; From 'LICENSE': This software is made available under the terms of
;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD.
;; Contributions to this software is made under the terms of *both* these
;; licenses.
(license (list license:asl2.0 license:bsd-2))))
(define-public python-relatorio
(package
(name "python-relatorio")
(version "0.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "relatorio" version))
(sha256
(base32
"09nhrz80dfm60nssbvjgz4czzy4yzfa8gxczcdlzbgcnnvm914vb"))))
(build-system python-build-system)
(propagated-inputs
(list python-lxml python-genshi))
(native-inputs
(list python-magic))
(home-page "https://relatorio.tryton.org/")
(synopsis "Templating library able to output ODT and PDF files")
(description "Relatorio is a templating library which provides a way to
easily output ODT, ODS, PNG, SVG and several other kinds of files. Support
for more filetypes can be easily added by creating plugins for them.")
(license license:gpl3+)))
(define-public python-radon
(package
(name "python-radon")
(version "5.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "radon" version))
(sha256
(base32
"1vmf56zsf3paa1jadjcjghiv2kxwiismyayq42ggnqpqwm98f7fb"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
((".*'future'.*")
"")
(("mando>=0\\.6,<0\\.7")
"mando>=0.6")
(("colorama==0.4.1")
"colorama>=0.4.1"))))
(replace 'check
(lambda _
(invoke "python" "radon/tests/run.py"))))))
(propagated-inputs (list python-colorama python-mando))
(native-inputs (list python-pytest python-pytest-mock))
(home-page "https://radon.readthedocs.org/")
(synopsis "Code Metrics in Python")
(description "Radon is a Python tool which computes various code metrics.
Supported metrics are:
@itemize @bullet
@item raw metrics: SLOC, comment lines, blank lines, &c.
@item Cyclomatic Complexity (i.e., McCabe’s Complexity)
@item Halstead metrics (all of them)
@item the Maintainability Index (a Visual Studio metric)
@end itemize")
(license license:expat)))
(define-public python-sure
(package
(name "python-sure")
(version "1.4.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sure" version))
(sha256
(base32
"1and0drq8w9iplsic22n2h7hkpyq03a1mbqk4sgcdqhqzdqm539w"))))
(build-system python-build-system)
(propagated-inputs
(list python-mock python-six))
(native-inputs
(list python-nose))
(home-page "https://github.com/gabrielfalcao/sure")
(synopsis "Automated testing library in python for python")
(description
"Sure is a python library that leverages a DSL for writing assertions.
Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
(license license:gpl3+)))
(define-public python-misaka
(package
(name "python-misaka")
(version "2.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "misaka" version))
(sha256
(base32
"1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"))))
(build-system python-build-system)
(arguments
`(;; Line 37 of setup.py calls self.run_command('develop')
;; in the 'check' phase. This command seems to be trying
;; to write to
;; /gnu/store/...-python-<version>/lib/python<version>/site-packages/
;; for which it does not have the permission to write.
#:tests? #f))
(propagated-inputs
(list python-cffi))
(home-page "https://github.com/FSX/misaka")
(synopsis "Python binding for Hoedown")
(description
"@code{Misaka} is a CFFI-based binding for @code{Hoedown}, a fast markdown processing
library written in C. It features a fast HTML renderer and functionality to make custom
renderers (e.g. man pages or LaTeX).")
(license license:expat)))
(define-public python-jsonpointer
(package
(name "python-jsonpointer")
(version "1.10")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsonpointer" version))
(sha256
(base32
"1cg0gvgqjysydv6p45v4jywg1jb3v48c7m3cbpi57zgf6nndr9cz"))))
(build-system python-build-system)
(home-page "https://github.com/stefankoegl/python-json-pointer")
(synopsis "Identify specific nodes in a JSON document")
(description "@code{jsonpointer} allows you to access specific nodes
by path in a JSON document (see RFC 6901).")
(license license:bsd-3)))
(define-public python-jsonpatch
(package
(name "python-jsonpatch")
(version "1.16")
(source
(origin
(method git-fetch)
;; pypi version lacks tests.js
(uri (git-reference
(url "https://github.com/stefankoegl/python-json-patch")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0k9pff06lxama3nhsc7cdxbp83422bdy8ifs52i6xkas8hpyzfzr"))))
(build-system python-build-system)
(propagated-inputs
(list python-jsonpointer))
(home-page "https://github.com/stefankoegl/python-json-patch")
(synopsis "Applying JSON Patches in Python 2.6+ and 3.x")
(description "@code{jsonpatch} is a library and program that allows
applying JSON Patches according to RFC 6902.")
(license license:bsd-3)))
(define-public python-jsonpatch-0.4
(package (inherit python-jsonpatch)
(name "python-jsonpatch")
(version "0.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/stefankoegl/python-json-patch")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1fq02y57kinyknxjcav0slcb0k9mwdffqw2hnlhdkpj7palh2mwk"))))))
(define-public python-rfc3986
(package
(name "python-rfc3986")
(version "1.4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "rfc3986" version))
(sha256
(base32
"17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-v"))))))
(native-inputs
(list python-pytest))
(home-page "https://rfc3986.readthedocs.io/")
(synopsis "Parse and validate URI references")
(description
"@code{rfc3986} is a Python implementation of RFC@tie{}3986 including
validation and authority parsing. This module also supports RFC@tie{}6874
which adds support for zone identifiers to IPv6 addresses.")
(license license:asl2.0)))
(define-public python-rfc3987
(package
(name "python-rfc3987")
(version "1.3.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rfc3987" version))
(sha256
(base32
"192pclzs2y0yaywqkrlvd0x73740q310kvqvm6jldhi619mq59wi"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/rfc3987/")
(synopsis "Parsing and validation of URIs (RFC 3986) and IRIs (RFC 3987)")
(description "@code{rfc3987} provides routines for parsing and
validation of URIs (see RFC 3986) and IRIs (see RFC 3987).")
(license license:gpl3+)))
;; The latest commit contains fixes for building with both python3 and python2.
(define-public python-rfc6555
(let ((commit "1a181b432312731f6742a5eb558dae4761d32361")
(revision "1"))
(package
(name "python-rfc6555")
(version (git-version "0.0.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sethmlarson/rfc6555")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1bxl17j9vs69cshcqnlwamr03hnykxqnwz3mdgi6x3s2k4q18npp"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
;; Other tests require network access.
(invoke "pytest" "tests/test_ipv6.py")
#t))))))
(native-inputs
(list python-pytest))
(home-page "https://pypi.org/project/rfc6555/")
(synopsis "Python implementation of RFC 6555")
(description
"Python implementation of the Happy Eyeballs Algorithm described in RFC
6555. Provided with a single file and dead-simple API to allow easy vendoring
and integration into other projects.")
(license license:asl2.0))))
(define-public python-bagit
(package
(name "python-bagit")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bagit" version))
(sha256
(base32
"1m6y04qmig0b5hzb35lnaw3d2yfydb7alyr1579yblvgs3da6j7j"))))
(build-system python-build-system)
(native-inputs
(list python-setuptools-scm python-coverage python-mock))
(home-page "https://libraryofcongress.github.io/bagit-python/")
(synopsis "Create and validate BagIt packages")
(description "Bagit is a Python library and command line utility for working
with BagIt style packages. BagIt is a minimalist packaging format for digital
preservation.")
(license license:cc0)))
(define-public python-prov
(package
(name "python-prov")
(version "2.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "prov" version))
(sha256
(base32
"1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
(build-system python-build-system)
(propagated-inputs
(list python-dateutil python-lxml python-networkx python-rdflib-5))
(native-inputs
(list graphviz python-pydot))
(home-page "https://github.com/trungdong/prov")
(synopsis
"W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")
(description
"This package provides a library for W3C Provenance Data Model supporting
PROV-O (RDF), PROV-XML, PROV-JSON import/export.")
(license license:expat)))
(define-public python-arcp
(package
(name "python-arcp")
(version "0.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "arcp" version))
(sha256
(base32
"1p8mfyjssa6pbn5dp6pyzv9yy6kwm2rz5jn2kjbq5vy9f9wsq5sw"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "http://arcp.readthedocs.io/")
(synopsis
"Archive and Package URI parser and generator")
(description
"@acronym{arcp, Archive and Package} provides functions for creating
@code{arcp_} URIs, which can be used for identifying or parsing hypermedia files
packaged in an archive or package, like a ZIP file. arcp URIs can be used to
consume or reference hypermedia resources bundled inside a file archive or an
application package, as well as to resolve URIs for archive resources within a
programmatic framework. This URI scheme provides mechanisms to generate a
unique base URI to represent the root of the archive, so that relative URI
references in a bundled resource can be resolved within the archive without
having to extract the archive content on the local file system. An arcp URI can
be used for purposes of isolation (e.g. when consuming multiple archives),
security constraints (avoiding \"climb out\" from the archive), or for
externally identiyfing sub-resources referenced by hypermedia formats.")
(license license:asl2.0)))
(define-public python-shellescape
(package
(name "python-shellescape")
(version "3.8.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chrissimpkins/shellescape")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0wzccxk139qx1lb2g70f5b2yh9zq15nr2mgvqdbfabg5zm0vf1qw"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "tests/test_shellescape.py"))
#t)))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/chrissimpkins/shellescape")
(synopsis
"Shell escape a string to safely use it as a token in a shell command")
(description
"The shellescape Python module defines the @code{shellescape.quote()}
function that returns a shell-escaped version of a Python string. This is a
backport of the @code{shlex.quote()} function from Python 3.8 that makes it
accessible to users of Python 3 versions < 3.3 and all Python 2.x versions.")
(license license:expat)))
(define-public python-validators
(package
(name "python-validators")
(version "0.18.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "validators" version))
(sha256
(base32
"19lypf7hm7p203ay3v8zmckc5rv6889zkfdm16nki1972f99mk9p"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(propagated-inputs
(list python-decorator python-six))
(native-inputs
(list python-flake8 python-isort python-pytest))
(home-page "https://github.com/kvesteri/validators")
(synopsis "Data validation library")
(description
"This package contains validators for different things such as email
addresses, IP addresses, URLs, hashes and more. It has been designed to
be easy to use and not require defining a schema or form just to validate
some input.")
(license license:expat)))
(define-public python-validate-email
(package
(name "python-validate-email")
(version "1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "validate_email" version))
(sha256
(base32
"1bxffaf5yz2cph8ki55vdvdypbwkvn2xr1firlcy62vqbzf1jivq"))))
(build-system python-build-system)
(home-page "https://github.com/syrusakbary/validate_email")
(synopsis "Verifies if an email address is valid and really exists")
(description "@code{validate_email} can be used to verify if an email
address is valid and really exists.")
(license license:lgpl3+)))
(define-public python-flex
(package
(name "python-flex")
(version "6.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flex" version))
(sha256
(base32
"00pamnwla3khk8nyla7y28dq9jnh69swd7f4jfsl7sn1izs8n8zk"))))
(build-system python-build-system)
(propagated-inputs
(list python-click
python-iso8601
python-jsonpointer
python-pyyaml
python-requests
python-rfc3987
python-six
python-validate-email))
(home-page "https://github.com/pipermerriam/flex")
(synopsis "Validates Swagger schemata")
(description "@code{flex} can be used to validate Swagger schemata.")
(license license:bsd-3)))
(define-public python-marshmallow
(package
(name "python-marshmallow")
(version "3.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "marshmallow" version))
(sha256
(base32
"0kizhh3mnhpa08wfnsv1gagy22bpxzxszgbiylkhpz1d8qvwrykk"))))
(build-system python-build-system)
(propagated-inputs
(list python-dateutil python-simplejson))
(native-inputs
(list python-pytest python-pytz))
(home-page "https://github.com/marshmallow-code/marshmallow")
(synopsis "Convert complex datatypes to and from native
Python datatypes")
(description "@code{marshmallow} provides a library for converting
complex datatypes to and from native Python datatypes.")
(license license:expat)))
(define-public python-marshmallow-jsonapi
(package
(name "python-marshmallow-jsonapi")
(version "0.24.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "marshmallow-jsonapi" version))
(sha256
(base32 "1d9pxcgmln4gls99vwj1h24qv0lz7fb2jqmqrsiv1pid1snc125x"))))
(build-system python-build-system)
(propagated-inputs
(list python-marshmallow))
(native-inputs
(list python-faker
python-flake8
python-flake8-bugbear
python-flask
python-mock
python-pre-commit
python-pytest
python-tox))
(home-page "https://github.com/marshmallow-code/marshmallow-jsonapi")
(synopsis "JSON:API 1.0 formatting with Marshmallow")
(description
"The marshmallow-jsonapi package provides a simple way to produce
@uref{https://jsonapi.org, JSON:API}-compliant data in any Python Web framework.
It includes optional utilities to integrate with Flask.")
(license license:expat)))
(define-public python-apispec
(package
(name "python-apispec")
(version "4.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "apispec" version))
(sha256
(base32
"12n4w5zkn4drcn8izq68vmixmqvz6abviqkdn4ip0kaax3jjh3in"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"
;; Disable validation tests since they require
;; the optional 'prance' library which is not
;; yet in Guix.
"-k" "not openapi_tools_validate"))))))
(propagated-inputs
(list python-pyyaml))
(native-inputs
(list python-pytest python-marshmallow))
(home-page "https://github.com/marshmallow-code/apispec")
(synopsis "Swagger/OpenAPI specification generator")
(description "@code{python-apispec} is a pluggable API specification
generator. It currently supports the OpenAPI specification, formerly known
as Swagger.")
(license license:expat)))
(define-public python-flasgger
(package
(name "python-flasgger")
(version "0.6.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rochacbruno/flasgger")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0yydxsyjnc0clbrjqb1n7587l6cdqvwdagwxk5hkx01qwdfbkvpn"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "Makefile"
(("flake8 flasgger --ignore=F403")
"flake8 flasgger --ignore=E731,F403"))
(invoke "py.test"))))))
(propagated-inputs
(list python-flask python-pyyaml python-jsonschema python-mistune
python-six))
(native-inputs
(list python-decorator
python-flake8
python-flask-restful
python-flex
python-pytest
python-pytest-cov
python-marshmallow
python-apispec))
(home-page "https://github.com/rochacbruno/flasgger/")
(synopsis "Extract Swagger specs from your Flask project")
(description "@code{python-flasgger} allows extracting Swagger specs
from your Flask project. It is a fork of Flask-Swagger.")
(license license:expat)))
(define-public python-swagger-spec-validator
(package
(name "python-swagger-spec-validator")
(version "2.4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "swagger-spec-validator" version))
(sha256
(base32
"11g627icrsqwazsncwi0sdvprcj6hwaayw5xk3xsj8d97bmrzqjp"))))
(build-system python-build-system)
(propagated-inputs
(list python-jsonschema python-pyyaml python-six))
(home-page
"https://github.com/Yelp/swagger_spec_validator")
(synopsis "Validation of Swagger specifications")
(description "@code{swagger_spec_validator} provides a library for
validating Swagger API specifications.")
(license license:asl2.0)))
(define-public python-apache-libcloud
(package
(name "python-apache-libcloud")
(version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "apache-libcloud" version))
(sha256
(base32
"1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-ssh
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "libcloud/compute/ssh.py"
(("'ssh'")
(string-append "'" (search-input-file inputs "/bin/ssh")
"'")))))
(add-after 'unpack 'patch-tests
(lambda _
(substitute* "libcloud/test/compute/test_ssh_client.py"
(("^class ShellOutSSHClientTests")
"@unittest.skip(\"Guix container doesn't have ssh service\")
class ShellOutSSHClientTests"))))
(add-before 'check 'copy-secret
(lambda _
(copy-file "libcloud/test/secrets.py-dist"
"libcloud/test/secrets.py"))))))
(inputs
(list openssh))
(propagated-inputs
(list python-paramiko python-requests))
(native-inputs
(list python-lockfile python-mock python-pytest python-pytest-runner
python-requests-mock))
(home-page "https://libcloud.apache.org/")
(synopsis "Unified Cloud API")
(description "@code{libcloud} is a Python library for interacting with
many of the popular cloud service providers using a unified API.")
(license license:asl2.0)))
(define-public python-smmap
(package
(name "python-smmap")
(version "3.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "smmap" version))
(sha256
(base32 "0ijlnv60y8f41py1wnn5n1a1i81cxd9dfpdhr0k3cgkrcbz8850p"))))
(build-system python-build-system)
(native-inputs
(list python-nosexcover))
(home-page "https://github.com/Byron/smmap")
(synopsis "Python sliding window memory map manager")
(description "@code{smmap} is a pure Python implementation of a sliding
window memory map manager.")
(license license:bsd-3)))
(define-public python-regex
(package
(name "python-regex")
(version "2022.1.18")
(source (origin
(method url-fetch)
(uri (pypi-uri "regex" version))
(sha256
(base32
"05ir92d0cmv8wkafn3r05j5q47l6shg7cpdblp2a8m407b02vwwp"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "python" "-c"
"from regex.test_regex import test_main ; test_main()"))))))
(home-page "https://bitbucket.org/mrabarnett/mrab-regex")
(synopsis "Alternative regular expression module")
(description "This regular expression implementation is backwards-
compatible with the standard @code{re} module, but offers additional
functionality like full case-folding for case-insensitive matches in Unicode.")
(license license:psfl)))
(define-public python-pyopengl
(package
(name "python-pyopengl")
(version "3.1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyOpenGL" version))
(sha256
(base32
"091lp9bpqi8yf1nmyg19xmvw611lrzq2q94cl1k5gnlh0c6vl1s1"))))
(build-system python-build-system)
(inputs
(list mesa freeglut glu))
(arguments
`(#:tests? #f ; Tests fail: AttributeError: 'GLXPlatform' object has no
;attribute 'OSMesa'
#:phases
(modify-phases %standard-phases
(add-before 'build 'fix-paths
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* '("OpenGL/platform/ctypesloader.py")
(("filenames_to_try = \\[\\]") "filenames_to_try = [name]"))
(substitute* '("OpenGL/platform/glx.py" "tests/check_glut_load.py")
(("'GL'")
(string-append "'" (assoc-ref inputs "mesa") "/lib/libGL.so'"))
(("'GLU'")
(string-append "'" (assoc-ref inputs "glu") "/lib/libGLU.so'"))
(("'glut',")
(string-append "'" (assoc-ref inputs "freeglut") "/lib/libglut.so',"))
(("'GLESv1_CM'")
(string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv1_CM.so'"))
(("'GLESv2'")
(string-append "'" (assoc-ref inputs "mesa") "/lib/libGLESv2.so'")))
;; Not providing libgle. It seems to be very old.
#t)))))
(home-page "http://pyopengl.sourceforge.net")
(synopsis "Standard OpenGL bindings for Python")
(description
"PyOpenGL is the most common cross platform Python binding to OpenGL and
related APIs. The binding is created using the standard @code{ctypes}
library.")
(license license:bsd-3)))
(define-public python-pyopengl-accelerate
(package
(inherit python-pyopengl)
(name "python-pyopengl-accelerate")
(version "3.1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyOpenGL-accelerate" version))
(sha256
(base32
"01iggy5jwxv7lxnj51zbmlbhag9wcb7dvrbwgi97i90n0a5m3r8j"))))
(inputs
(list mesa python-numpy)) ; for cython module
; numpy_formathandler, thus not propagated
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(delete 'fix-paths))))
(synopsis "Acceleration code for PyOpenGL")
(description
"This is the Cython-coded accelerator module for PyOpenGL.")))
(define-public python-rencode
(package
(name "python-rencode")
(version "1.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rencode" version))
(sha256
(base32
"0mzwdq1is7kyyr32i5k4iz6g5xxdvmiyc132jnc60p9m6lnwjrpv"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'delete-bogus-test
;; This test requires /home/aresch/Downloads, which is not provided by
;; the build environment.
(lambda _
(delete-file "rencode/t.py")
#t)))))
(native-inputs (list pkg-config python-cython))
(home-page "https://github.com/aresch/rencode")
(synopsis "Serialization of heterogeneous data structures")
(description
"The @code{rencode} module is a data structure serialization library,
similar to @code{bencode} from the BitTorrent project. For complex,
heterogeneous data structures with many small elements, r-encoding stake up
significantly less space than b-encodings. This version of rencode is a
complete rewrite in Cython to attempt to increase the performance over the
pure Python module.")
(license license:bsd-3)))
(define-public python-pysocks
(package
(name "python-pysocks")
(version "1.7.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PySocks" version))
(sha256
(base32
"184sg65mbmih6ljblfsxcmq5js5l7dj3gpn618w9q5dy3rbh921z"))))
(build-system python-build-system)
(arguments `(#:tests? #f))
(home-page "https://github.com/Anorov/PySocks")
(synopsis "SOCKS client module")
(description "@code{pysocks} is an updated and semi-actively maintained
version of @code{SocksiPy} with bug fixes and extra features.")
(license license:bsd-3)))
(define-public python-pydiff
(package
(name "python-pydiff")
(version "0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pydiff" version))
(sha256
(base32
"1als83h9w0gab24ipyna6khm390qmpnpkc5jksmdbs2xc8hp2z44"))))
(build-system python-build-system)
(home-page "https://github.com/myint/pydiff")
(synopsis "Library to diff two Python files at the bytecode level")
(description
"@code{pydiff} makes it easy to look for actual code changes while
ignoring formatting changes.")
(license license:expat)))
(define-public python-pydub
(package
(name "python-pydub")
(version "0.25.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pydub" version))
(sha256
(base32
"03ykn2kp6qglsrzqi5h79z5cp3kl9mknasv0d6jv5jj9k77362lq"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-ffmpeg-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((ffmpeg (assoc-ref inputs "ffmpeg")))
(substitute* '("pydub/utils.py")
(("return \"ffmpeg\"")
(string-append "return \"" ffmpeg "/bin/ffmpeg\""))
(("return \"ffplay\"")
(string-append "return \"" ffmpeg "/bin/ffplay\""))
(("return \"ffprobe\"")
(string-append "return \"" ffmpeg "/bin/ffprobe\""))
(("warn\\(\"Couldn't find ff") "# warn\\(\"Couldn't find ff"))
#t))))))
(home-page "https://pydub.com")
(inputs
(list ffmpeg))
(propagated-inputs
(list python-scipy))
(synopsis "Manipulate audio with a high level interface in Python")
(description
"@code{pydub} makes it easy to manipulate audio in Python. It relies on
@code{ffmpeg} to open various audio formats.")
(license license:expat))) ; MIT license
(define-public python-tqdm
(package
(name "python-tqdm")
(version "4.64.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tqdm" version))
(sha256
(base32
"1r7i9kswpnrx4ppfvzz6discb04j1rqkqxdwa2sc2la900m6hksz"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"
"-o" "asyncio_mode=auto"
"-k" "not perf"))))))
(native-inputs
(list python-pytest python-pytest-asyncio python-pytest-timeout
python-setuptools-scm python-toml))
(home-page "https://github.com/tqdm/tqdm")
(synopsis "Fast, extensible progress meter")
(description
"Make loops show a progress bar on the console by just wrapping any
iterable with @code{|tqdm(iterable)|}. Offers many options to define
design and layout.")
(license (list license:mpl2.0 license:expat))))
(define-public python-pkginfo
(package
(name "python-pkginfo")
(version "1.8.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pkginfo" version))
(sha256
(base32 "0z46w559hrl79gf7navgzimj21ma821wka27jh58fvyqilqs8kd8"))))
(build-system python-build-system)
(native-inputs
(list python-wheel))
(home-page "https://code.launchpad.net/~tseaver/pkginfo/trunk")
(synopsis "Query metadatdata from sdists, bdists, and installed packages")
(description
"API to query the distutils metadata written in @file{PKG-INFO} inside a
source distriubtion (an sdist) or a binary distribution (e.g., created by
running bdist_egg). It can also query the EGG-INFO directory of an installed
distribution, and the *.egg-info stored in a \"development checkout\" (e.g,
created by running @code{python setup.py develop}).")
(license license:expat)))
(define-public python-twine
(package
(name "python-twine")
(version "1.15.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "twine" version))
(sha256
(base32 "11rpd653zcgzkq3sgwkzs3mpxl3r5rij59745ni84ikv8smjmlm3"))))
(build-system python-build-system)
(propagated-inputs
(list python-tqdm
python-packaging
python-pkginfo
python-readme-renderer
python-requests
python-requests-toolbelt))
(home-page "https://github.com/pypa/twine")
(synopsis "Collection of utilities for interacting with PyPI")
(description
"@code{twine} currently supports registering projects and uploading
distributions. It authenticates the user over HTTPS, allows them to pre-sign
their files and supports any packaging format (including wheels).")
(license license:asl2.0)))
(define-public python-linecache2
(package
(name "python-linecache2")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "linecache2" version))
(sha256
(base32
"0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb"))))
(build-system python-build-system)
(arguments
`(;; The tests depend on unittest2, and our version is a bit too old.
#:tests? #f))
(native-inputs
`(("python-pbr" ,python-pbr-minimal)))
(home-page
"https://github.com/testing-cabal/linecache2")
(synopsis "Backports of the linecache module")
(description
"The linecache module allows one to get any line from any file, while
attempting to optimize internally, using a cache, the common case where many
lines are read from a single file.")
(license license:psfl)))
(define-public python-traceback2
(package
(name "python-traceback2")
(version "1.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "traceback2" version))
(sha256
(base32
"0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"))))
(build-system python-build-system)
(arguments
`(;; python-traceback2 and python-unittest2 depend on one another.
#:tests? #f))
(native-inputs
`(("python-pbr" ,python-pbr-minimal)))
(propagated-inputs
(list python-linecache2 python-six))
(home-page
"https://github.com/testing-cabal/traceback2")
(synopsis "Backports of the traceback module")
(description
"This module provides a standard interface to extract, format and print
stack traces of Python programs. It exactly mimics the behavior of the Python
interpreter when it prints a stack trace.")
(license license:psfl)))
(define-public python-ratelimiter
(package
(name "python-ratelimiter")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ratelimiter" version))
(sha256
(base32
"1dhz85mj5bqd2mij84ncs6pz32hgidr79hay4aqfmzaa4rbb497p"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; There are no tests in the pypi archive.
(home-page "https://github.com/RazerM/ratelimiter")
(synopsis "Simple rate limiting object")
(description
"The @code{ratelimiter} module ensures that an operation will not be
executed more than a given number of times during a given period.")
(license license:asl2.0)))
(define-public python-jsonrpclib-pelix
(package
(name "python-jsonrpclib-pelix")
(version "0.3.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsonrpclib-pelix" version))
(sha256
(base32
"0f83z5zi7w32vprhk1dyc94ir1bh4hdd57bjdbwkq9ykng8qilhl"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; no tests in PyPI tarball
(home-page "https://github.com/tcalmant/jsonrpclib/")
(synopsis "JSON-RPC 2.0 client library for Python")
(description
"This library implements the JSON-RPC v2.0
specification (backwards-compatible) as a client library for Python. This
version is a fork of jsonrpclib by Josh Marshall, usable with Pelix remote
services.")
(license license:asl2.0)))
(define-public python-setuptools-scm-git-archive
(package
(name "python-setuptools-scm-git-archive")
(version "1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "setuptools_scm_git_archive" version))
(sha256
(base32
"1nii1sz5jq75ilf18bjnr11l9rz1lvdmyk66bxl7q90qan85yhjj"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-after 'unpack 'dont-install-defunct-egginfo
(lambda _
;; When a ".git" directory is missing, the setup.py
;; script invokes setuptools.setup twice, once with
;; "0" as the version. Prevent that.
(substitute* "setup.py"
(("if not isdir\\('\\.git'\\):")
"if False:")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-setuptools-scm))
(home-page "https://github.com/Changaco/setuptools_scm_git_archive/")
(synopsis "Setuptools_scm plugin for git archives")
(description
"The setuptools_scm_git_archive package is a plugin to
setuptools_scm, which supports obtaining versions from git archives that
belong to tagged versions.")
(license license:expat)))
(define-public python-setuptools-git
(package
(name "python-setuptools-git")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "setuptools-git" version))
(sha256
(base32
"0i84qjwp5m0l9qagdjww2frdh63r37km1c48mrvbmaqsl1ni6r7z"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; This is needed for tests.
(add-after 'unpack 'configure-git
(lambda _
(setenv "HOME" "/tmp")
(invoke "git" "config" "--global" "user.email" "guix")
(invoke "git" "config" "--global" "user.name" "guix")
#t)))))
(native-inputs
`(("git" ,git-minimal)))
(home-page "https://github.com/msabramo/setuptools-git")
(synopsis "Setuptools revision control system plugin for Git")
(description
"This package provides a plugin for Setuptools for revision control with
Git.")
(license license:bsd-3)))
(define-public python-setuptools-rust
(package
(name "python-setuptools-rust")
(version "1.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "setuptools-rust" version))
(sha256
(base32 "1lb57qx1azklgzmalflq960agvwci4bwddw0zvlc9zy00fsvkbd0"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;no tests
(native-inputs
(list python-setuptools-scm))
(propagated-inputs
(list python-semantic-version python-typing-extensions))
(home-page "https://github.com/PyO3/setuptools-rust")
(synopsis "Setuptools plugin for Rust extensions")
(description
"@code{setuptools-rust} is a plugin for @code{setuptools} to build
Rust Python extensions implemented with @code{PyO3} or @code{rust-cpython}.")
(license license:expat)))
(define-public python-pyclipper
(package
(name "python-pyclipper")
(version "1.3.0.post3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyclipper" version))
(sha256
(base32 "0vqzbmq2di1jaj6230m5i1ld0mg6wdb1c6r6i5zli54varavr7v3"))
(modules '((guix build utils)))
(snippet
'(begin
;; This file is generated by Cython.
(delete-file "src/pyclipper/_pyclipper.cpp") #t))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'cythonize-sources
(lambda _
(with-directory-excursion "src/pyclipper"
(invoke "cython" "--cplus" "_pyclipper.pyx")))))))
(native-inputs
(list python-cython python-setuptools-scm
python-pytest python-pytest-runner))
(home-page "https://github.com/greginvm/pyclipper")
(synopsis "Wrapper for Angus Johnson's Clipper library")
(description
"Pyclipper is a Cython wrapper for the C++ translation of the
Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
(license license:expat)))
(define-public python-tempdir
(package
(name "python-tempdir")
(version "0.7.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tempdir" version))
(sha256
(base32
"13msyyxqbicr111a294x7fsqbkl6a31fyrqflx3q7k547gnq15k8"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/tempdir/")
(arguments
;; the package has no tests
'(#:tests? #f))
(synopsis "Python library for managing temporary directories")
(description
"This library manages temporary directories that are automatically
deleted with all their contents when they are no longer needed. It is
particularly convenient for use in tests.")
(license license:expat)))
(define-public python-tempora
(package
(name "python-tempora")
(version "5.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tempora" version))
(sha256
(base32 "09wirlk5vmxlhl9rnxp7g5qz2nsd6b0gnzk5fczbz0s8lsbz386b"))))
(build-system pyproject-build-system)
(arguments
;; Do not test the myproject.toml build as it tries to pull
;; dependencies from the Internet.
(list #:test-flags #~'("-k" "not project")))
(native-inputs
(list python-freezegun
python-pytest
python-pytest-black
python-pytest-checkdocs
python-pytest-cov
python-pytest-enabler
python-pytest-flake8
python-pytest-freezegun
python-pytest-mypy
python-setuptools-scm
python-types-freezegun
python-types-pytz))
(propagated-inputs (list python-jaraco-functools python-pytz))
(home-page "https://github.com/jaraco/tempora")
(synopsis "Python date and time objects and routines")
(description "The @code{tempora} Python library contains miscellaneous
date and time related utilities and constants, routines for measuring,
profiling, and getting datetime-aware @acronym{UTC, Coordinated Universal
Time} values as well as an event scheduler.")
(license license:expat)))
(define-public python-activepapers
(package
(name "python-activepapers")
(version "0.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ActivePapers.Py" version))
(sha256
(base32
"12wkhjh90ffipjzv10swndp2xv9hd7xrxvg6v0n4n3i411pj4xb8"))))
(build-system python-build-system)
(arguments
`(#:modules ((ice-9 ftw)
(srfi srfi-1)
(guix build utils)
(guix build python-build-system))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-python2-code
(lambda _
(for-each delete-file
'("lib/activepapers/builtins2.py"
"lib/activepapers/standardlib2.py"
"lib/activepapers/utility2.py"))))
(replace 'check
(lambda _
;; Deactivate the test cases that download files
(setenv "NO_NETWORK_ACCESS" "1")
;; For some strange reason, some tests fail if nosetests runs all
;; test modules in a single execution. They pass if each test
;; module is run individually.
(for-each (lambda (filename)
(invoke "nosetests"
(string-append "tests/" filename)))
(scandir "tests"
(lambda (filename)
(string-suffix? ".py" filename)))))))))
(native-inputs
(list python-tempdir python-nose))
(propagated-inputs
(list python-h5py))
(home-page "https://www.activepapers.org/")
(synopsis "Executable papers for scientific computing")
(description
"ActivePapers is a tool for working with executable papers, which
combine data, code, and documentation in single-file packages,
suitable for publication as supplementary material or on repositories
such as figshare or Zenodo.")
(license license:bsd-3)))
(define-public python-semver
(package
(name "python-semver")
(version "2.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "semver" version))
(sha256
(base32
"183kg1rhzz3hqizvphkd8hlbf1zxfx8737zhfkmqzxi71jmdw7pd"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(delete-file "setup.cfg")
(invoke "py.test"))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/k-bx/python-semver")
(synopsis "Python helper for Semantic Versioning")
(description "This package provides a Python library for
@url{Semantic Versioning, http://semver.org/}.")
(license license:bsd-3)))
(define-public python-pyro4
(package
(name "python-pyro4")
(version "4.77")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Pyro4" version))
(sha256
(base32 "0gsjg869y4gpy265s1gj1f2qy6jn5iz8r2bwwnq78r1r5yi15zib"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ;FIXME: Some tests require network access.
(native-inputs
(list python-cloudpickle python-dill python-msgpack))
(propagated-inputs
(list python-serpent))
(home-page "https://pyro4.readthedocs.io")
(synopsis "Distributed object middleware for Python")
(description
"Pyro enables you to build applications in which objects can talk to each
other over the network. You can just use normal Python method calls to call
objects on other machines, also known as remote procedure calls (RPC).")
(license license:expat)))
(define-public python-phonenumbers
(package
(name "python-phonenumbers")
(version "8.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "phonenumbers" version))
(sha256
(base32
"03fmrgb4r8x3ykmddjs9i3zhs703in8smikj3a6447blqpimwyh1"))))
(build-system python-build-system)
(home-page
"https://github.com/daviddrysdale/python-phonenumbers")
(synopsis
"Python library for dealing with international phone numbers")
(description
"This package provides a Python port of Google's libphonenumber library.")
(license license:asl2.0)))
(define-public python-heapdict
(package
(name "python-heapdict")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "HeapDict" version))
(sha256
(base32
"1dnd7v9adqd21bf4ih2wzn9a7b41m0nccb0vbxny9n037rxzb5c4"))))
(build-system python-build-system)
(home-page "http://stutzbachenterprises.com/")
(synopsis "Heap with decrease-key and increase-key operations")
(description
"heapdict implements the MutableMapping ABC, meaning it works pretty much
like a regular Python @code{dict}. It’s designed to be used as a priority
queue.")
(license license:bsd-3)))
(define-public python-zict
(package
(name "python-zict")
(version "2.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zict" version))
(sha256
(base32
"05pd1hyhqvpw87rnbvl3vdyf619snpyccbswaxisdj17frwnjacf"))))
(build-system python-build-system)
(propagated-inputs
(list python-heapdict))
(native-inputs
(list python-pytest))
(home-page "https://zict.readthedocs.io/en/latest/")
(synopsis "Composable mutable mapping tools")
(description "This package provides abstract @code{MutableMapping} classes
that consume and build on other @code{MutableMappings}. Several of these can
be composed with one another to form intuitive interfaces over complex storage
systems policies.")
(license license:bsd-3)))
(define-public python-send2trash
(package
(name "python-send2trash")
(version "1.8.0")
(source
(origin (method git-fetch)
;; Source tarball on PyPI doesn't include tests.
(uri (git-reference
(url "https://github.com/arsenetar/send2trash")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1k7dfypaaq4f36fbciaasv72j6wgjihw8d88axmz9c329bz8v5qx"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'pre-check
(lambda _
(setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest))
(home-page "https://github.com/arsenetar/send2trash")
(synopsis "Send files to the user's @file{~/Trash} directory")
(description "This package provides a Python library to send files to the
user's @file{~/Trash} directory.")
(license license:bsd-3)))
(define-public python-pyfavicon
(package
(name "python-pyfavicon")
(version "0.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyfavicon" version))
(sha256
(base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
(build-system python-build-system)
(arguments
;; There are no tests in the PyPI tarball and the tests from the
;; repository require online data.
'(#:tests? #f))
(propagated-inputs
(list python-aiohttp python-beautifulsoup4 python-pillow))
(home-page "https://github.com/bilelmoussaoui/pyfavicon")
(synopsis "Async favicon fetcher")
(description
"@code{pyfavicon} is an async favicon fetcher.")
(license license:expat)))
(define-public python-yamllint
(package
(name "python-yamllint")
(version "1.26.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "yamllint" version))
(sha256
(base32 "090krlxj7az0d9yl8i20vjrqi66dfxx7y5xakjhxzsfp7qmldnc7"))))
(build-system python-build-system)
(propagated-inputs
(list python-pathspec python-pyyaml python-setuptools))
(home-page "https://github.com/adrienverge/yamllint")
(synopsis "Linter for YAML files")
(description
"Yamllint is a linter for YAML files. yamllint does not only check for
syntax validity, but for weirdnesses like key repetition and cosmetic problems
such as lines length, trailing spaces, indentation, etc.")
(license license:gpl3+)))
(define-public python-yapf
(package
(name "python-yapf")
(version "0.29.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "yapf" version))
(sha256
(base32
"1pj3xzblmbssshi889b6n9hwqbjpabw6j0fimlng2sshd3226bki"))))
(build-system python-build-system)
(home-page "https://github.com/google/yapf")
(synopsis "Formatter for Python code")
(description "YAPF is a formatter for Python code. It's based off of
@dfn{clang-format}, developed by Daniel Jasper. In essence, the algorithm
takes the code and reformats it to the best formatting that conforms to the
style guide, even if the original code didn't violate the style guide.")
(license license:asl2.0)))
(define-public python-yq
(package
(name "python-yq")
(version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "yq" version))
(sha256
(base32
"1wklgs3d9si475nffw9agq5kgk8bdicbsmlj4sx4kiw64ji4ma1h"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "yq/__init__.py"
(("Popen\\(\\[\"jq")
(string-append
"Popen([\""
(assoc-ref inputs "jq")
"/bin/jq")))
#t)))))
(inputs
(list python-argcomplete python-pyyaml python-xmltodict python-toml jq))
(native-inputs
(list python-coverage python-flake8 python-setuptools-scm python-wheel))
(home-page "https://github.com/kislyuk/yq")
(synopsis "Command-line YAML/XML processor")
(description
"This package provides @command{yq} and @command{xq} for processing YAML
and XML respectively. The processing is done through @command{jq}, @command{jq}
filters can be used to process the data as it passes through.")
(license license:asl2.0)))
(define-public python-gyp
(let ((commit "5e2b3ddde7cda5eb6bc09a5546a76b00e49d888f")
(revision "0"))
(package
(name "python-gyp")
;; Google does not release versions,
;; based on second most recent commit date.
(version (git-version "0.0.0" revision commit))
(source
(origin
;; Google does not release tarballs,
;; git checkout is needed.
(method git-fetch)
(uri (git-reference
(url "https://chromium.googlesource.com/external/gyp")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0fr7nxcrk292djmxzpcjaphnsd123k31gp8jnd91vwknhq6snmv9"))))
(build-system python-build-system)
(home-page "https://gyp.gsrc.io/")
(synopsis "GYP is a Meta-Build system")
(description
"GYP builds build systems for large, cross platform applications.
It can be used to generate XCode projects, Visual Studio projects, Ninja build
files, and Makefiles.")
(license license:bsd-3))))
(define-public python-whatever
(package
(name "python-whatever")
(version "0.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Suor/whatever")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1q7ajgqjfivxqsqgnhp4lc4p6jxyh4zprcsdbpd6dw54inaf0av5"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "py.test"))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/Suor/whatever")
(synopsis "Make anonymous functions by partial application of operators")
(description "@code{whatever} provides an easy way to make anonymous
functions by partial application of operators.")
(license license:bsd-3)))
(define-public python-funcy
(package
(name "python-funcy")
(version "1.11")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Suor/funcy")
(commit version)))
(sha256
(base32 "1s98vkjnq3zq71737hn8xa15kssvmy1sfzsll3vrlv53902418mw"))
(file-name (git-file-name name version))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "py.test"))))))
(native-inputs
(list python-pytest python-whatever))
(home-page "https://github.com/Suor/funcy")
(synopsis "Functional tools")
(description "@code{funcy} is a library that provides functional tools.
Examples are:
@enumerate
@item merge - Merges collections of the same type
@item walk - Type-preserving map
@item select - Selects a part of a collection
@item take - Takes the first n items of a collection
@item first - Takes the first item of a collection
@item remove - Predicated-removes items of a collection
@item concat - Concatenates two collections
@item flatten - Flattens a collection with subcollections
@item distinct - Returns only distinct items
@item split - Predicated-splits a collection
@item split_at - Splits a collection at a given item
@item group_by - Groups items by group
@item pairwise - Pairs off adjacent items
@item partial - Partially-applies a function
@item curry - Curries a function
@item compose - Composes functions
@item complement - Complements a predicate
@item all_fn - \"all\" with predicate
@end enumerate")
(license license:bsd-3)))
(define-public python-isoweek
(package
(name "python-isoweek")
(version "1.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "isoweek" version))
(sha256
(base32
"1s7zsf0pab0l9gn6456qadnz5i5h90hafcjwnhx5mq23qjxggwvk"))))
(build-system python-build-system)
(home-page "https://github.com/gisle/isoweek")
(synopsis "Objects representing a week")
(description "The @code{isoweek} module provide the class Week that
implements the week definition of ISO 8601. This standard also defines
a notation for identifying weeks; yyyyWww (where the W is a literal).
Week instances stringify to this form.")
(license license:bsd-3)))
(define-public python-pyzbar
(package
(name "python-pyzbar")
(version "0.1.8")
(source
(origin
;; There's no source tarball on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/NaturalHistoryMuseum/pyzbar")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fqlfg5p2v9lzzzi0si2sz54lblprk6jjjhjw54b64lp58c1yhsl"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-test
(lambda _
;; This tests if find_library was called once, but we remove
;; the call in the stage below to make the library find libzbar.
(delete-file "pyzbar/tests/test_zbar_library.py")
#t))
(add-before 'build 'set-library-file-name
(lambda* (#:key inputs #:allow-other-keys)
(let ((libzbar (assoc-ref inputs "zbar")))
(substitute* "pyzbar/zbar_library.py"
(("find_library\\('zbar'\\)")
(string-append "'" libzbar "/lib/libzbar.so.0'")))
#t))))))
(native-inputs
(list pkg-config python-numpy python-pillow))
(inputs
(list zbar))
(home-page "https://github.com/NaturalHistoryMuseum/pyzbar/")
(synopsis "Read one-dimensional barcodes and QR codes")
(description
"Read one-dimensional barcodes and QR codes using the zbar library.
Features:
@itemize
@item Pure python
@item Works with PIL / Pillow images, OpenCV / numpy ndarrays, and raw bytes
@item Decodes locations of barcodes
@item No dependencies, other than the zbar library itself
@end itemize")
(license license:expat)))
(define-public python-tokenize-rt
(package
(name "python-tokenize-rt")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tokenize-rt" version))
(sha256
(base32
"1yjvbz7rvrz31zjyax1cgy3xhf4wb3j18jwnj4bnl77ca4gliyiw"))))
(build-system python-build-system)
(home-page "https://github.com/asottile/tokenize-rt")
(synopsis "Wrapper around the stdlib tokenize which roundtrips")
(description
"This Python library is a wrapper around @code{tokenize} from the Python
standard library. It provides two additional tokens @code{ESCAPED_NL} and
@code{UNIMPORTANT_WS}, and a @code{Token} data type. Use @code{src_to_tokens}
and @code{tokens_to_src} to roundtrip.")
(license license:expat)))
(define-public python-future-fstrings
(package
(name "python-future-fstrings")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "future_fstrings" version))
(sha256
(base32
"0ydxqz2dvns44g55p8ix2x18qkfk3aaz0m0dc70f3g6n8js35h47"))))
(build-system python-build-system)
(propagated-inputs
(list python-tokenize-rt))
(home-page "https://github.com/asottile/future-fstrings")
(synopsis "Backport of fstrings to Python < 3.6")
(description
"This package provides a UTF-8 compatible encoding
@code{future_fstrings}, which performs source manipulation. It decodes the
source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
@code{f} strings.")
(license license:expat)))
(define-public python-typed-ast
(package
(name "python-typed-ast")
(version "1.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/python/typed_ast")
(commit version)))
(sha256
(base32 "1xfcs5246c8v5600aaa8zs7ii4sxb62q6r3sb2fgazyjx97wrxd9"))
(file-name (git-file-name name version))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest"))))))
(native-inputs (list python-pytest))
(home-page "https://github.com/python/typed_ast")
(synopsis "Fork of Python @code{ast} modules with type comment support")
(description "This package provides a parser similar to the standard
@code{ast} library. Unlike @code{ast}, the parsers in @code{typed_ast}
include PEP 484 type comments and are independent of the version of Python
under which they are run. The @code{typed_ast} parsers produce the standard
Python AST (plus type comments), and are both fast and correct, as they are
based on the CPython 2.7 and 3.7 parsers.")
;; See the file "LICENSE" for the details.
(license (list license:psfl
license:asl2.0
license:expat)))) ;ast27/Parser/spark.py
(define-public python-typer
(package
(name "python-typer")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tiangolo/typer")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1knv353qhkl2imav3jfp6bgq47m8wkkqhq1dzmqg2sv8rsy7zgl7"))))
(build-system python-build-system)
(arguments
`(#:phases
,#~(modify-phases %standard-phases
;; Unfortunately, this doesn't seem to be enough to fix these two
;; tests, but we'll patch this anyway.
(add-after 'unpack 'patch-shell-reference
(lambda _
(substitute* "tests/test_completion/test_completion.py"
(("\"bash\"") (string-append "\"" (which "bash") "\""))
(("\"/bin/bash\"")
(string-append "\"" (which "bash") "\"")))))
(replace 'build
(lambda _
(invoke "flit" "build")))
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(for-each
(lambda (wheel)
(format #true wheel)
(invoke "python" "-m" "pip" "install"
wheel (string-append "--prefix=" #$output)))
(find-files "dist" "\\.whl$"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp") ; some tests need it
;; This is for completion tests
(with-output-to-file "/tmp/.bashrc"
(lambda _ (display "# dummy")))
(setenv "GUIX_PYTHONPATH"
(string-append (getcwd) ":"
(getenv "GUIX_PYTHONPATH")))
(let ((disabled-tests (list "test_show_completion"
"test_install_completion")))
(invoke "python" "-m" "pytest" "tests/"
"-k"
(string-append "not "
(string-join disabled-tests
" and not "))))))))))
(propagated-inputs
(list python-click))
(native-inputs
(list python-coverage python-flit python-pytest python-rich
python-shellingham))
(home-page "https://github.com/tiangolo/typer")
(synopsis
"Typer builds CLI based on Python type hints")
(description
"Typer is a library for building CLI applications. It's based on
Python 3.6+ type hints.")
;; MIT license
(license license:expat)))
(define-public python-typeguard
(package
(name "python-typeguard")
(version "2.13.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "typeguard" version))
(sha256
(base32 "1i5qzcyw2715h1g1hvj7fxykck2bkxyshpngjr3nfcx1lf6smv80"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "-k"
;; XXX: These fail when installed as a library:
;; https://github.com/agronholm/typeguard/issues/176
"not usefixtures and not test_cached_module")))))))
(native-inputs
(list python-mypy python-pytest python-typing-extensions))
(home-page "https://github.com/agronholm/typeguard")
(synopsis "Run-time type checker for Python")
(description
"@code{typeguard} provides run-time type checking for functions defined
with PEP 484 argument (and return) type annotations.")
(license license:expat)))
(define-public python-typing-extensions
(package
(name "python-typing-extensions")
(version "4.0.1")
(source (origin
;; The test script is missing from the PyPI archive.
(method git-fetch)
(uri (git-reference
(url "https://github.com/python/typing")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0a35fh5wk9s538x0w3dz95y0avnhd2srzyv9s1a372711n8hdl4p"))))
(build-system python-build-system)
(arguments
(list
#:tests? #f ;requires Python's test module, not available in Guix
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'enter-source-directory
(lambda _
(chdir "typing_extensions")))
;; XXX: PEP 517 manual build copied from python-isort.
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "src/test_typing_extensions.py"))))
(replace 'install
(lambda _
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl)))))))
(native-inputs (list python-pypa-build python-flit-core))
(home-page "https://github.com/python/typing/typing_extensions")
(synopsis "Experimental type hints for Python")
(description
"The typing_extensions module contains additional @code{typing} hints not
yet present in the of the @code{typing} standard library.
Included are implementations of:
@enumerate
@item ClassVar
@item ContextManager
@item Counter
@item DefaultDict
@item Deque
@item NewType
@item NoReturn
@item overload
@item Protocol
@item runtime
@item Text
@item Type
@item TYPE_CHECKING
@item AsyncGenerator
@end enumerate\n")
(license license:psfl)))
(define-public python-typing-extensions-next
(package
(inherit python-typing-extensions)
(name "python-typing-extensions")
(version "4.2.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/python/typing")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1bbry1rg7q5ppkgzdk4nwl7q1w8bbhajm4q68wb9dm6rf7hg1023"))))))
(define-public bpython
(package
(name "bpython")
(version "0.23")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bpython" version))
(sha256
(base32 "0ah5giynavyh70yc0jqgmjaajv3xg5j2y7k9i3q8mi47r2mph04z"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-failing-test
(lambda _
;; Remove failing test. FIXME: make it pass
(delete-file "bpython/test/test_args.py")
#t))
(add-after 'wrap 'add-aliases
;; for symmetry to bpython2, add symlinks bypthon3, bpdb3, etc.
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(for-each
(lambda (old new)
(symlink old (string-append out "/bin/" new)))
'("bpython" "bpython-curses" "bpython-urwid" "bpdb")
'("bpython3" "bpython3-curses" "bpython3-urwid" "bpdb3")))
#t)))))
(propagated-inputs
(list python-pygments
python-requests
python-curtsies
python-greenlet
python-six
python-cwcwidth
python-pyxdg
;; optional dependencies
python-urwid ; for bpython-urwid only
python-watchdog
python-jedi))
(native-inputs
(list python-sphinx python-mock python-tox python-wheel))
(home-page "https://bpython-interpreter.org/")
(synopsis "Fancy interface to the Python interpreter")
(description "Bpython is a fancy interface to the Python
interpreter. bpython's main features are
@enumerate
@item in-line syntax highlighting,
@item readline-like autocomplete with suggestions displayed as you type,
@item expected parameter list for any Python function,
@item \"rewind\" function to pop the last line of code from memory and
re-evaluate,
@item send the code you've entered off to a pastebin,
@item save the code you've entered to a file, and
@item auto-indentation.
@end enumerate")
(license license:expat)))
(define-public python-pyinotify
(package
(name "python-pyinotify")
(version "0.9.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "pyinotify" version))
(sha256
(base32
"1x3i9wmzw33fpkis203alygfnrkcmq9w1aydcm887jh6frfqm6cw"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ;no tests
(home-page "https://github.com/seb-m/pyinotify")
(synopsis "Python library for monitoring inotify events")
(description
"@code{pyinotify} provides a Python interface for monitoring
file system events on Linux.")
(license license:expat)))
(define-public python-more-itertools
(package
(name "python-more-itertools")
(version "8.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "more-itertools" version))
(sha256
(base32
"01x5nwm1zxmnd06cllbdd095xxc2nd25ing1a726m2kd30rbkpdi"))))
(build-system python-build-system)
(home-page "https://github.com/erikrose/more-itertools")
(synopsis "More routines for operating on iterables, beyond itertools")
(description "Python's built-in @code{itertools} module implements a
number of iterator building blocks inspired by constructs from APL, Haskell,
and SML. @code{more-itertools} includes additional building blocks for
working with iterables.")
(license license:expat)))
(define-public python-latexcodec
(package
(name "python-latexcodec")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "latexcodec" version))
(sha256
(base32 "16pynfnn8y8xp55yp06i721fccv5dlx9ba6k5bzcwq9j6wf5b8ia"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(home-page "https://readthedocs.org/projects/latexcodec/")
(synopsis "Work with LaTeX code in Python")
(description "Lexer and codec to work with LaTeX code in Python.")
(license license:expat)))
(define-public python-pybtex
(package
(name "python-pybtex")
(version "0.24.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pybtex" version))
(sha256
(base32 "0ma7sc10hk6caq5zghbk865vrlaynz7x5z630z0facqpnqssx3l1"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-latexcodec python-pyyaml python-six))
(arguments
(list
#:phases #~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(home-page "https://pybtex.org/")
(synopsis "BibTeX-compatible bibliography processor")
(description "Pybtex is a BibTeX-compatible bibliography processor written
in Python. You can simply type pybtex instead of bibtex.")
(license license:expat)))
(define-public python-onetimepass
(package
(name "python-onetimepass")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "onetimepass" version))
(sha256
(base32 "09vagxgbq78wvq4xbikmn2hpqqsa2i96kqsmphf7dqynfv0dlsd5"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
(home-page "https://github.com/tadeck/onetimepass/")
(synopsis "One-time password library")
(description "Python one-time password library for HMAC-based (HOTP) and
time-based (TOTP) passwords.")
(license license:expat)))
(define-public python-parso
(package
(name "python-parso")
(version "0.8.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "parso" version))
(sha256
(base32 "185gkxq92kqiw2h5zp1cmyn04055x0lix4hmi5c077xm1clvw1wc"))))
(native-inputs
(list python-pytest))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(home-page "https://github.com/davidhalter/parso")
(synopsis "Python Parser")
(description "Parso is a Python parser that supports error recovery and
round-trip parsing for different Python versions (in multiple Python versions).
Parso is also able to list multiple syntax errors in your Python file.")
(license license:expat)))
(define-public python-async-generator
(package
(name "python-async-generator")
(version "1.10")
(source
(origin
(method url-fetch)
(uri (pypi-uri "async_generator" version))
(sha256
(base32
"0i11f6z6lix8ixi3vsk6s76zvvpmgrw6zjrcwjm0m4hjdh83vfvf"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/python-trio/async_generator")
(synopsis "Async generators and context managers for Python 3.5+")
(description "@code{async_generator} back-ports Python 3.6's native async
generators and Python 3.7's context managers into Python 3.5.")
;; Dual licensed.
(license (list license:expat license:asl2.0))))
(define-public python-async-timeout
(package
(name "python-async-timeout")
(version "4.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "async-timeout" version))
(sha256
(base32
"05bbjz16n1a7m1s3lmcwri2x5rc7hnh6f2hdr2lbflnv1mjf2qr1"))))
(build-system python-build-system)
(home-page "https://github.com/aio-libs/async-timeout")
(synopsis "Timeout context manager for asyncio programs")
(description "@code{async-timeout} provides a timeout timeout context
manager compatible with @code{asyncio}.")
(license license:asl2.0)))
(define-public python-glob2
(package
(name "python-glob2")
(version "0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/miracle2k/python-glob2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "160nh2ay9lw2hi0rixpzb2k87r6ql56k0j2cm87lqz8xc8zbw919"))))
(build-system python-build-system)
(home-page "https://github.com/miracle2k/python-glob2/")
(synopsis "Extended Version of the python buildin glob module")
(description "This is an extended version of the Python
@url{http://docs.python.org/library/glob.html, built-in glob module} which
adds:
@itemize
@item The ability to capture the text matched by glob patterns, and return
those matches alongside the file names.
@item A recursive @code{**} globbing syntax, akin for example to the
@code{globstar} option of Bash.
@item The ability to replace the file system functions used, in order to glob
on virtual file systems.
@item Compatible with Python 2 and Python 3 (tested with 3.3).
@end itemize
Glob2 currently based on the glob code from Python 3.3.1.")
(license license:bsd-2)))
(define-public python-gipc
(package
(name "python-gipc")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "gipc" version ".zip"))
(sha256
(base32
"0pd9by719qh882hqs6xpby61sn1x5h98hms5p2p8yqnycrf1s0h2"))))
(build-system python-build-system)
(native-inputs
(list unzip))
(propagated-inputs
(list python-gevent))
(home-page "https://gehrcke.de/gipc/")
(synopsis "Child process management in the context of gevent")
(description "Usage of Python's multiprocessing package in a
gevent-powered application may raise problems. With @code{gipc},
process-based child processes can safely be created anywhere within a
gevent-powered application.")
(license license:expat)))
(define-public python-beautifultable
(package
(name "python-beautifultable")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "beautifultable" version))
(sha256
(base32
"0wwlbifcbpzy3wfv6yzsxncarsngzizmmxbn6cy5gazlcq7h4k5x"))))
(build-system python-build-system)
(propagated-inputs
(list python-wcwidth))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-setup.py
(lambda _
(substitute* "setup.py"
(("setup\\(")
"setup(\n test_suite=\"test\",")))))))
(home-page "https://github.com/pri22296/beautifultable")
(synopsis "Print ASCII tables for terminals")
(description "@code{python-beautifultable} provides a class for easily
printing tabular data in a visually appealing ASCII format to a terminal.
Features include, but are not limited to:
@itemize
@item Full customization of the look and feel of the table
@item Row and column accessors.
@item Full support for colors using ANSI sequences or any library.
@item Plenty of predefined styles and option to create custom ones.
@item Support for Unicode characters.
@item Supports streaming table when data is slow to retrieve.
@end itemize")
(license license:expat)))
(define-public python-globber
(package
(name "python-globber")
(version "0.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/asharov/globber")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"055xf7ja7zjhxis0ab5fnfsx16fsvr5fvc6mixqybanwxh8sgfjk"))))
(build-system python-build-system)
(home-page "https://github.com/asharov/globber")
(synopsis "Library for string matching with glob patterns")
(description
"Globber is a Python library for matching file names against glob patterns.
In contrast to other glob-matching libraries, it matches arbitrary strings and
doesn't require the matched names to be existing files. In addition, it
supports the globstar @code{**} operator to match an arbitrary number of
path components.")
(license license:asl2.0)))
(define-public python-git-hammer
(package
(name "python-git-hammer")
(version "0.3.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/asharov/git-hammer")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0f9xlk86ijzpdj25hr1q4wcy8k72v3w470ngwm9mpdkfj8ng84wr"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-setup.py
(lambda _
(substitute* "setup.py"
(("setup\\(")
"setup(\n test_suite=\"test\",")))))))
(propagated-inputs
(list python-beautifultable
python-dateutil
python-gitpython
python-globber
python-matplotlib
python-sqlalchemy
python-sqlalchemy-utils))
(home-page "https://github.com/asharov/git-hammer")
(synopsis "Provide statistics for git repositories")
(description
"Git Hammer is a statistics tool for projects in git repositories.
Its major feature is tracking the number of lines authored by each person for every
commit, but it also includes some other useful statistics.")
(license license:asl2.0)))
(define-public python-fusepy
(package
(name "python-fusepy")
(version "2.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fusepy" version))
(sha256
(base32
"0v5grm4zyf58hsplwsxfbihddw95lz9w8cy3rpzbyha287swgx8h"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'set-library-file-name
(lambda* (#:key inputs #:allow-other-keys)
(let ((fuse (assoc-ref inputs "fuse")))
(substitute* "fuse.py"
(("find_library\\('fuse'\\)")
(string-append "'" fuse "/lib/libfuse.so'")))
#t))))))
(propagated-inputs
(list fuse))
(home-page "https://github.com/fusepy/fusepy")
(synopsis "Simple ctypes bindings for FUSE")
(description "Python module that provides a simple interface to FUSE and
MacFUSE. The binding is created using the standard @code{ctypes} library.")
(license license:isc)))
(define-public python-fusepyng
(package
(name "python-fusepyng")
(version "1.0.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fusepyng" version))
(sha256
(base32
"17w9iw6m6zjbmnhs4ikd27pq4mb1nan6k4ahlwyz40463vw6wkwb"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-libfuse-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((fuse (assoc-ref inputs "fuse")))
(substitute* "fusepyng.py"
(("os.environ.get\\('FUSE_LIBRARY_PATH'\\)")
(string-append "\"" fuse "/lib/libfuse.so\""))))
#t)))))
(inputs
(list fuse))
(propagated-inputs
(list python-paramiko))
(home-page "https://github.com/rianhunter/fusepyng")
(synopsis "Simple ctypes bindings for FUSE")
(description "@code{fusepyng} is a Python module that provides a simple
interface to FUSE on various operating systems. It's just one file and is
implemented using @code{ctypes}.")
(license license:isc)))
(define-public python-update-checker
(package
(name "python-update-checker")
(version "0.18.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "update-checker" version))
(sha256
(base32 "04yb5a9mi45ax50m2m0ih6gdvkk1j7gfmy83dd58i1f59axlabba"))))
(build-system python-build-system)
(propagated-inputs (list python-requests))
(native-inputs (list python-black python-flake8 python-pytest))
(home-page "https://github.com/bboe/update_checker")
(synopsis "Python module that will check for package updates")
(description "This package provides a Python module that will check for
package updates.")
(license license:bsd-2)))
(define-public python-userspacefs
(package
(name "python-userspacefs")
(version "2.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "userspacefs" version))
(sha256
(base32
"0v0qkdwfc61s2yiq7d7amin93x5biypfmi9pfhf8yj1rdpx5yvsx"))))
(build-system python-build-system)
(propagated-inputs
(list python-fusepyng))
(home-page "https://github.com/rianhunter/userspacefs")
(synopsis "User-space file systems for Python")
(description
"@code{userspacefs} is a library that allows you to easily write
user-space file systems in Python.")
(license license:gpl3+)))
(define-public python-stone
(package
(name "python-stone")
(version "3.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "stone" version))
(sha256
(base32
"0xby5mpsms7b2rv8j6mvxzmzz5i9ii01brb9ylxz6kiv2i08piwv"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'change-version-requirements
(lambda _
;; Match the requirement in test/requirements.txt
(substitute* "setup.py"
(("pytest < 5") "pytest < 7"))
;; We don't care about a coverage report.
(substitute* "test/requirements.txt"
(("coverage.*") "coverage\n"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; These tests don't import currectly.
(delete-file "test/test_js_client.py")
(delete-file "test/test_tsd_types.py")
(delete-file "test/test_python_gen.py")
(invoke "pytest")))))))
(propagated-inputs
(list python-ply python-six))
(native-inputs
(list python-coverage python-mock python-pytest python-pytest-runner))
(home-page "https://github.com/dropbox/stone")
(synopsis "Official Api Spec Language for Dropbox")
(description
"Stone is an interface description language (IDL) for APIs.")
(license license:expat)))
(define-public pybind11
(package
(name "pybind11")
(version "2.8.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pybind/pybind11")
(commit (string-append "v" version))))
(sha256
(base32
"10hrkrh78sk7k0ydw1ghmp7gvpwmkby0l2s0kf2iaj9sz0vijkhs"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(native-inputs
`(("python" ,python-wrapper)
;; The following dependencies are used for tests.
("python-pytest" ,python-pytest)
("catch" ,catch2-1)
("eigen" ,eigen)))
(arguments
`(#:configure-flags
(list (string-append "-DCATCH_INCLUDE_DIR="
(assoc-ref %build-inputs "catch")
"/include/catch"))
#:phases (modify-phases %standard-phases
(add-after 'install 'install-python
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(with-directory-excursion "../source"
(setenv "PYBIND11_USE_CMAKE" "yes")
(invoke "python" "setup.py" "install"
"--single-version-externally-managed"
"--root=/"
(string-append "--prefix=" out)))))))
#:test-target "check"))
(home-page "https://github.com/pybind/pybind11/")
(synopsis "Seamless operability between C++11 and Python")
(description
"@code{pybind11} is a lightweight header-only library that exposes C++
types in Python and vice versa, mainly to create Python bindings of existing
C++ code. Its goals and syntax are similar to the @code{Boost.Python}
library: to minimize boilerplate code in traditional extension modules by
inferring type information using compile-time introspection.")
(license license:bsd-3)))
;; This is needed for python-vaex-core.
(define-public pybind11-2.3
(package
(inherit pybind11)
(name "pybind11")
(version "2.3.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pybind/pybind11")
(commit (string-append "v" version))))
(sha256
(base32
"11b6dniri8m05spfd2a19irz82shf4sdca73566bniggrf3zclnf"))
(file-name (git-file-name name version))))
(arguments
(substitute-keyword-arguments (package-arguments pybind11)
((#:tests? tests? #false)
#false)))))
(define-public python-pooch
(package
(name "python-pooch")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pooch" version))
(sha256
(base32 "1618adsg9r8fsv422sv35z1i723q3a1iir5v7dv2sklh4pl4im1h"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;requires online data
(propagated-inputs
(list python-appdirs python-packaging python-requests))
(home-page "https://github.com/fatiando/pooch")
(synopsis "Manage your Python library's sample data files")
(description
"Pooch manages your Python library's sample data files: it automatically
downloads and stores them in a local directory, with support for versioning
and corruption checks.")
(license license:bsd-3)))
(define-public python-fasteners
(package
(name "python-fasteners")
(version "0.15")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fasteners" version))
(sha256
(base32
"1vzmz1xh38b84dv0f4hlp7arwmx8wjlih6lf964bpy8dnyk6s5rs"))))
(build-system python-build-system)
(propagated-inputs
(list python-monotonic python-six))
(native-inputs
(list python-testtools))
(home-page "https://github.com/harlowja/fasteners")
(synopsis "Python package that provides useful locks")
(description
"This package provides a Python program that provides following locks:
@itemize
@item Locking decorator
@item Reader-writer locks
@item Inter-process locks
@item Generic helpers
@end itemize\n")
(license license:asl2.0)))
(define-public python-requests-file
(package
(name "python-requests-file")
(version "1.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "requests-file" version))
(sha256
(base32 "13kx4k83i9zcv20h0fnmawwwdzhcmw1z97mqib1h379qsc445mq7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "tests/test_requests_file.py")))))))
(propagated-inputs
(list python-requests python-six))
(home-page "https://github.com/dashea/requests-file")
(synopsis "File transport adapter for Requests")
(description
"Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via @code{file://} URLs.")
(license license:asl2.0)))
(define-public python-identify
(package
(name "python-identify")
(version "1.4.25")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/chriskuehl/identify")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; system-error "utime" "~A" ("No such file or directory")
(delete 'ensure-no-mtimes-pre-1980)
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-coverage python-pytest))
(propagated-inputs
(list python-editdistance))
(home-page "https://github.com/chriskuehl/identify")
(synopsis "File identification library for Python")
(description
"@code{identify} is a file identification library for Python. Given
a file (or some information about a file), return a set of standardized tags
identifying what the file is.")
(license license:expat)))
(define-public python-tldextract
(package
(name "python-tldextract")
(version "3.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tldextract" version))
(sha256
(base32
"1wac4yvcpgqjvls770mfx165amvy7gr00nnd2w24bqqwyamj9kdd"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-responses python-setuptools-scm))
(propagated-inputs
(list python-filelock python-idna python-requests python-requests-file))
(home-page
"https://github.com/john-kurkowski/tldextract")
(synopsis
"Separate the TLD from the registered domain and subdomains of a URL")
(description
"TLDExtract accurately separates the TLD from the registered domain and
subdomains of a URL, using the Public Suffix List. By default, this includes
the public ICANN TLDs and their exceptions. It can optionally support the
Public Suffix List's private domains as well.")
(license license:bsd-3)))
(define-public python-tldr
(package
(name "python-tldr")
(version "3.1.0")
(source
(origin
;; There's no test in PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/tldr-pages/tldr-python-client")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1hxmprqg8c4cvs19n7f80f3y7jj74i8sc2dmq2gdjmsdrb54bbzc"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(add-after 'build 'build-doc
(lambda _
(invoke "make" "-C" "docs")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; This test fails. It tries to open a network socket.
(invoke "pytest" "-vv" "-k" "not test_error_message")))))))
(native-inputs
(list python-pytest python-pytest-runner python-sphinx-argparse))
(inputs
(list python-argcomplete python-colorama python-termcolor python-shtab))
(home-page "https://github.com/tldr-pages/tldr-python-client")
(synopsis "Python command-line client for tldr pages")
(description "This package provides the @code{tldr} command allowing users
to view @code{tldr} pages from a shell. The @code{tldr} pages are a community
effort to simplify the man pages with practical examples.")
(license license:expat))) ; MIT license
(define-public python-nodeenv
(package
(name "python-nodeenv")
(version "1.4.0")
(source
(origin
;; There's no tarball in PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/ekalinin/nodeenv")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0y443icx0w7jlzmxmmcm4q8dqfiwgafbb9cp8jpm68mbqxbz40a7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
;; This test fails. It tries to open a network socket.
(invoke "pytest" "-vv" "-k" "not test_smoke"))))))
(native-inputs
(list python-coverage python-mock python-pytest))
(home-page "https://ekalinin.github.io/nodeenv/")
(synopsis "Create isolated node.js environments")
(description
"Nodeenv (node.js virtual environment) is a tool to create isolated
node.js environments. It creates an environment that has its own installation
directories, that doesn't share libraries with other node.js virtual
environments.")
(license license:bsd-3)))
(define-public python-pynamecheap
(package
(name "python-pynamecheap")
(version "0.0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyNamecheap" version))
(sha256
(base32
"0wkbwz208j8nfrsmzmclvxg22ymknn0mlz76wbdza9k2bx2zja6l"))))
(build-system python-build-system)
(propagated-inputs
(list python-requests))
(home-page
"https://github.com/Bemmu/PyNamecheap")
(synopsis
"Namecheap API client in Python")
(description
"PyNamecheap is a Namecheap API client in Python.")
(license license:expat)))
(define-public python-dns-lexicon
(package
(name "python-dns-lexicon")
(version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dns-lexicon" version))
(sha256
(base32
"0jdn3ns71bsybr7njgsqr9xlxsqh7zh6phn4ld0liazqdn2l5f6m"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;requires internet access
(propagated-inputs
(list python-future python-pynamecheap python-requests
python-tldextract python-urllib3))
(home-page "https://github.com/AnalogJ/lexicon")
(synopsis
"Manipulate DNS records on various DNS providers")
(description
"Lexicon provides a way to manipulate DNS records on multiple DNS
providers in a standardized way. It has a CLI but it can also be used as a
Python library. It was designed to be used in automation, specifically with
Let's Encrypt.")
(license license:expat)))
(define-public python-cfgv
(package
(name "python-cfgv")
(version "3.3.1")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/asottile/cfgv")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pci97cmn3v45sfch9s3lshidrl0309ls9byidic0l8drkwnkwcj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/asottile/cfgv")
(synopsis "Configuration validation library")
(description
"This library helps to validate configuration files and produce human
readable error messages.")
(license license:expat)))
(define-public python-commandlines
(package
(name "python-commandlines")
(version "0.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "commandlines" version))
(sha256
(base32
"0r7xcr0knv02p4mswa2bng61nn8nbhhrs6kvdnb9bb3hhjvm1dl6"))))
(build-system python-build-system)
(home-page "https://github.com/chrissimpkins/commandlines")
(synopsis "Command line argument to object parsing library")
(description
"@code{Commandlines} is a Python library for command line application
development that supports command line argument parsing, command string
validation testing and application logic.")
(license license:expat)))
;; Make sure to upgrade python-llvmlite in (gnu packages llvm) together with
;; python-numba. They have a very unflexible relationship.
(define-public python-numba
(package
(name "python-numba")
(version "0.55.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "numba" version))
(sha256
(base32
"18rf8i32m1045zxglvicpgldvzmqdxqvs3dhjd7wilb64sd0ds83"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-proprietary-features
(lambda _
(setenv "NUMBA_DISABLE_HSA" "1")
(setenv "NUMBA_DISABLE_CUDA" "1")))
(add-after 'unpack 'disable-failing-tests
(lambda _
;; This one test fails because a deprecation warning is printed.
(substitute* "numba/tests/test_import.py"
(("def test_no_accidental_warnings")
"def disabled_test_no_accidental_warnings"))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
;; Something is wrong with the PYTHONPATH when running the
;; tests from the build directory, as it complains about not being
;; able to import certain modules.
(with-directory-excursion "/tmp"
(setenv "HOME" (getcwd))
(invoke "python3" "-m" "numba.runtests" "-v" "-m"))))))))
(propagated-inputs
(list python-llvmlite python-numpy python-singledispatch))
(native-inputs ;for tests
(list python-jinja2 python-pygments))
(home-page "https://numba.pydata.org")
(synopsis "Compile Python code using LLVM")
(description "Numba gives you the power to speed up your applications with
high performance functions written directly in Python. With a few
annotations, array-oriented and math-heavy Python code can be just-in-time
compiled to native machine instructions, similar in performance to C, C++ and
Fortran, without having to switch languages or Python interpreters.
Numba works by generating optimized machine code using the LLVM compiler
infrastructure at import time, runtime, or statically (using the included pycc
tool).")
(license license:bsd-3)))
(define-public python-numcodecs
(package
(name "python-numcodecs")
(version "0.6.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "numcodecs" version))
(sha256
(base32
"0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "c-blosc")
(for-each delete-file '("numcodecs/blosc.c"
"numcodecs/compat_ext.c"
"numcodecs/lz4.c"
"numcodecs/vlen.c"
"numcodecs/zstd.c"))))))
(build-system python-build-system)
(arguments
`(#:tests? #false ; TODO: unclear why numcodecs.* are not found
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-avx2
(lambda _
(setenv "DISABLE_NUMCODECS_AVX2" "1")))
(add-after 'unpack 'unbundle
(lambda _
(substitute* "setup.py"
(("sources=sources \\+ blosc_sources,")
"sources=sources,")
(("extra_compile_args=extra_compile_args")
"extra_compile_args=list(base_compile_args)")
(("'numcodecs.zstd',")
"'numcodecs.zstd', libraries=['zstd'], ")
(("'numcodecs.lz4',")
"'numcodecs.lz4', libraries=['lz4'], ")
(("'numcodecs.blosc',")
"'numcodecs.blosc', libraries=['blosc'], "))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv")))))))
(inputs
(list c-blosc lz4 zlib
`(,zstd "lib")))
(propagated-inputs
(list python-numpy python-msgpack))
(native-inputs
(list python-cython python-pytest python-setuptools-scm))
(home-page "https://github.com/zarr-developers/numcodecs")
(synopsis "Buffer compression and transformation codecs")
(description
"This Python package provides buffer compression and transformation
codecs for use in data storage and communication applications.")
(license license:expat)))
(define-public python-asciitree
(package
(name "python-asciitree")
(version "0.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "asciitree" version))
(sha256
(base32
"0vhgri2m2xlnibhz4xwn4hpbc7xacisxjqrk6k5kyppq96vbk92a"))))
(build-system python-build-system)
(home-page "https://github.com/mbr/asciitree")
(synopsis "Draws ASCII trees")
(description "This package draws tree structures using characters.")
(license license:expat)))
(define-public python-zarr
(package
(name "python-zarr")
(version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zarr" version))
(sha256
(base32
"026n3sjzjv2gmwx6y72b8ij0hk42bc8zdbvfj5gdqzd4i6wj3ajk"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-service-tests
(lambda _
(setenv "ZARR_TEST_ABS" "0")
(setenv "ZARR_TEST_MONGO" "0")
(setenv "ZARR_TEST_REDIS" "0")
#t))
(replace 'check
(lambda _
(invoke "pytest" "-vv" "-k" "not lmdb")
#t)))))
(propagated-inputs
(list python-asciitree python-fasteners python-numcodecs
python-numpy))
(native-inputs
(list python-pytest python-setuptools-scm))
(home-page "https://github.com/zarr-developers/zarr-python")
(synopsis "Chunked, compressed, N-dimensional arrays for Python")
(description
"This package provides an implementation of chunked, compressed,
N-dimensional arrays for Python.")
(license license:expat)))
(define-public python-anndata
(package
(name "python-anndata")
(version "0.8.0")
(source
(origin
;; The tarball from PyPi doesn't include tests.
(method git-fetch)
(uri (git-reference
(url "https://github.com/theislab/anndata")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0v7npqrg1rdm8jzw22a45c0mqrmsv05r3k88i3lhzi0pzzxca1i1"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(replace 'build
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
(substitute* "anndata/_metadata.py"
(("__version__ =.*")
(string-append "__version__ = \"" ,version "\"\n")))
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "flit" "build")))
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(let ((out (assoc-ref outputs "out")))
(for-each (lambda (wheel)
(format #true wheel)
(invoke "python" "-m" "pip" "install"
wheel (string-append "--prefix=" out)))
(find-files "dist" "\\.whl$"))))))))
(propagated-inputs
(list python-h5py
python-importlib-metadata
python-natsort
python-numcodecs
python-packaging
python-pandas
python-scipy
python-zarr))
(native-inputs
(list python-joblib python-pytest python-toml python-flit
python-setuptools-scm))
(home-page "https://github.com/theislab/anndata")
(synopsis "Annotated data for data analysis pipelines")
(description "Anndata is a package for simple (functional) high-level APIs
for data analysis pipelines. In this context, it provides an efficient,
scalable way of keeping track of data together with learned annotations and
reduces the code overhead typically encountered when using a mostly
object-oriented library such as @code{scikit-learn}.")
(license license:bsd-3)))
(define-public python-dill
(package
(name "python-dill")
(version "0.3.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dill" version))
(sha256
(base32 "11lc40x37cx2i8qqbc5qklifm65dyjl6prrqsycybvpixzrl2pnp"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(with-directory-excursion "/tmp"
(invoke "nosetests" "-v"))
#t)))))
(native-inputs
(list python-nose))
(home-page "https://pypi.org/project/dill/")
(synopsis "Serialize all of Python")
(description "Dill extends Python's @code{pickle} module for serializing
and de-serializing Python objects to the majority of the built-in Python
types. Dill provides the user the same interface as the @code{pickle} module,
and also includes some additional features. In addition to pickling Python
objects, @code{dill} provides the ability to save the state of an interpreter
session in a single command. Hence, it would be feasible to save a
interpreter session, close the interpreter, ship the pickled file to another
computer, open a new interpreter, unpickle the session and thus continue from
the saved state of the original interpreter session.")
(license license:bsd-3)))
(define-public python-multiprocess
(package
(name "python-multiprocess")
(version "0.70.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "multiprocess" version))
(sha256
(base32
"1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-broken-tests
(lambda _
;; This test is broken as there is no keyboard interrupt.
(substitute* "py3.7/multiprocess/tests/__init__.py"
(("^(.*)def test_wait_result"
line indent)
(string-append indent
"@unittest.skip(\"Disabled by Guix\")\n"
line)))
#t))
;; Tests must be run after installation.
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "multiprocess.tests")
#t)))))
(propagated-inputs
(list python-dill))
(home-page "https://pypi.org/project/multiprocess/")
(synopsis "Multiprocessing and multithreading in Python")
(description
"This package is a fork of the multiprocessing Python package, a package
which supports the spawning of processes using the API of the standard
library's @code{threading} module.")
(license license:bsd-3)))
(define-public python-multiprocessing-on-dill
(package
(name "python-multiprocessing-on-dill")
(version "3.5.0a4")
(source (origin
(method url-fetch)
(uri (pypi-uri "multiprocessing_on_dill" version))
(sha256
(base32
"1rs5a3hx1fcpfsxxkl5kx6g06c82wqjqgdqyny5l1ggl1wq0rmfn"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(propagated-inputs (list python-dill))
(native-inputs (list python-check-manifest python-pytest python-wheel))
(home-page "https://github.com/sixty-north/multiprocessing_on_dill")
(synopsis "Multiprocessing using dill instead of pickle")
(description
"This package provides a friendly fork of multiprocessing which uses dill
instead of pickle.")
(license license:psfl)))
(define-public python-toolrack
(package
(name "python-toolrack")
(version "3.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/albertodonato/toolrack")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0ych11b7nchnkhqgf7dgivbvn2lzafjsi7nhb1an5zjjyns39gpx"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-/bin/sh
(lambda _
(substitute* "toolrack/aio/tests/test_process.py"
(("/bin/sh")
(which "sh")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "--pyargs" "toolrack"
"-k"
(string-append
;; These tests fail for unknown reason comparing the
;; expected output of shell scripts.
"not test_parse_stderr "
"and not test_parse_no_ending_newline "
"and not test_parse_stdout"))))))))
(native-inputs (list python-pytest python-pytest-asyncio
python-pytest-mock))
(home-page "https://github.com/albertodonato/toolrack")
(synopsis "Collection of Python utility functions and classes")
(description "This package provides a collection of miscellaneous utility
functions and classes.")
(license license:lgpl3+)))
(define-public python-toolz
(package
(name "python-toolz")
(version "0.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "toolz" version))
(sha256
(base32
"0cxwlh8dz8gq0l0bzchjnqqwhdp261nfd958ppqm518k2mg2scbb"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "--doctest-modules"
"--pyargs" "toolz")))))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/pytoolz/toolz/")
(synopsis "List processing tools and functional utilities")
(description
"This package provides a set of utility functions for iterators,
functions, and dictionaries.")
(license license:bsd-3)))
(define-public python-cytoolz
(package
(name "python-cytoolz")
(version "0.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cytoolz" version))
(sha256
(base32
"1d12mgaippxxhn24w2hj0my3aqkx80fks5g4wzfdsvl0acqnc8za"))
(modules '((guix build utils)))
(snippet
'(for-each delete-file (find-files "cytoolz" "\\.c$")))))
(build-system python-build-system)
;; FIXME: tests fail with "module 'cytoolz.curried' has no attribute
;; 'exceptions'"
(arguments '(#:tests? #f))
(propagated-inputs
(list python-toolz))
(native-inputs
(list python-cython))
(home-page "https://github.com/pytoolz/cytoolz")
(synopsis "High performance functional utilities")
(description
"The cytoolz package implements the same API as provided by toolz. The
main differences are that @code{cytoolz} is faster and cytoolz offers a C API
that is accessible to other projects developed in Cython.")
(license license:bsd-3)))
(define-public python-sortedcollections
(package
(name "python-sortedcollections")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sortedcollections" version))
(sha256
(base32
"1kfabpnjyjm5ml2zspry9jy3xq49aybchgaa4ahic2jqdjfn1sfq"))))
(build-system python-build-system)
(propagated-inputs
(list python-sortedcontainers))
(arguments '(#:tests? #f)) ; Tests not included in release tarball.
(home-page "http://www.grantjenks.com/docs/sortedcollections/")
(synopsis "Python Sorted Collections")
(description "Sorted Collections is a Python sorted collections library.")
(license license:asl2.0)))
(define-public python-sortedcontainers
(package
(name "python-sortedcontainers")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sortedcontainers" version))
(sha256
(base32
"0fm0w5id2yhqld95hg2m636vjgkz377rvgdfqaxc25vbylr9lklp"))))
(build-system python-build-system)
(arguments
;; FIXME: Tests require many extra dependencies, and would introduce
;; a circular dependency on hypothesis, which uses this package.
'(#:tests? #f))
(propagated-inputs
`(("python-appdirs" ,python-appdirs)
("python-distlib" ,python-distlib)
("python-filelock" ,python-filelock)
("python-six" ,python-six-bootstrap)))
(home-page "http://www.grantjenks.com/docs/sortedcontainers/")
(synopsis "Sorted List, Sorted Dict, Sorted Set")
(description
"This package provides a sorted collections library, written in
pure-Python.")
(license license:asl2.0)))
(define python-cloudpickle-testpkg
(package
(name "python-cloudpickle-testpkg")
(version "1.6.0")
(source
(origin
;; Archive on pypi does not include test infrastructure.
(method git-fetch)
(uri (git-reference
(url "https://github.com/cloudpipe/cloudpickle")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1584d21d4rcpryn8yfz0pjnjprk4zm367m0razdcz8cjbsh0dxp6"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'chdir
(lambda _ (chdir "tests/cloudpickle_testpkg"))))))
(home-page "https://github.com/cloudpipe/cloudpickle")
(synopsis "Extended pickling support for Python objects")
(description
"Cloudpickle makes it possible to serialize Python constructs not
supported by the default pickle module from the Python standard library. It
is especially useful for cluster computing where Python expressions are
shipped over the network to execute on remote hosts, possibly close to the
data.")
(license license:bsd-3)))
(define-public python-cloudpickle
(package
(inherit python-cloudpickle-testpkg)
(name "python-cloudpickle")
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-s" "-vv")
(format #t "test suite not run~%")))))))
(native-inputs
(list ;; For tests.
python-cloudpickle-testpkg python-psutil python-pytest
python-tornado-6))
(home-page "https://github.com/cloudpipe/cloudpickle")
(synopsis "Extended pickling support for Python objects")
(description
"Cloudpickle makes it possible to serialize Python constructs not
supported by the default pickle module from the Python standard library. It
is especially useful for cluster computing where Python expressions are
shipped over the network to execute on remote hosts, possibly close to the
data.")
(license license:bsd-3)))
(define-public python-locket
(package
(name "python-locket")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "locket" version))
(sha256
(base32
"0cm6290zm3ba62n2x2piy3s8d41hrmffda2nw18ggfwb582lq3aw"))))
(build-system python-build-system)
(home-page "https://github.com/mwilliamson/locket.py")
(synopsis "File-based locks for Python")
(description
"Locket implements a lock that can be used by multiple processes provided
they use the same path.")
(license license:bsd-2)))
(define-public python-blosc
(package
(name "python-blosc")
(version "1.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "blosc" version))
(sha256
(base32
"1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
(build-system python-build-system)
;; FIXME: all tests pass, but then this error is printed:
;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
(arguments '(#:tests? #f))
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/blosc/python-blosc")
(synopsis "Python wrapper for the Blosc data compressor library")
(description "Blosc is a high performance compressor optimized for binary
data. It has been designed to transmit data to the processor cache faster
than the traditional, non-compressed, direct memory fetch approach via a
@code{memcpy()} system call.
Blosc works well for compressing numerical arrays that contains data with
relatively low entropy, like sparse data, time series, grids with
regular-spaced values, etc.
This Python package wraps the Blosc library.")
(license license:bsd-3)))
(define-public python-partd
(package
(name "python-partd")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "partd" version))
(sha256
(base32
"1sy3vdfyyx3bc5590zb7gwpsmimqz8m992x9hsydq8nmhixqjrxa"))))
(build-system python-build-system)
(propagated-inputs
(list python-blosc
python-locket
python-numpy
python-pandas
python-pyzmq
python-toolz))
(home-page "https://github.com/dask/partd/")
(synopsis "Appendable key-value storage")
(description "Partd stores key-value pairs. Values are raw bytes. We
append on old values. Partd excels at shuffling operations.")
(license license:bsd-3)))
(define-public python-fsspec
(package
(name "python-fsspec")
(version "2022.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fsspec" version))
(sha256
(base32
"1d43qiz8g395042a52yswz6j7q41gvrv3k53wvxn1rs4bk3mjm3s"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; there are none
(home-page "https://github.com/intake/filesystem_spec")
(synopsis "File-system specification")
(description "The purpose of this package is to produce a template or
specification for a file-system interface, that specific implementations
should follow, so that applications making use of them can rely on a common
behavior and not have to worry about the specific internal implementation
decisions with any given backend.")
(license license:bsd-3)))
;; Note: Remember to update python-distributed when updating dask.
(define-public python-dask
(package
(name "python-dask")
(version "2022.05.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dask/dask/")
(commit "8db1597c9745543df3129399bead5fbc95a54571")))
(file-name (git-file-name name version))
(sha256
(base32 "1xfk3wml972z502w5ii5mn03ls3rg5p4hqgl0hkicgpmzlyz9kph"))
(snippet
;; Delete generated copy of python-versioneer. We recreate it below.
'(delete-file "versioneer.py"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'versioneer
(lambda _
(invoke "versioneer" "install")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-cloudpickle
python-fsspec
python-numpy
python-packaging
python-pandas
python-partd
python-toolz
python-pyyaml))
(native-inputs
(list python-pytest python-pytest-runner python-pytest-rerunfailures
python-versioneer))
(home-page "https://github.com/dask/dask/")
(synopsis "Parallel computing with task scheduling")
(description
"Dask is a flexible parallel computing library for analytics. It
consists of two components: dynamic task scheduling optimized for computation,
and large data collections like parallel arrays, dataframes, and lists that
extend common interfaces like NumPy, Pandas, or Python iterators to
larger-than-memory or distributed environments. These parallel collections
run on top of the dynamic task schedulers.")
(license license:bsd-3)))
(define-public python-ilinkedlist
(package
(name "python-ilinkedlist")
(version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ilinkedlist" version))
(sha256
(base32
"0nrw4sr3afldrp7073hvc0rgdz282s0l819jdmj1i6nn05v33h0l"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(inputs (list python))
(home-page "https://github.com/luther9/ilinkedlist-py")
(synopsis "Immutable linked list library")
(description
"This is a implementation of immutable linked lists for Python. It
contains @code{nil} (the empty linked list) and a @code{Pair} class for nodes.
Since a linked list is treated as immutable, it is hashable, and its length
can be retrieved in constant time. Some of the terminology is inspired by
LISP. It is possible to create an improper list by creating a @code{Pair}
with a non-list @code{cdr}.")
(license license:gpl3+)))
(define-public python-readlike
(package
(name "python-readlike")
(version "0.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "readlike" version))
(sha256
(base32 "027w8fvi50ksl57q0a7kb5zvmq8jxaawnviib1jdqw0p3igvm1j4"))))
(build-system python-build-system)
(home-page "https://github.com/jangler/readlike")
(synopsis "GNU Readline-like line editing module")
(description
"This Python module provides line editing functions similar to the default
Emacs-style ones of GNU Readline. Unlike the Python standard library's
@code{readline} package, this one allows access to those capabilities in settings
outside of a standard command-line interface. It is especially well-suited to
interfacing with Urwid, due to a shared syntax for describing key inputs.
Currently, all stateless Readline commands are implemented. Yanking and history
are not supported.")
(license license:expat)))
(define-public python-reparser
(package
(name "python-reparser")
(version "1.4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ReParser" version))
(sha256
(base32 "0nniqb69xr0fv7ydlmrr877wyyjb61nlayka7xr08vlxl9caz776"))))
(build-system python-build-system)
(home-page "https://github.com/xmikos/reparser")
(synopsis "Simple lexer/parser for inline markup based on regular expressions")
(description
"This Python library provides a simple lexer/parser for inline markup based
on regular expressions.")
(license license:expat)))
(define-public python-retrying
(package
(name "python-retrying")
(version "1.3.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rholder/retrying")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1kqipkbdaw5s1xg0gi29awm03vp1x8dz24pjidgxagvkvrjpzhi7"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(home-page "https://github.com/rholder/retrying")
(synopsis "Library for adding retry behavior")
(description "Retrying is a general-purpose retrying library to simplify
the task of adding retry behavior to just about anything.
Features:
@itemize
@item Generic Decorator API.
@item Specify stop condition (i.e. limit by number of attempts).
@item Specify wait condition (i.e. exponential backoff sleeping between attempts).
@item Customize retrying on Exceptions.
@item Customize retrying on expected returned result.
@end itemize")
(license license:asl2.0)))
(define-public python-pre-commit
(package
(name "python-pre-commit")
(version "2.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pre_commit" version))
(sha256
(base32 "1ycf6wpxrhxhdzz0vpryhbdxlwik5khgcvp3hxwvfr447a6k84zl"))))
(build-system python-build-system)
(arguments
;; Tests fail with "AttributeError: module 'pre_commit.resources' has no
;; attribute 'empty_template_setup'".
`(#:tests? #false))
(propagated-inputs
(list python-cfgv
python-identify
python-importlib-metadata
python-nodeenv
python-pyyaml
python-toml
python-virtualenv))
(home-page "https://github.com/pre-commit/pre-commit")
(synopsis "Framework for managing multi-language pre-commit hooks")
(description
"This package provides a framework for managing and maintaining
multi-language pre-commit hooks.")
(license license:expat)))
(define-public python-precis-i18n
(package
(name "python-precis-i18n")
(version "1.0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "precis_i18n" version))
(sha256
(base32
"1qfb78zpx565vqkg0xhx75pna9sc35m370vpcz82982c8ix3ypyz"))))
(build-system python-build-system)
(home-page "https://github.com/byllyfish/precis_i18n")
(synopsis "Implementation of the PRECIS framework")
(description
"This module implements the PRECIS Framework as described in RFC 8264,
RFC 8265 and RFC 8266.")
(license license:expat)))
(define-public python-absl-py
(package
(name "python-absl-py")
(version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "absl-py" version))
(sha256
(base32
"1mp9lk0b2qa37b7y6ak4lvf6ifw2ylyy6bkf9ik77md3j4xrwlc7"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(home-page "https://github.com/abseil/abseil-py")
(synopsis "Abseil Python common libraries")
(description
"This package provides the Abseil Python Common Libraries, a collection
of Python libraries for building Python applications.")
(license license:asl2.0)))
(define-public python-astor
(package
(name "python-astor")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "astor" version))
(sha256
(base32
"0ppscdzzvxpznclkmhhj53iz314x3pfv4yc7c6gwxqgljgdgyvka"))))
(build-system python-build-system)
;; FIXME: There are two errors and two test failures.
(arguments `(#:tests? #f))
(home-page "https://github.com/berkerpeksag/astor")
(synopsis "Read and write Python ASTs")
(description "Astor is designed to allow easy manipulation of Python
source via the Abstract Syntax Tree.")
(license license:bsd-3)))
(define-public python-astunparse
(package
(name "python-astunparse")
(version "1.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "astunparse" version))
(sha256
(base32 "0wh8jjvwafxc7rvbyb13cdwndkicm7cry1bd8p1q9l7has23mnas"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; there are none
(propagated-inputs
(list python-six python-wheel))
(home-page "https://github.com/simonpercivall/astunparse")
(synopsis "AST unparser for Python")
(description "This package provides an AST unparser for Python. It is a
factored out version of @code{unparse} found in the Python source
distribution.")
(license license:bsd-3)))
(define-public python-gast
(package
(name "python-gast")
(version "0.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "gast" version))
(sha256
(base32 "1sidaczriw54pfkj3523y9j9q2harrczc1qqgnfaylz641ca5gng"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-astunparse))
(home-page "https://github.com/serge-sans-paille/gast/")
(synopsis "Generic Python AST that abstracts the underlying Python version")
(description
"GAST provides a compatibility layer between the AST of various Python
versions, as produced by @code{ast.parse} from the standard @code{ast}
module.")
(license license:bsd-3)))
(define-public python-wikidata
(package
(name "python-wikidata")
(version "0.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Wikidata" version))
(sha256
(base32
"08nlnydddfp1jj0cdmshvld1irzngbp3dij928wqsg9ziklm6mw9"))))
(build-system python-build-system)
(propagated-inputs
(list python-babel))
(home-page "https://github.com/dahlia/wikidata")
(synopsis "Wikidata client library")
(description
"This package provides a Python interface to
@url{https://www.wikidata.org/, Wikidata}.")
(properties '((upstream-name . "Wikidata")))
(license license:gpl3+)))
(define-public python-doctest-ignore-unicode
(package
(name "python-doctest-ignore-unicode")
(version "0.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "doctest-ignore-unicode" version))
(sha256
(base32
"1m9aa4qnyj21lbq4sbvmv1vcz7zksss4rz37ddf2hxv4hk8b547w"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/gnublade/doctest-ignore-unicode")
(synopsis "Ignore Unicode literal prefixes in doctests")
(description
"This package adds support for a flag to ignore Unicode literal prefixes
in doctests.")
(license license:asl2.0)))
(define-public python-attr
(package
(name "python-attr")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "attr" version))
(sha256
(base32
"0pbpskvxp5hzdvcaf766ljwpckshir8sf7z6jqji6zyib20594ch"))))
(build-system python-build-system)
(home-page "https://github.com/denis-ryzhkov/attr")
(synopsis "Decorator for attributes of target function or class")
(description "Simple decorator to set attributes of target function or
class in a @acronym{DRY, Don't Repeat Yourself} way.")
(license license:expat)))
(define-public python-construct
(package
(name "python-construct")
(version "2.10.56")
(source
(origin
(method url-fetch)
(uri (pypi-uri "construct" version))
(sha256
(base32
"0q86jjzsvy835h3c8pjj4619vbp7ihfg8njmyw86ym4qrpni7flp"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; No tests exist.
(propagated-inputs
(list python-extras python-arrow python-numpy python-ruamel.yaml))
(home-page "https://construct.readthedocs.io")
(synopsis "Declarative and symmetrical parser and builder for binary data")
(description
"This package provides both simple, atomic constructs (such as
integers of various sizes), as well as composite ones which allow you
form hierarchical and sequential structures of increasing complexity.
It features bit and byte granularity, easy debugging and testing, an
easy-to-extend subclass system, and lots of primitive constructs to
make your work easier.")
(license license:expat)))
(define-public python-outcome
(package
(name "python-outcome")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "outcome" version))
(sha256
(base32 "0vxn04vspmlkkyijjkjnsc46f93ki8g62hr7ag10zpd7ic324y7w"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv"))))))
(native-inputs
(list python-pytest python-pytest-cov python-pytest-asyncio))
(propagated-inputs
(list python-async-generator python-attrs))
(home-page "https://github.com/python-trio/outcome")
(synopsis "Capture the outcome of Python function calls")
(description
"Capture the outcome of Python function calls. Extracted from the Trio
project.")
;; Either license applies.
(license (list license:expat license:asl2.0))))
(define-public python-trio
(package
(name "python-trio")
(version "0.20.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "trio" version))
(sha256
(base32 "0w30cwmdwfa8zq2agqv3h62jzwwsk7ms8f683ag8f3jx279m42k7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-sleep
(lambda _
(substitute* "trio/tests/test_subprocess.py"
(("/bin/sleep")
(which "sleep")))))
(add-before 'check 'change-home
(lambda _
;; Tests require a writable home.
(setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-n" (number->string (parallel-job-count))
"-k"
(string-append
;; This test times out.
"not test_ki_protection_works"
;; Assertion errors.
" and not test_guest_mode_ki"
" and not test_run_in_trio_thread_ki"
" and not test_simple_cancel_scope_usage_doesnt_create_cyclic_garbage"
" and not test_nursery_cancel_doesnt_create_cyclic_garbage"
" and not test_cancel_scope_exit_doesnt_create_cyclic_garbage"
" and not test_locals_destroyed_promptly_on_cancel"
" and not test_ipython_exc_handler"
" and not test_for_leaking_fds"
;; These try to raise KeyboardInterrupt which does not work
;; in the build environment.
" and not test_ki_self"
" and not test_ki_wakes_us_up"
;; Failure in name resolution.
" and not test_getnameinfo"
" and not test_SocketType_resolve"
;; OSError: protocol not found.
" and not test_getprotobyname"
;; EOFError: Ran out of input.
" and not test_static_tool_sees_all_symbols"))))))))
(native-inputs
(list python-astor
python-ipython
python-jedi
python-pylint
python-pyopenssl
python-pytest
python-pytest-xdist
python-pytest-cov
python-trustme))
(propagated-inputs
(list python-async-generator
python-attrs
python-idna
python-outcome
python-sniffio
python-sortedcontainers))
(home-page "https://github.com/python-trio/trio")
(synopsis "Friendly Python library for async concurrency and I/O")
(description
"Trio strives to be a production-quality, async/await-native I/O library
for Python. Like all async libraries, its main purpose is to help you write
programs that do multiple things at the same time with parallelized I/O.")
;; Either license applies.
(license (list license:expat license:asl2.0))))
(define-public python-trio-typing
(package
(name "python-trio-typing")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "trio-typing" version))
(sha256
(base32 "1yvlj4vf3wyvp16dw6vyfm4i2idm8lvdc3fvjhi6mhm62zv7s07j"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(native-inputs
(list python-attrs python-pytest))
(propagated-inputs
(list python-mypy python-mypy-extensions python-trio
python-typing-extensions))
(home-page "https://github.com/python-trio/trio-typing")
(synopsis "Static type checking support for Trio and related projects")
(description
"This package provides:
@itemize
@item PEP 561 typing stubs packages for the Trio project packages:
@itemize
@item trio (@code{trio-stubs})
@item outcome (@code{outcome-stubs})
@item async_generator (@code{async_generator-stubs})
@end itemize
@item A package @code{trio_typing} containing types that Trio programs often
want to refer to (@code{AsyncGenerator[Y, S]} and @code{TaskStatus[T])} and
a mypy plugin that smooths over some limitations in the basic type hints.
@end itemize")
;; Either license applies.
(license (list license:expat license:asl2.0))))
(define-public python-trio-websocket
(package
(name "python-trio-websocket")
(version "0.9.2")
(source
(origin
(method git-fetch) ;no tests in pypi archive
(uri (git-reference
(url "https://github.com/HyperionGray/trio-websocket")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1yk2ak991kbl30xg8ldpggack1lwkizd7s5cpr28ir34z8iyjnpi"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest python-pytest-trio python-trustme))
(propagated-inputs (list python-async-generator python-trio python-wsproto))
(home-page "https://github.com/HyperionGray/trio-websocket")
(synopsis "WebSocket library for Trio")
(description "This library implements both server and client aspects of
the @url{https://tools.ietf.org/html/rfc6455, the WebSocket protocol},
striving for safety, correctness, and ergonomics. It is based on the
@url{https://wsproto.readthedocs.io/en/latest/, wsproto project}, which is a
@url{https://sans-io.readthedocs.io/, Sans-IO} state machine that implements
the majority of the WebSocket protocol, including framing, codecs, and events.
This library handles I/O using @url{https://trio.readthedocs.io/en/latest/,
the Trio framework}.")
(license license:expat)))
(define-public python-humanize
(package
(name "python-humanize")
(version "0.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "humanize" version))
(sha256
(base32
"06dvhm3k8lf2rayn1gxbd46y0fy1db26m3h9vrq7rb1ib08mfgx4"))))
(arguments
'(#:tests? #f)) ; tests not in pypi archive
(build-system python-build-system)
(home-page "https://github.com/jmoiron/humanize")
(synopsis "Print numerical information in a human-readable form")
(description "This package provides a Python module that displays numbers
and dates in \"human readable\" forms. For example, it would display
\"12345591313\" as \"12.3 billion\".")
(license license:expat)))
(define-public python-txaio
(package
(name "python-txaio")
(version "18.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "txaio" version))
(sha256
(base32
"1zmpdph6zddgrnkkcykh6qk5s46l7s5mzfqrh82m4b5iffn61qv7"))))
(build-system python-build-system)
(propagated-inputs
(list python-twisted python-six))
(home-page "https://github.com/crossbario/txaio")
(synopsis "Compatibility layer between Python asyncio and Twisted")
(description "Txaio provides a compatibility layer between the Python
@code{asyncio} module and @code{Twisted}.")
(license license:expat)))
(define-public python-toolshed
(package
(name "python-toolshed")
(version "0.4.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "toolshed" version))
(sha256
(base32
"14zvz51gzf9i1i3d1sj363ba4rksl6lcf4lz1arl8hpqgcbir8r3"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/brentp/toolshed/")
(synopsis "Collection of modules and functions for working with data")
(description "This is a collection of well-tested, simple modules and
functions that aim to reduce boilerplate when working with data.")
(license license:bsd-2)))
(define-public python-annoy
(package
(name "python-annoy")
(version "1.15.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "annoy" version))
(sha256
(base32
"1rxn6snn0r32r07g45hdjhh8aa1xzx6fjrm8g62d8vzp46z7rzrp"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/spotify/annoy/")
(synopsis "Approximate nearest neighbors library")
(description
"Annoy is a C++ library with Python bindings to search for points in
space that are close to a given query point. It also creates large read-only
file-based data structures that are @code{mmap}ped into memory so that many
processes may share the same data.")
(license license:asl2.0)))
(define-public python-croniter
(package
(name "python-croniter")
(version "1.3.4")
(source (origin
(method url-fetch)
(uri (pypi-uri "croniter" version))
(sha256
(base32
"1whbm26m9kpn0klgr9dqiqpp83ki9nhpxifaq9afcjw32rckcs9i"))))
(build-system python-build-system)
(propagated-inputs (list python-dateutil))
(home-page "https://github.com/kiorky/croniter")
(synopsis "Iterate datetime objects with cron-like syntax")
(description
"@code{croniter} provides iteration for datetime object with cron-like
format.")
(license license:expat)))
(define-public python-crontab
(package
(name "python-crontab")
(version "2.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
(base32 "0cccrqc10r8781ba81x8r2frs3pl2m4hkm599k5358ak0xr7xgjb"))))
(build-system python-build-system)
(arguments
;; Comptability tests fail so they are disabled.
`(#:tests? #f))
(inputs
(list python-dateutil))
(home-page "https://gitlab.com/doctormo/python-crontab/")
(synopsis "Module for reading and writing crontab files")
(description "This Python module can read, write crontab files, and
access the system cron automatically and simply using a direct API.")
(license license:lgpl3+)))
(define-public python-pylzma
(package
(name "python-pylzma")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pylzma" version))
(sha256
(base32
"074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q"))))
(build-system python-build-system)
(home-page "https://www.joachim-bauch.de/projects/pylzma/")
(synopsis "Python bindings for the LZMA library by Igor Pavlov")
(description "This package provides Python bindings for the LZMA library
by Igor Pavlov.")
(license license:lgpl2.1+)))
(define-public python-ifaddr
(package
(name "python-ifaddr")
(version "0.1.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ifaddr" version))
(sha256
(base32
"150sxdlicwrphmhnv03ykxplyd2jdrxz0mikgnivavgilrn8m7hz"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "nosetests"))))))
(native-inputs
(list python-nose))
(home-page "https://github.com/pydron/ifaddr")
(synopsis "Network interface and IP address enumeration library")
(description "This package provides a network interface and IP address
enumeration library in Python.")
(license license:expat)))
(define-public python-zeroconf
(package
(name "python-zeroconf")
(version "0.38.1")
(source
(origin
(method git-fetch) ; no tests in PyPI release
(uri (git-reference
(url "https://github.com/jstasiak/python-zeroconf")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1p1a0ywlg5sq0ilcphmz9h4kayscz0q1lyfk57j7mwxyx4gl9cpi"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-k"
(string-append
;; Networking isn't available for these tests.
"not test_integration_with_listener_ipv6"
" and not test_launch_and_close_v4_v6"
" and not test_launch_and_close_context_manager"
" and not test_launch_and_close"
" and not test_close_multiple_times"))))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-ifaddr))
(home-page "https://github.com/jstasiak/python-zeroconf")
(synopsis "Pure Python mDNS service discovery")
(description "Pure Python multicast DNS (mDNS) service discovery library
(Bonjour/Avahi compatible).")
(license license:lgpl2.1+)))
(define-public python-bsddb3
(package
(name "python-bsddb3")
(version "6.2.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bsddb3" version))
(sha256
(base32 "00bqdsfx8jgmfz5bgkx10nlw5bfsw11a86f91zkl53snvk45xl3h"))))
(build-system python-build-system)
(inputs
(list bdb))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'configure-locations
(lambda* (#:key inputs #:allow-other-keys)
(setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
(setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")
#t))
(replace 'check
(lambda _
(invoke "python3" "test3.py" "-v"))))))
(home-page "https://www.jcea.es/programacion/pybsddb.htm")
(synopsis "Python bindings for Oracle Berkeley DB")
(description
"This module provides a nearly complete wrapping of the Oracle/Sleepycat
C API for the Database Environment, Database, Cursor, Log Cursor, Sequence and
Transaction objects, and each of these is exposed as a Python type in the
bsddb3.db module. The database objects can use various access methods: btree,
hash, recno, and queue. Complete support of Berkeley DB distributed
transactions. Complete support for Berkeley DB Replication Manager.
Complete support for Berkeley DB Base Replication. Support for RPC.")
(license license:bsd-3)))
(define-public python-dbfread
(package
(name "python-dbfread")
(version "2.0.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "dbfread" version))
(sha256
(base32
"0gdpwdzf1fngsi6jrdyj4qdf6cr7gnnr3zp80dpkzbgz0spskj07"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://dbfread.readthedocs.io")
(synopsis "Read DBF Files with Python")
(description
"This library reads DBF files and returns the data as native Python data
types for further processing. It is primarily intended for batch jobs and
one-off scripts.")
(license license:expat)))
(define-public python-cached-property
(package
(name "python-cached-property")
(version "1.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cached-property" version))
(sha256
(base32
"0c51i6yzg6dlq6zhk4c6nv33mg8gv05kkan36k9b5jzf71c7b9cz"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; https://github.com/pydanny/cached-property/issues/131
;; recent versions of freezegun break one test
(add-after 'unpack 'disable-broken-test
(lambda _
(substitute* "tests/test_cached_property.py"
(("def test_threads_ttl_expiry\\(self\\)" m)
(string-append "@unittest.skip(\"Disabled by Guix\")\n"
" " m)))
#t)))))
(native-inputs
(list python-freezegun))
(home-page
"https://github.com/pydanny/cached-property")
(synopsis
"Decorator for caching properties in classes")
(description
"This package provides a decorator which makes caching
time-or-computationally-expensive properties quick and easy and works in Python
2 or 3.")
(license license:bsd-3)))
(define-public python-folium
(package
(name "python-folium")
(version "0.13.0")
(source
(origin
;; PyPI has a ".whl" file but not a proper source release.
;; Thus, fetch code from Git.
(method git-fetch)
(uri (git-reference
(url "https://github.com/python-visualization/folium")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00adpdi1890zzzg7ffp04hmx59igdcdpyqa129vnmwqh54b5a006"))))
(build-system python-build-system)
(propagated-inputs
(list python-branca python-jinja2 python-numpy python-requests))
(native-inputs
(list python-pytest))
(home-page "https://github.com/python-visualization/folium")
(synopsis "Make beautiful maps with Leaflet.js & Python")
(description "@code{folium} makes it easy to visualize data that’s been
manipulated in Python on an interactive leaflet map. It enables both the
binding of data to a map for @code{choropleth} visualizations as well as
passing rich vector/raster/HTML visualizations as markers on the map.
The library has a number of built-in tilesets from OpenStreetMap, Mapbox, and
Stamen, and supports custom tilesets with Mapbox or Cloudmade API keys. It
supports Image, Video, GeoJSON and TopoJSON overlays.")
(license license:expat)))
(define-public python-mercantile
(package
(name "python-mercantile")
(version "1.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mercantile" version))
(sha256
(base32 "0sxmndhzzrvss5irsgzfrk51k6jihwcb7661992mizdgbnqnsg7s"))))
(build-system python-build-system)
(propagated-inputs (list python-click))
(native-inputs
(list python-check-manifest python-hypothesis python-pytest))
(home-page "https://github.com/mapbox/mercantile")
(synopsis "Web mercator XYZ tile utilities")
(description "The mercantile module provides @code{ul(xtile, ytile, zoom)}
and @code{bounds(xtile, ytile, zoom)} functions that respectively return the
upper left corner and bounding longitudes and latitudes for XYZ tiles, a
@code{xy(lng, lat)} function that returns spherical mercator x and y
coordinates, a @code{tile(lng, lat, zoom)} function that returns the tile
containing a given point, and quadkey conversion functions
@code{quadkey(xtile, ytile, zoom)} and @code{quadkey_to_tile(quadkey)} for
translating between quadkey and tile coordinates.")
(license license:bsd-3)))
(define-public python-xyzservices
(package
(name "python-xyzservices")
(version "2022.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xyzservices" version))
(sha256
(base32 "1paxv4i0dws85md7csv7pf80jl3xh792mx8rxnsrk61ks3ivbsyg"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-pytest python-mercantile python-requests))
(home-page "https://github.com/geopandas/xyzservices")
(synopsis "Source of XYZ tiles providers")
(description "@code{xyzservices} is a lightweight library providing a
repository of available XYZ services offering raster basemap tiles. The
repository is provided via Python API and as a compressed JSON file.")
(license license:bsd-3)))
(define-public jube
(package
;; This is a command-line tool, so no "python-" prefix.
(name "jube")
(version "2.2.2")
(source (origin
(method url-fetch)
(uri (string-append
"http://apps.fz-juelich.de/jsc/jube/jube2/download.php?version="
version))
(sha256
(base32
"0xq4k1q63s1p6swgyp61vahlrd1fqmgbm0gm5kpj8ikwy0yc0nqk"))
(file-name (string-append "jube-" version ".tar.gz"))))
(build-system python-build-system)
(home-page "https://apps.fz-juelich.de/jsc/jube/jube2/docu/index.html")
(synopsis "Benchmarking environment")
(description
"JUBE helps perform and analyze benchmarks in a systematic way. For each
benchmarked application, benchmark data is stored in a format that allows JUBE
to deduct the desired information. This data can be parsed by automatic pre-
and post-processing scripts that draw information and store it more densely
for manual interpretation.")
(license license:gpl3+)))
(define-public python-pyroutelib3
(package
(name "python-pyroutelib3")
(version "1.3.post1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyroutelib3" version))
(sha256
(base32
"1hpbydpn2alyswiajfbvhzq4c7f36vdmvxy91hgv8l1lb2g2vfrj"))))
(build-system python-build-system)
(propagated-inputs
(list python-dateutil))
(home-page "https://github.com/MKuranowski/pyroutelib3")
(synopsis "Library for simple routing on OSM data")
(description "Library for simple routing on OSM data")
(license license:gpl3+)))
(define-public python-bibtexparser
(package
(name "python-bibtexparser")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bibtexparser" version))
(sha256
(base32
"0zwhfkrzf3n5847dbnfng92k7ak199l9v6x6ax3dgdidfpm6d2fz"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyparsing))
(native-inputs
(list python-future))
(home-page "https://github.com/sciunto-org/python-bibtexparser")
(synopsis "Python library to parse BibTeX files")
(description "BibtexParser is a Python library to parse BibTeX files.")
(license (list license:bsd-3 license:lgpl3))))
(define-public python-distro
(package
(name "python-distro")
(version "1.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "distro" version))
(sha256
(base32
"09441261dd3c8b2gv15vhw1cryzg60lmgpkk07v6hpwwkyhfbxc3"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(home-page "https://github.com/nir0s/distro")
(synopsis
"OS platform information API")
(description
"@code{distro} provides information about the OS distribution it runs on,
such as a reliable machine-readable ID, or version information.
It is the recommended replacement for Python's original
`platform.linux_distribution` function (which will be removed in Python 3.8).
@code{distro} also provides a command-line interface to output the platform
information in various formats.")
(license license:asl2.0)))
(define-public python-cairosvg
(package
(name "python-cairosvg")
(version "2.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "CairoSVG" version))
(sha256
(base32 "1ylsisha2cc4w0yydxwhy7idkfw1inl9fsipxsrm7vyby080vi9z"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "pytest"))))))
(propagated-inputs
(list python-cairocffi python-cssselect2 python-defusedxml
python-pillow python-tinycss2))
(native-inputs
(list python-pytest-flake8 python-pytest-isort python-pytest-runner))
(home-page "https://cairosvg.org/")
(synopsis "SVG to PDF/PS/PNG converter based on Cairo")
(description "CairoSVG is a SVG converter based on Cairo. It can export
SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a
SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once
parsed, the result is drawn to a Cairo surface that can be exported to
qvarious formats: PDF, PostScript, PNG and even SVG.")
(license license:lgpl3+)))
(define-public python-pyphen
(package
(name "python-pyphen")
(version "0.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Pyphen" version))
(sha256
(base32 "0a1iwrgs4hzwzz60q4i1813kbzimhm0i4q8grh8vqkxhnkgj36vi"))))
(build-system python-build-system)
;; TODO: Use the Guix system hyphenation packages hyphen-* rather than the
;; embedded set provided by upstream - like Debian does.
(home-page "https://github.com/Kozea/Pyphen")
(synopsis "Pure Python module to hyphenate text")
(description "Pyphen is a pure Python module to hyphenate text using
existing Hunspell hyphenation dictionaries.")
(license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))
(define-public python-intelhex
(package
(name "python-intelhex")
(version "2.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "intelhex" version))
(sha256
(base32
"14q04p6qs47ab9w55232ylrdn4wm9rswz36s6x999x0rlxhp6aw9"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/IntelHex/")
(synopsis "Python library for Intel HEX files manipulations")
(description "The Intel HEX file format is widely used in microprocessors
and microcontrollers area (embedded systems etc.) as the de facto standard for
representation of code to be programmed into microelectronic devices. This
package provides an intelhex Python library to read, write, create from
scratch and manipulate data from Intel HEX file format. It also includes
several convenience Python scripts, including \"classic\" hex2bin and bin2hex
converters and more, those based on the library itself.")
(license license:bsd-3)))
(define-public python-interlap
(package
(name "python-interlap")
(version "0.2.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "interlap" version))
(sha256
(base32
"1jbfh00bkrf0i5psa6n75rlgmqp5389xixa9j29w8rxhah6g7r1i"))))
(build-system python-build-system)
(home-page "https://brentp.github.io/interlap")
(synopsis "Fast, simple interval overlap testing")
(description "InterLap does fast interval overlap testing with a simple Python data
structure.")
(license license:expat)))
(define-public python-pykwalify
(package
(name "python-pykwalify")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pykwalify" version))
(sha256
(base32
"1cnfzkg1b01f825ikpw2fhjclf9c8akxjfrbd1vc22x1lg2kk2vy"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;missing dependencies
(propagated-inputs
(list python-dateutil python-docopt python-pyyaml))
(home-page "https://github.com/grokzen/pykwalify")
(synopsis
"Python lib/cli for JSON/YAML schema validation")
(description
"This package provides a parser, schema validator, and data binding tool
for YAML and JSON.")
(license license:expat)))
(define-public python-dbusmock
(package
(name "python-dbusmock")
(version "0.25.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-dbusmock" version))
(sha256
(base32
"1nwl0gzzds2g1w1gfxfzlgrkb5hr1rrdyn619ml25c6b1rjyfk3g"))))
(build-system python-build-system)
(arguments
`(#:imported-modules (,@%python-build-system-modules
(guix build syscalls))
#:modules ((guix build python-build-system)
(guix build syscalls)
(guix build utils)
(ice-9 match))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "tests/test_code.py"
(("/bin/bash") (which "bash")))
(substitute* "dbusmock/testcase.py"
(("'dbus-daemon'")
(string-append "'" (assoc-ref inputs "dbus")
"/bin/dbus-daemon'")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(match (primitive-fork)
(0 ;child process
(set-child-subreaper!)
;; Use tini so that signals are properly handled and
;; doubly-forked processes get reaped; otherwise,
;; python-dbusmock would waste time polling for the dbus
;; processes it spawns to be reaped, in vain.
(execlp "tini" "--" "pytest" "-vv"))
(pid
(match (waitpid pid)
((_ . status)
(unless (zero? status)
(error "`pytest' exited with status"
status))))))))))))
(native-inputs
(list dbus python-pytest tini which))
(inputs
(list dbus))
(propagated-inputs
(list python-dbus python-pygobject))
(home-page "https://github.com/martinpitt/python-dbusmock")
(synopsis "Python library for mock D-Bus objects")
(description "python-dbusmock allows for the easy creation of mock objects on
D-Bus. This is useful for writing tests for software which talks to D-Bus
services such as upower, systemd, logind, gnome-session or others, and it is
hard (or impossible without root privileges) to set the state of the real
services to what you expect in your tests.")
(license license:lgpl3+)))
(define-public python-jsonplus
(package
(name "python-jsonplus")
(version "0.8.0")
(home-page "https://github.com/randomir/jsonplus")
(source (origin
(method url-fetch)
(uri (pypi-uri "jsonplus" version))
(sha256
(base32
"05yv3dw813zwas9snz124k2hki49y268b3mx0gj9w7v1nrjmglq1"))))
(build-system python-build-system)
;; XXX: No tests on PyPI, and the repository has no tags.
(arguments '(#:tests? #f))
(propagated-inputs
(list python-dateutil python-simplejson python-sortedcontainers))
(synopsis "Serialize Python types to/from JSON")
(description
"This package provides functionality to serialize arbitrary data types
to and from JSON. Common data types are implemented and it is easy to
register custom encoders and decoders.")
(license license:expat)))
(define-public python-ujson
(package
(name "python-ujson")
(version "4.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ujson" version))
(sha256
(base32
"0k9w0kypy7vlskzzp2vsjswaw8lbqdrplzkbflxki9vqwglsj5f6"))
(modules '((guix build utils)))
(snippet
'(begin (delete-file-recursively "deps") #t))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'link-to-system-double-conversion
(lambda* (#:key inputs #:allow-other-keys)
(let ((d-c (assoc-ref inputs "double-conversion")))
(substitute* "setup.py"
(("./deps/double-conversion/double-conversion\"")
(string-append d-c "/include/double-conversion\""))
(("-lstdc++" stdc)
(string-append "-L" d-c "/lib\","
" \"-ldouble-conversion\","
" \"" stdc)))
#t)))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest"))))))
(native-inputs
(list double-conversion python-setuptools-scm python-pytest))
(home-page "https://github.com/ultrajson/ultrajson")
(synopsis "Ultra fast JSON encoder and decoder for Python")
(description
"UltraJSON is an ultra fast JSON encoder and decoder written in pure C with
bindings for Python 3.")
(license license:bsd-3)))
(define-public python-iocapture
;; The latest release is more than a year older than this commit.
(let ((commit "fdc021c431d0840303908dfc3ca8769db383595c")
(revision "1"))
(package
(name "python-iocapture")
(version "0.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/oinume/iocapture")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1mkbhqibxvgwg0p7slr8dfraa3g2s6bsayladhax2jccwj4kcndz"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "py.test" "-v" "tests")
#t)))))
(propagated-inputs
(list python-flexmock python-pytest python-pytest-cov python-six))
(home-page "https://github.com/oinume/iocapture")
(synopsis "Python capturing tool for stdout and stderr")
(description
"This package helps you to capture the standard out (stdout) and the
standard error channel (stderr) in your program.")
(license license:expat))))
(define-public python-anyio
(package
(name "python-anyio")
(version "3.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "anyio" version))
(sha256
(base32
"19m58805wir4i2s45dd5ynwlzb7ky1218isbir53gpqzzgigzbm0"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke
"pytest" "-vv" "-p" "no:asyncio"
"-m" "not network"
"-k"
(string-append
"not test_is_block_device"
;; These fail because of network (or specifically IPv6
;; network) access (see:
;; https://github.com/agronholm/anyio/issues/417).
" and not test_accept"
" and not test_accept_after_close"
" and not test_close_during_receive"
" and not test_close_from_other_task"
" and not test_concurrent_receive"
" and not test_concurrent_send"
" and not test_connect_tcp_with_tls"
" and not test_connect_tcp_with_tls_cert_check_fail"
" and not test_connection_refused"
" and not test_extra_attributes"
" and not test_getaddrinfo"
" and not test_getnameinfo"
" and not test_happy_eyeballs"
" and not test_iterate"
" and not test_receive_after_close"
" and not test_receive_timeout"
" and not test_reuse_port"
" and not test_run_process"
" and not test_send_after_close"
" and not test_send_after_eof"
" and not test_send_after_peer_closed"
" and not test_send_eof"
" and not test_send_large_buffer"
" and not test_send_receive"
" and not test_socket_options"
" and not test_unretrieved_future_exception_server_crash"))))))))
(propagated-inputs
(list python-contextvars
python-dataclasses
python-idna
python-sniffio
python-typing-extensions))
(native-inputs
(list python-contextlib2
python-coverage
python-hypothesis
python-mock
python-pytest
python-pytest-mock
python-setuptools-scm
python-trio
python-trustme
python-uvloop))
(home-page "https://github.com/agronholm/anyio")
(synopsis "Compatibility layer for multiple asynchronous event loops")
(description
"AnyIO is an asynchronous networking and concurrency library that works
on top of either asyncio or trio. It implements trio-like structured
concurrency on top of asyncio, and works in harmony with the native SC of trio
itself.")
(license license:expat)))
(define-public python-argh
;; There are 21 commits since the latest release containing important
;; improvements.
(let ((commit "dcd3253f2994400a6a58a700c118c53765bc50a4")
(revision "1"))
(package
(name "python-argh")
(version (git-version "0.26.2" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/neithere/argh")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1p5h3dnpbsjmqrvil96s71asc6i3gpinmbrabqmwnrsxprz7r3ns"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-tests
(lambda _
;; Fix test failures on Python 3.9.9+.
;; Taken via <https://github.com/neithere/argh/issues/148>.
(substitute* "test/test_integration.py"
(("assert run\\(p, '(bar|orig-name|nest bar)', exit=True\\)\
\\.startswith\\('invalid choice'\\)" _ name)
(string-append "assert 'invalid choice' in \
run(p, '" name "', exit=True)")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(propagated-inputs
(list python-iocapture python-mock python-pytest python-pytest-cov
python-pytest-xdist))
(home-page "https://github.com/neithere/argh/")
(synopsis "Argparse wrapper with natural syntax")
(description
"python-argh is a small library that provides several layers of
abstraction on top of @code{python-argparse}. The layers can be mixed. It is
always possible to declare a command with the highest possible (and least
flexible) layer and then tune the behaviour with any of the lower layers
including the native API of @code{python-argparse}.")
(license license:lgpl3+))))
(define-public python-ppft
(package
(name "python-ppft")
(version "1.6.6.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ppft" version))
(sha256
(base32
"1z1invkhszc5d2mvgr221v7cszzifcc77mz0pv3wjp6x5q2768cy"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; there are none
(propagated-inputs
(list python-six))
(home-page "https://pypi.org/project/ppft/")
(synopsis "Fork of Parallel Python")
(description
"This package is a fork of Parallel Python. The Parallel Python
module (@code{pp}) provides an easy and efficient way to create
parallel-enabled applications for @dfn{symmetric multiprocessing} (SMP)
computers and clusters. It features cross-platform portability and dynamic
load balancing.")
(license license:bsd-3)))
(define-public python-pox
(package
(name "python-pox")
(version "0.2.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pox" version))
(sha256
(base32
"0y17ckc2p6i6709s279sjdj4q459mpcc38ymg9zv9y6vl6jf3bq6"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(mkdir-p "/tmp/guix")
(setenv "SHELL" "bash")
(setenv "USERNAME" "guix")
(setenv "HOME" "/tmp/guix") ; must end on USERNAME...
(invoke "py.test" "-vv")
#t)))))
(native-inputs
(list python-pytest which))
(home-page "https://pypi.org/project/pox/")
(synopsis "Python utilities for file system exploration and automated builds")
(description
"Pox provides a collection of utilities for navigating and manipulating
file systems. This module is designed to facilitate some of the low-level
operating system interactions that are useful when exploring a file system on a
remote host. Pox provides Python equivalents of several shell commands such
as @command{which} and @command{find}. These commands allow automated
discovery of what has been installed on an operating system, and where the
essential tools are located.")
(license license:bsd-3)))
(define-public python-pathos
(package
(name "python-pathos")
(version "0.2.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pathos" version))
(sha256
(base32
"0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "./tests/__main__.py"))))))
(propagated-inputs
(list python-dill python-multiprocess python-pox python-ppft))
(native-inputs
(list python-pytest))
(home-page "https://pypi.org/project/pathos/")
(synopsis
"Parallel graph management and execution in heterogeneous computing")
(description
"Python-pathos is a framework for heterogeneous computing. It provides a
consistent high-level interface for configuring and launching parallel
computations across heterogeneous resources. Python-pathos provides configurable
launchers for parallel and distributed computing, where each launcher contains
the syntactic logic to configure and launch jobs in an execution environment.")
(license license:bsd-3)))
(define-public python-flit
(package
(name "python-flit")
(version "3.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flit" version))
(sha256
(base32 "04152qj46sqbnlrj7ch9p7svjrrlpzbk0qr39g2yr0s4f5vp6frf"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
;; XXX: PEP 517 manual build copied from python-isort.
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
(setenv "FLIT_NO_NETWORK" "1"))))
(replace 'install
(lambda _
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl)))))))
(propagated-inputs
(list python-pypa-build
python-tomli-w
python-flit-core
python-docutils
python-requests))
(native-inputs
(list python-responses
python-pygments-github-lexers
python-pytest
python-pytest-cov
python-sphinx
python-sphinxcontrib-github-alt
python-testpath))
(home-page "https://flit.readthedocs.io/")
(synopsis "Simple packaging tool for simple packages")
(description "Flit is a simple way to put Python packages and modules on
PyPI. Flit packages a single importable module or package at a time, using
the import name as the name on PyPI. All subpackages and data files within a
package are included automatically.")
(license license:bsd-3)))
(define-public python-pathtools
(package
(name "python-pathtools")
(version "0.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pathtools" version))
(sha256
(base32
"1h7iam33vwxk8bvslfj4qlsdprdnwf8bvzhqh3jq5frr391cadbw"))))
(build-system python-build-system)
(home-page
"https://github.com/gorakhargosh/pathtools")
(synopsis "Path utilities for Python")
(description "Pattern matching and various utilities for file systems
paths.")
(license license:expat)))
(define-public python-fastentrypoints
(package
(name "python-fastentrypoints")
(version "0.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fastentrypoints" version))
(sha256
(base32
"02s1j8i2dzbpbwgq2a3fiqwm3cnmhii2qzc0k42l0rdxd4a4ya7z"))))
(build-system python-build-system)
(home-page
"https://github.com/ninjaaron/fast-entry_points")
(synopsis
"Makes entry_points specified in setup.py load more quickly")
(description
"Using entry_points in your setup.py makes scripts that start really
slowly because it imports pkg_resources. This package allows such setup
scripts to load entry points more quickly.")
(license license:bsd-3)))
(define-public python-funcparserlib
(package
(name "python-funcparserlib")
(version "1.0.0")
(source
(origin
;; Source tarball on PyPi lacks tests.
(method git-fetch)
(uri (git-reference
(url "https://github.com/vlasovskikh/funcparserlib")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "00pswdys5c4hpqpvfcy5zqv30gyjvjvagi12811jizw57hxrm1cs"))))
(build-system pyproject-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest" "discover" "-v")))))))
;; ModuleNotFoundError: No module named 'poetry'
(native-inputs (list python-poetry-core))
(home-page "https://github.com/vlasovskikh/funcparserlib")
(synopsis
"Recursive descent parsing library based on functional combinators")
(description
"This package is a recursive descent parsing library for Python based on
functional combinators. Parser combinators are just higher-order functions
that take parsers as their arguments and return them as result values.")
(license license:expat)))
(define-public python-speg
(package
(name "python-speg")
(version "0.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "speg" version ".zip"))
(sha256
(base32 "0w9y4jf4787dzhy6rvhwi0mpl0r8qkqmqmyv2hpwdpv8w53yzjqh"))))
(arguments
`(#:tests? #f)) ;FIXME: tests fail, not sure why
(native-inputs
(list unzip))
(build-system python-build-system)
(home-page "https://github.com/avakar/speg")
(synopsis "PEG-based parser interpreter with memoization")
(description "This package is a PEG-based parser and interpreter with
memoization.")
(license license:expat)))
(define-public python-cson
(package
(name "python-cson")
(version "0.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cson" version))
(sha256
(base32 "00cyvigg4npbph39ghkg77xbxisa6plf75vii24igxfizik0337f"))))
(build-system python-build-system)
(propagated-inputs
(list python-speg))
(home-page "https://github.com/avakar/pycson")
(synopsis "Parser for Coffeescript Object Notation (CSON)")
(description "This package is a parser for Coffeescript Object
Notation (CSON).")
(license license:expat)))
(define-public python-aionotify
(package
(name "python-aionotify")
(version "0.2.0")
(source
(origin
;; Source tarball on PyPi lacks tests
(method git-fetch)
(uri (git-reference
(url "https://github.com/rbarrois/aionotify")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"))
(patches (search-patches "python-aionotify-0.2.0-py3.8.patch"))))
(build-system python-build-system)
(home-page "https://github.com/rbarrois/aionotify")
(synopsis "Asyncio-powered inotify library")
(description
"@code{aionotify} is a simple, asyncio-based inotify library.")
(license license:bsd-3)))
(define-public python-forbiddenfruit
(package
(name "python-forbiddenfruit")
(version "0.1.3")
(source
(origin
;; Source tarball on PyPi lacks Makefile that builds and runs tests
(method git-fetch)
(uri (git-reference
(url "https://github.com/clarete/forbiddenfruit")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "make" "SKIP_DEPS=1"))))))
(native-inputs
(list python-nose python-coverage))
(home-page "https://github.com/clarete/forbiddenfruit")
(synopsis "Patch python built-in objects")
(description "This project allows Python code to extend built-in types.")
(license (list license:gpl3+ license:expat))))
(define-public python-k5test
(package
(name "python-k5test")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "k5test" version))
(sha256
(base32
"1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
(build-system python-build-system)
(propagated-inputs
(list python-six
;; `which`, `kadmin.local` binaries called inside library
which mit-krb5))
(native-inputs (list mit-krb5))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'apply-upstream-fixes
(lambda* _
(substitute* "k5test/realm.py"
;; Upstream commit f6b302d94dbdce37a1b81cc3faeeac4dc637b0e9.
(("'kadmin_local'") "'kadmin.local'")
;; Upstream commit 3aef84515cf3d1a171c66856c898d0a5cbbd03ea.
(("\\.stop_daemon") "._stop_daemon")))))))
(home-page "https://github.com/pythongssapi/k5test")
(synopsis "Library for setting up self-contained Kerberos 5 environments")
(description
"@code{k5test} is a library for setting up self-contained Kerberos 5
environments, and running Python unit tests inside those environments. It is
based on the file of the same name found alongside the MIT Kerberos 5 unit
tests.")
(license license:isc)))
(define-public python-gssapi
(package
(name "python-gssapi")
(version "1.6.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "gssapi" version))
(sha256
(base32
"1j2idrbrbczykzlb56q1bn0ivc9c0rjjljpk4yz86xn3gxfkpv8n"))))
(build-system python-build-system)
(propagated-inputs
(list python-decorator python-six))
(inputs
(list mit-krb5))
;; for tests
(native-inputs
(list python-parameterized python-k5test python-nose))
(home-page "https://github.com/pythongssapi/python-gssapi")
(synopsis "Python GSSAPI Wrapper")
(description
"Python-GSSAPI provides both low-level and high level wrappers around the
GSSAPI C libraries. While it focuses on the Kerberos mechanism, it should
also be usable with other GSSAPI mechanisms.")
(license license:isc)))
(define-public python-check-manifest
(package
(name "python-check-manifest")
(version "0.48")
(source
(origin
(method url-fetch)
(uri (pypi-uri "check-manifest" version))
(sha256
(base32
"0my6ammldi8mddrbq798qxbl90qr8nlk7gzliq3v7gp7mlfmymrv"))))
(build-system pyproject-build-system)
(arguments
'(;; This test requires setting up a venv which does not work
;; properly in the build environment.
#:test-flags '("-k" "not test_build_sdist_pep517_isolated")
#:phases
(modify-phases %standard-phases
;; Tests use git submodule commands over the file transport, which
;; has been disabled in git, see CVE-2022-39253. Enable these
;; commands to allow checks to succeed.
(add-before 'check 'allow-git-submodule-add
(lambda _
(setenv "HOME" "/tmp")
(invoke "git" "config" "--global"
"protocol.file.allow" "always"))))))
(native-inputs
(list git-minimal/fixed python-pytest))
(propagated-inputs
(list python-pypa-build python-setuptools python-tomli))
(home-page "https://github.com/mgedmin/check-manifest")
(synopsis "Check MANIFEST.in in a Python source package for completeness")
(description "Python package can include a MANIFEST.in file to help with
sending package files to the Python Package Index. This package checks that
file to ensure it completely and accurately describes your project.")
(license license:expat)))
(define-public python-android-stringslib
(package
(name "python-android-stringslib")
(version "0.1.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://framagit.org/tyreunom/python-android-strings-lib")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0gij55qzzq1h83kfpvhai1vf78kkhyvxa6l17m2nl24454lhfin4"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(home-page "https://framagit.org/tyreunom/python-android-strings-lib")
(synopsis "Android strings.xml support")
(description "Android Strings Lib provides support for android's strings.xml
files. These files are used to translate strings in android apps.")
(license license:expat)))
(define-public python-watchdog
(package
(name "python-watchdog")
(version "2.1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "watchdog" version))
(sha256
(base32 "1rx2nyl0cyj0v4ja795cl3gi26577c5wg48syr3byz3ndkgpavm3"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest" "-k"
;; This test failed.
"not test_kill_auto_restart")))))))
(propagated-inputs
(list python-pathtools python-pyyaml))
(native-inputs
(list python-pytest-cov python-pytest-timeout))
(home-page "https://github.com/gorakhargosh/watchdog")
(synopsis "File system events monitoring")
(description "This package provides a way to monitor file system events
such as a file modification and trigger an action. This is similar to inotify,
but portable.")
(license license:asl2.0)))
(define-public python-watchgod
(package
(name "python-watchgod")
(version "0.7")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/samuelcolvin/watchgod")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1w2xsidwp9n4giqhja0bzw7rwrh01db0kdxf2n54mv3dkx545jpq"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
"-o" "asyncio_mode=auto")))))))
(native-inputs
(list python-coverage
python-pygments
python-pytest
python-pytest-asyncio
python-pytest-cov
python-pytest-mock
python-pytest-sugar
python-pytest-toolbox))
(home-page "https://github.com/samuelcolvin/watchgod")
(synopsis "Simple, modern file watching and code reload in Python")
(description
"Simple, modern file watching and code reload in Python inspired by
@code{watchdog}. Among the differences are a unified approach for each
operating systems and an elegant approach to concurrency using threading.")
(license license:expat)))
(define-public python-wget
(package
(name "python-wget")
(version "3.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wget" version ".zip"))
(sha256
(base32
"0qb0y7ipby42m4m7h0ipazpdyc3bn9xi46lvifcwwl5albn31rim"))))
(build-system python-build-system)
(native-inputs (list unzip))
(home-page "https://bitbucket.org/techtonik/python-wget/")
(synopsis "Pure Python download utility")
(description "The python-wget library provides an API to download files
with features similar to the @command{wget} utility.")
(license license:unlicense)))
(define-public offlate
(package
(name "offlate")
(version "0.6.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://framagit.org/tyreunom/offlate")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1sx5cv8pamyw1m089b6x8ykaxdkx26jk9cblhbzlf0m3ckz52jik"))))
(build-system python-build-system)
(arguments
;; No tests
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-before 'build 'generate-fonts
(lambda _
(invoke "make" "fonts")))
(add-before 'build 'generate-translations
(lambda _
(invoke "make" "update-langs"))))))
(propagated-inputs
(list python-android-stringslib
python-dateutil
python-gitlab
python-lxml
python-polib
python-pycountry
python-pyenchant
python-pygit2
python-pygithub
python-pyqt
python-requests
python-ruamel.yaml
python-translate-toolkit
python-translation-finder
python-watchdog))
(native-inputs
(list qttools-5 fontforge))
(home-page "https://framagit.org/tyreunom/offlate")
(synopsis "Offline translation interface for online translation tools")
(description "Offlate offers a unified interface for different translation
file formats, as well as many different online translation platforms. You can
use it to get work from online platforms, specialized such as the Translation
Project, or not such a gitlab instance when your upstream doesn't use any
dedicated platform. The tool proposes a unified interface for any format and
an upload option to send your work back to the platform.")
(license license:gpl3+)))
(define-public python-titlecase
(package
(name "python-titlecase")
(version "0.12.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "titlecase" version))
(sha256
(base32
"0486i99wf8ssa7sgn81fn6fv6i4rhhq6n751bc740b3hzfbpmpl4"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/ppannuto/python-titlecase")
(synopsis "Capitalize strings similar to book titles")
(description
"Python-Titlecase is a Python port of John Gruber's titlecase.pl.
It capitalizes (predominantly English) strings in a way that is similar to
book titles, using the New York Times Manual of Style to leave certain words
lowercase.")
(license license:expat)))
(define-public python-pypng
(package
(name "python-pypng")
(version "0.0.20")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pypng" version))
(sha256
(base32 "02qpa22ls41vwsrzw9r9qhj1nhq05p03hb5473pay6y980s86chh"))))
(build-system python-build-system)
(home-page "https://github.com/drj11/pypng")
(synopsis "Pure Python PNG image encoder/decoder")
(description
"The PyPNG module implements support for PNG images. It reads and writes
PNG files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per
pixel) and colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA,
LA (greyscale with alpha) with 8/16 bits per channel; colour mapped
images (1/2/4/8 bit). Adam7 interlacing is supported for reading and writing.
A number of optional chunks can be specified (when writing) and
understood (when reading): tRNS, bKGD, gAMA.
PyPNG is not a high level toolkit for image processing (like PIL) and does not
aim at being a replacement or competitor. Its strength lies in fine-grained
extensive support of PNG features. It can also read and write Netpbm PAM
files, with a focus on its use as an intermediate format for implementing
custom PNG processing.")
(license license:expat)))
(define-public python-fuzzywuzzy
(package
(name "python-fuzzywuzzy")
(version "0.18.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fuzzywuzzy" version))
(sha256
(base32
"1s00zn75y2dkxgnbw8kl8dw4p1mc77cv78fwfa4yb0274s96w0a5"))))
(build-system python-build-system)
(native-inputs
(list python-hypothesis python-pycodestyle python-pytest))
(propagated-inputs
(list python-levenshtein))
(home-page "https://github.com/seatgeek/fuzzywuzzy")
(synopsis "Fuzzy string matching in Python")
(description "Approximate string matching using
@emph{Levenshtein Distance} to calculate the differences between
sequences.")
(license license:gpl2)))
(define-public python-block-tracing
(package
(name "python-block-tracing")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "block_tracing" version))
(sha256
(base32
"0s2y729qr5rs7n506qfh8cssk8m2bi6k2y5vbrh2z3raf2d01alz"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; no tests
(home-page "https://github.com/rianhunter/block_tracing")
(synopsis "Protect process memory")
(description
"@code{block_tracing} is a tiny Python library that can be used to
prevent debuggers and other applications from inspecting the memory within
your process.")
(license license:expat)))
(define-public python-gcovr
(package
(name "python-gcovr")
(version "4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "gcovr" version))
(sha256
(base32
"0gyady7x3v3l9fm1zan0idaggqqcm31y7g5vxk7h05p5h7f39bjs"))))
(build-system python-build-system)
(propagated-inputs
(list python-lxml python-jinja2))
(home-page "https://gcovr.com/")
(synopsis "Utility for generating code coverage results")
(description
"Gcovr provides a utility for managing the use of the GNU gcov
utility and generating summarized code coverage results. It is inspired
by the Python coverage.py package, which provides a similar utility for
Python.")
(license license:bsd-3)))
(define-public python-owslib
(package
(name "python-owslib")
(version "0.19.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "OWSLib" version))
(sha256
(base32 "0v8vg0naa9rywvd31cpq65ljbdclpsrx09788v4xj7lg10np8nk0"))))
(build-system python-build-system)
(arguments
;; TODO: package dependencies required for tests.
'(#:tests? #f
#:phases (modify-phases %standard-phases
(delete 'sanity-check))))
(synopsis "Interface for Open Geospatial Consortium web service")
(description
"OWSLib is a Python package for client programming with Open Geospatial
Consortium (OGC) web service (hence OWS) interface standards, and their related
content models.")
(home-page "https://geopython.github.io/OWSLib/")
(license license:bsd-3)))
(define-public python-docusign-esign
(package
(name "python-docusign-esign")
(version "3.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "docusign_esign" version))
(sha256
(base32
"01f3h03vc97syjlmqyl7xa5j90pzgmwpspc5a0gra9saynnbkx37"))))
(build-system python-build-system)
;; Testing requires undocumented setup changes, and so testing is disabled here.
(arguments `(#:tests? #f))
(propagated-inputs
(list python-certifi
python-six
python-dateutil
python-urllib3
python-pyjwt
python-cryptography
python-nose))
(synopsis "DocuSign Python Client")
(description "The Official DocuSign Python Client Library used to interact
with the eSign REST API. Send, sign, and approve documents using this client.")
(home-page "https://www.docusign.com/devcenter")
(license license:expat)))
(define-public python-xattr
(package
(name "python-xattr")
(version "0.9.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "xattr" version))
(sha256
(base32
"0ipkfblyvp5hylahjkw9zss1ii9xnwjypr3b3ncv989szcg7xjq9"))))
(build-system python-build-system)
(propagated-inputs
(list python-cffi))
(home-page "https://github.com/xattr/xattr")
(synopsis
"Python wrapper for extended file system attributes")
(description "This package provides a Python wrapper for using extended
file system attributes. Extended attributes extend the basic attributes of files
and directories in the file system. They are stored as name:data pairs
associated with file system objects (files, directories, symlinks, etc).")
(license license:expat)))
(define-public python-json-logger
(package
(name "python-json-logger")
(version "0.1.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-json-logger" version))
(sha256
(base32
"10g2ya6nsvn5vxzvq2wb8q4d43i3d7756i5rxyjna6d0y9i138xp"))))
(build-system python-build-system)
(home-page
"https://github.com/madzak/python-json-logger")
(synopsis "JSON log formatter in Python")
(description "This library allows standard Python logging to output log data
as JSON objects. With JSON we can make our logs more readable by machines and
we can stop writing custom parsers for syslog-type records.")
(license license:bsd-3)))
(define-public python-daiquiri
(package
(name "python-daiquiri")
(version "2.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "daiquiri" version))
(sha256
(base32
"1qmank3c217ddiig3xr8ps0mqaydcp0q5a62in9a9g4zf72zjnqd"))))
(build-system python-build-system)
(propagated-inputs
(list python-json-logger))
(native-inputs
(list python-mock python-pytest python-setuptools-scm python-six))
(home-page "https://github.com/jd/daiquiri")
(synopsis
"Library to configure Python logging easily")
(description "The daiquiri library provides an easy way to configure
logging in Python. It also provides some custom formatters and handlers.")
(license license:asl2.0)))
(define-public python-pifpaf
(package
(name "python-pifpaf")
(version "3.1.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pifpaf" version))
(sha256
(base32
"19bdmxldc2m570isl7hbqgbb20si4sin7pi5fw8sv9py8dyv2s4n"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "setup.py" "testr" "--slowest"
"--testr-args=until-failure"))))))
(propagated-inputs
(list python-click
python-daiquiri
python-fixtures
python-jinja2
python-pbr
python-psutil
python-xattr))
(native-inputs
(list python-mock python-os-testr python-requests
python-testrepository python-testtools))
(home-page "https://github.com/jd/pifpaf")
(synopsis "Tools and fixtures to manage daemons for testing in Python")
(description "Pifpaf is a suite of fixtures and a command-line tool that
starts and stops daemons for a quick throw-away usage. This is typically
useful when needing these daemons to run integration testing. It originally
evolved from its precursor @code{overtest}.")
(license license:asl2.0)))
(define-public python-pytest-check-links
(package
(name "python-pytest-check-links")
(version "0.3.0")
(source
(origin
(method url-fetch)
;; URI uses underscores
(uri (pypi-uri "pytest_check_links" version))
(sha256
(base32
"12x3wmrdzm6wgk0vz02hb769h68nr49q47w5q1pj95pc89hsa34v"))))
(build-system python-build-system)
(propagated-inputs
(list python-docutils
python-html5lib
python-nbconvert
python-nbformat
python-pytest
python-six))
(native-inputs
(list python-pbr-minimal))
(home-page "https://github.com/minrk/pytest-check-links")
(synopsis "Check links in files")
(description "This package provides a pytest plugin that checks URLs for
HTML-containing files.")
(license license:bsd-3)))
(define-public python-json5
(package
(name "python-json5")
(version "0.8.5")
(source
(origin
;; sample.json5 is missing from PyPi source tarball
(method git-fetch)
(uri (git-reference
(url "https://github.com/dpranke/pyjson5")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn"))))
(build-system python-build-system)
(home-page "https://github.com/dpranke/pyjson5")
(synopsis
"Python implementation of the JSON5 data format")
(description
"JSON5 extends the JSON data interchange format to make it slightly more
usable as a configuration language. This Python package implements parsing and
dumping of JSON5 data structures.")
(license license:asl2.0)))
(define-public python-freetype-py
(package
(name "python-freetype-py")
(version "2.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "freetype-py" version ".zip"))
(sha256
(base32 "1l55wzy21jmdayjna29ahzxrf2fp68580978rs6kap1a4zilrdpr"))))
(build-system python-build-system)
(native-inputs
(list python-setuptools-scm
unzip))
(inputs (list freetype))
(arguments
`(#:phases
;; Note: the pypi archive does not contain tests, but running the check
;; phase will at least test whether the module loads correctly.
(modify-phases %standard-phases
(add-before 'build 'embed-library-reference
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "freetype/raw.py"
(("^(filename = ).*" _ >)
(string-append > "\"" (search-input-file inputs "/lib/libfreetype.so")
"\"\n"))))))))
(home-page "https://github.com/rougier/freetype-py")
(synopsis "Freetype python bindings")
(description "Freetype Python provides bindings for the FreeType
library. Only the high-level API is bound.")
(license license:bsd-3)))
(define-public python-frozendict
(package
(name "python-frozendict")
(version "2.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "frozendict" version))
(sha256
(base32 "0y3zn57i1q5192f7l4w2z2zsy3rrx50g563msaq954r58s1v3d0m"))))
(build-system python-build-system)
(home-page "https://github.com/Marco-Sulla/python-frozendict")
(synopsis "Simple immutable mapping for Python")
(description
"@dfn{frozendict} is an immutable wrapper around dictionaries that
implements the complete mapping interface. It can be used as a drop-in
replacement for dictionaries where immutability is desired.")
(license license:expat)))
(define-public python-unpaddedbase64
(package
(name "python-unpaddedbase64")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "unpaddedbase64" version))
(sha256
(base32 "01ghlmw63fgslwj8j74vkpf1kqvr7a4agm6nyn89vqwx106ccwvj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs tests? #:allow-other-keys)
(when tests?
(copy-recursively (string-append
(assoc-ref inputs "tests") "/tests")
"tests")
(invoke "python" "-m" "pytest" "-vv")))))))
(native-inputs
`(("python-pytest" ,python-pytest)
("tests"
;; The release on pypi comes without tests. We can't build from this
;; checkout, though, because installation requires an invocation of
;; poetry.
,(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/matrix-org/python-unpaddedbase64")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"))))))
(home-page "https://github.com/matrix-org/python-unpaddedbase64")
(synopsis "Encode and decode Base64 without “=” padding")
(description
"RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes
using “=” characters. However this conveys no benefit so many protocols
choose to use Base64 without the “=” padding.")
(license license:asl2.0)))
(define-public python-py-cpuinfo
;; This is the first commit where riscv64-linux support is available.
;; We can move back to pypi releases with the next release.
(let ((commit "4d6987e5c30f2ebacb20781892c01329042cce60")
(revision "1"))
(package
(name "python-py-cpuinfo")
(version (git-version "8.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/workhorsy/py-cpuinfo")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0h5wi1bfcqqr1x3j1pa7dmkx7siprsyksbsy80fl2sdrrgpji0b0"))))
(build-system python-build-system)
(home-page "https://github.com/workhorsy/py-cpuinfo")
(synopsis "Get CPU info with Python")
(description
"This Python module returns the CPU info by using the best sources of
information for your operating system.")
(license license:expat))))
(define-public python-canonicaljson
(package
(name "python-canonicaljson")
(version "1.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "canonicaljson" version))
(sha256
(base32 "0j5lq191jkd483q6xzc16c9fahxf15lrv03mvah9ka3lq85pcnfa"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'loosen-requirements
(lambda _
;; Permit newer versions of setuptools_scm
(substitute* "pyproject.toml"
((">= 2.0.0, <3") ">= 2.0.0"))))
(replace 'build
(lambda _
;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest"))))
(replace 'install
(lambda _
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl)))))))
(native-inputs
(list python-pypa-build python-pytest python-setuptools python-setuptools-scm))
(propagated-inputs
(list python-six python-frozendict python-simplejson))
(home-page "https://github.com/matrix-org/python-canonicaljson")
(synopsis "Canonical JSON")
(description
"Deterministically encode JSON.
@itemize
@item Encodes objects and arrays as RFC 7159 JSON.
@item Sorts object keys so that you get the same result each time.
@item Has no insignificant whitespace to make the output as small as possible.
@item Escapes only the characters that must be escaped, U+0000 to
U+0019 / U+0022 / U+0056, to keep the output as small as possible.
@item Uses the shortest escape sequence for each escaped character.
@item Encodes the JSON as UTF-8.
@item Can encode frozendict immutable dictionaries.
@end itemize")
(license license:asl2.0)))
(define-public python-signedjson
(package
(name "python-signedjson")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "signedjson" version))
(sha256
(base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m"))))
(build-system python-build-system)
(propagated-inputs
(list python-canonicaljson python-importlib-metadata python-pynacl
python-typing-extensions python-unpaddedbase64))
(native-inputs
(list python-setuptools-scm))
(home-page "https://github.com/matrix-org/python-signedjson")
(synopsis "Sign JSON objects with ED25519 signatures")
(description
"Sign JSON objects with ED25519 signatures.
@itemize
@item More than one entity can sign the same object.
@item Each entity can sign the object with more than one key making it easier to
rotate keys
@item ED25519 can be replaced with a different algorithm.
@item Unprotected data can be added to the object under the @dfn{\"unsigned\"}
key.
@end itemize")
(license license:asl2.0)))
(define-public python-daemonize
(package
(name "python-daemonize")
(version "2.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "daemonize" version))
(sha256
(base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
(build-system python-build-system)
(home-page "https://github.com/thesharp/daemonize")
(synopsis "Library for writing system daemons in Python")
(description "Daemonize is a library for writing system daemons in Python.")
(license license:expat)))
(define-public python-pymacaroons
(package
(name "python-pymacaroons")
(version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pymacaroons" version))
(sha256
(base32 "1f0357a6g1h96sk6wy030xmc1p4rd80a999qvxd28v7nlm1blsqy"))))
(build-system python-build-system)
(propagated-inputs
(list python-six python-pynacl))
(home-page "https://github.com/ecordell/pymacaroons")
(synopsis "Python Macaroon Library")
(description
"Macaroons, like cookies, are a form of bearer credential. Unlike opaque
tokens, macaroons embed caveats that define specific authorization
requirements for the target service, the service that issued the root macaroon
and which is capable of verifying the integrity of macaroons it receives.
Macaroons allow for delegation and attenuation of authorization. They are
simple and fast to verify, and decouple authorization policy from the
enforcement of that policy.")
(license license:expat)))
(define-public python-ldap3
(package
(name "python-ldap3")
(version "2.7")
(home-page "https://github.com/cannatag/ldap3")
(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 "0xw9fkqld21xsvdpaqir8ccc2l805xnn9gxahsnl70xzp3mwl0xv"))))
(build-system python-build-system)
(arguments
'(#:tests? #f ;TODO: Tests need a real LDAP server to run
#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "nosetests" "-s" "test"))
#t)))))
(native-inputs
(list python-nose))
(propagated-inputs
(list python-gssapi python-pyasn1))
(synopsis "Python LDAP client")
(description
"LDAP3 is a strictly RFC 4510 conforming LDAP V3 pure Python client
library.")
(license license:lgpl3+)))
(define-public python-boltons
(package
(name "python-boltons")
(version "20.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "boltons" version))
(sha256
(base32
"0lrr40qqj3ch8xarvyzbnbjs79pz5aywklllq53l347h1b8xnkg4"))))
(build-system python-build-system)
(home-page "https://github.com/mahmoud/boltons")
(synopsis "Extensions to the Python standard library")
(description
"Boltons is a set of over 230 pure-Python utilities in the same spirit
as — and yet conspicuously missing from — the standard library, including:
@itemize
@item Atomic file saving, bolted on with fileutils
@item A highly-optimized OrderedMultiDict, in dictutils
@item Two types of PriorityQueue, in queueutils
@item Chunked and windowed iteration, in iterutils
@item Recursive data structure iteration and merging, with iterutils.remap
@item Exponential backoff functionality, including jitter, through
iterutils.backoff
@item A full-featured TracebackInfo type, for representing stack traces, in
tbutils
@end itemize")
(license license:bsd-3)))
(define-public python-eliot
(package
(name "python-eliot")
(version "1.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "eliot" version))
(sha256
(base32 "1xzzhsjrrw430dc84vamf683bwp9i0nr86xf2iav6yla615ijq2p"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-journald-support
(lambda _
(for-each delete-file
'("eliot/tests/test_journald.py"
"eliot/journald.py"))
#t))
(add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
;; remove command-line tool's tests. TODO eliot-prettyprint should
;; be installed and these tests should pass.
(lambda _
(delete-file "eliot/tests/test_prettyprint.py")
#t))
(add-after 'remove-eliot-prettyprint-tests 'remove-failing-tests
(lambda _
;; These tests started to fail after updating python-pandas to
;; 1.3.3 and python-dask to 2021.9.1.
(substitute* "eliot/tests/test_validation.py"
(("test_omitLoggerFromActionType")
"_test_omitLoggerFromActionType")
(("test_logCallsDefaultLoggerWrite")
"_test_logCallsDefaultLoggerWrite"))
#t)))))
(propagated-inputs
(list python-boltons python-pyrsistent python-six
python-zope-interface))
(native-inputs
(list python-black
python-coverage
python-dask
python-flake8
python-hypothesis
python-pytest
python-setuptools
python-sphinx
python-sphinx-rtd-theme
python-testtools
python-twine
python-twisted))
(home-page "https://github.com/itamarst/eliot/")
(synopsis "Eliot: the logging system that tells you why it happened")
(description
"@dfn{eliot} is a Python logging system that outputs causal chains of
actions: actions can spawn other actions, and eventually they either succeed
or fail. The resulting logs tell you the story of what your software did: what
happened, and what caused it.")
(license license:asl2.0)))
(define-public python-pem
(package
(name "python-pem")
(version "20.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pem" version))
(sha256
(base32
"1xh88ss279fprxnzd10dczmqwjhppbyvljm33zrg2mgybwd66qr7"))))
(build-system python-build-system)
(native-inputs
(list python-certifi
python-coverage
python-pretend
python-pyopenssl
python-pytest
python-sphinx
python-twisted))
(home-page "https://pem.readthedocs.io/")
(synopsis "Easy PEM file parsing in Python")
(description
"This package provides a Python module for parsing and splitting PEM files.")
(license license:expat)))
(define-public python-txsni
;; We need a few commits on top of 0.1.9 for compatibility with newer
;; Python and OpenSSL.
(let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
(revision "0"))
(package
(name "python-txsni")
(version (git-version "0.1.9" revision commit))
(home-page "https://github.com/glyph/txsni")
(source
(origin
(method git-fetch)
(uri (git-reference (url home-page) (commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyopenssl python-service-identity python-twisted))
(synopsis "Run TLS servers with Twisted")
(description
"This package provides an easy-to-use SNI endpoint for use
with the Twisted web framework.")
(license license:expat))))
(define-public python-txacme
(package
(name "python-txacme")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "txacme" version))
(sha256
(base32 "1cplx4llq7i508w6fgwjdv9di7rsz9k9irfmzdfbiz6q6a0ykf1d"))))
(build-system python-build-system)
(propagated-inputs
(list python-acme
python-attrs
python-eliot
python-josepy
python-pem
python-treq
python-twisted
python-txsni))
(native-inputs
(list python-fixtures
python-hypothesis
python-mock
python-service-identity
python-testrepository
python-testscenarios
python-testtools))
(home-page "https://github.com/twisted/txacme")
(synopsis "Twisted implexmentation of the ACME protocol")
(description
"ACME is Automatic Certificate Management Environment, a protocol that
allows clients and certificate authorities to automate verification and
certificate issuance. The ACME protocol is used by the free Let's Encrypt
Certificate Authority.
txacme is an implementation of the protocol for Twisted, the event-driven
networking engine for Python.")
(license license:expat)))
(define-public python-pysaml2
(package
(name "python-pysaml2")
(version "6.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pysaml2" version))
(sha256
(base32
"1xk2x0slz1f8cqv7vn77qx99xfd1mshhswiwrljk9m72w2m9iivd"))))
(build-system python-build-system)
(propagated-inputs
(list python-cryptography
python-dateutil
python-defusedxml
python-importlib-resources
python-pyopenssl
python-pytz
python-requests
python-six
python-xmlschema))
(home-page "https://idpy.org")
(synopsis "Python implementation of SAML Version 2 Standard")
(description
"PySAML2 is a pure python implementation of SAML Version 2 Standard.
It contains all necessary pieces for building a SAML2 service provider or
an identity provider. The distribution contains examples of both.
This package was originally written to work in a WSGI environment, but
there are extensions that allow you to use it with other frameworks.")
(license license:asl2.0)))
(define-public python-click-plugins
(package
(name "python-click-plugins")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "click-plugins" version))
(sha256
(base32 "0jr6bxj67vg988vkm6nz8jj98v9lg46bn49lkhak3n598jbrkas6"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-click))
(synopsis "Extension for Click to register external CLI commands")
(description "This package provides n extension module for Click to
register external CLI commands via setuptools entry-points.")
(home-page "https://github.com/click-contrib/click-plugins")
(license license:bsd-3)))
(define-public python-diceware
(package
(name "python-diceware")
(version "0.9.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "diceware" version))
(sha256
(base32
"0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby"))))
(build-system python-build-system)
(native-inputs
(list python-coverage python-pytest python-pytest-runner))
(home-page "https://github.com/ulif/diceware/")
(synopsis "Generates memorable passphrases")
(description "This package generates passphrases by concatenating words
randomly picked from wordlists. It supports several sources of
randomness (including real life dice) and different wordlists (including
cryptographically signed ones).")
(license license:gpl3+)))
(define-public python-dictdiffer
(package
(name "python-dictdiffer")
(version "0.9.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "dictdiffer" version))
(sha256
(base32
"0y3mk74qm2q9hsm37892i1wzn8bbdrvbs4nmnvqwq4z6pxgwzfhp"))))
(build-system python-build-system)
(arguments
;; XXX: The PyPI tarball lacks tests and the git repository
;; fails to determine version.
'(#:tests? #f))
(native-inputs
(list python-pytest-runner python-setuptools-scm))
(home-page "https://github.com/inveniosoftware/dictdiffer")
(synopsis "Diff and patch Python dictionary objects")
(description
"Dictdiffer is a Python module that helps you to diff and patch
dictionaries.")
(license license:expat)))
(define-public python-dictpath
(package
(name "python-dictpath")
(version "0.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dictpath" version))
(sha256
(base32 "1n4hq4wbgaw59bbb16nhkgg5wk8sl4iw940vjrgx4xmifqxxw73m"))))
(build-system python-build-system)
(native-inputs (list python-pytest python-pytest-cov python-pytest-flake8))
(home-page "https://github.com/p1c2u/pathable")
(synopsis "Object-oriented path library for Python")
(description "This object-oriented dictionary path Python library enables
traversing resources like paths or accessing resources on demand with separate
accessor layer.")
(license license:asl2.0)))
(define-public pyzo
(package
(name "pyzo")
(version "4.12.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pyzo/pyzo.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0v6rgp52bf9za2spxx9c1yc6wmskvlsj81iw0gipjy7y8vpypgn2"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'fix-home-directory
(lambda _
;; Tests fail with "Permission denied: '/homeless-shelter'".
(setenv "HOME" "/tmp"))))
;; Tests fail with "Uncaught Python exception: python: undefined
;; symbol: objc_getClass".
#:tests? #f))
(propagated-inputs
(list python-pyqt))
(home-page "https://pyzo.org")
(synopsis
"Python IDE for scientific computing")
(description
"Pyzo is a Python IDE focused on interactivity and introspection,
which makes it very suitable for scientific computing. Its practical
design is aimed at simplicity and efficiency.
It consists of two main components, the editor and the shell, and uses
a set of pluggable tools to help the programmer in various ways. Some
example tools are source structure, project manager, interactive help,
workspace...")
(license license:bsd-2)))
(define-public python-osc
(package
(name "python-osc")
(version "1.7.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-osc" version))
(sha256
(base32
"0cnh0z5lnng7fh48nmfaqqn8j25k13gkd4rhxd3m6sjqiix9s3vn"))))
(build-system python-build-system)
(home-page "https://github.com/attwad/python-osc")
(synopsis "Open Sound Control server and client implementations")
(description
"@code{python-osc} is a pure Python library with no external
dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
Open Sound Control 1.0} specification.")
(license license:unlicense)))
(define-public python-voluptuous
(package
(name "python-voluptuous")
(version "0.11.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "voluptuous" version))
(sha256
(base32
"0mplkcpb5d8wjf8vk195fys4y6a3wbibiyf708imw33lphfk9g1a"))))
(build-system python-build-system)
(native-inputs
(list python-nose))
(home-page "https://github.com/alecthomas/voluptuous")
(synopsis "Python data validation library")
(description
"Voluptuous is a Python data validation library. It is primarily
intended for validating data coming into Python as JSON, YAML, etc.")
(license license:bsd-3)))
(define-public python-cmd2
(package
(name "python-cmd2")
(version "2.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cmd2" version))
(sha256
(base32
"0h1naik558qh48gx2iyy0a0khvw5fz0in69y84mbrhsm9nq7w3bm"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-vv" "-k"
;; These tests fail because no EDITOR is in PATH.
"not test_find_editor_not_specified \
and not test_transcript")
(format #t "test suite not run~%")))))))
(propagated-inputs
(list python-attrs python-colorama python-pyperclip python-wcwidth))
(native-inputs
(list python-invoke
python-mock
python-pytest
python-pytest-cov
python-pytest-mock
python-setuptools-scm))
(home-page "https://github.com/python-cmd2/cmd2")
(synopsis "Tool for building interactive command line applications")
(description
"Cmd2 is a tool for building interactive command line applications in
Python. Its goal is to make it quick and easy for developers to build
feature-rich and user-friendly interactive command line applications. It
provides a simple API which is an extension of Python's built-in @code{cmd}
module. @code{cmd2} provides a wealth of features on top of @code{cmd} to
make your life easier and eliminates much of the boilerplate code which would
be necessary when using @code{cmd}.")
(license license:expat)))
(define-public python-pytidylib
(package
(name "python-pytidylib")
(version "0.3.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "pytidylib" version))
(sha256
(base32
"1wqa9dv5d7swka14rnky862hc7dgk2g3dhlrz57hdn3hb7bwic92"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'build 'qualify-libtidy
(lambda* (#:key inputs #:allow-other-keys)
(let ((libtidy (search-input-file inputs "/lib/libtidy.so")))
(substitute* "tidylib/tidy.py"
(("ctypes\\.util\\.find_library\\('tidy'\\)")
(format #f "'~a'" libtidy)))
#t))))))
(inputs (list tidy))
(home-page "https://github.com/countergram/pytidylib")
(synopsis "Python wrapper for HTML Tidy library")
(description
"PyTidyLib is a Python package that wraps the HTML Tidy library. This
allows you, from Python code, to “fix” invalid (X)HTML markup.")
(license license:expat)))
(define-public python-mujson
(package
(name "python-mujson")
(version "1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "mujson" version))
(sha256
(base32
"0wbj6r8yzsdx2b0kbldlkznr1a9nn33za2q9x3g0hbg420dwzn97"))))
(build-system python-build-system)
(home-page "https://github.com/mattgiles/mujson")
(synopsis "Use the fastest JSON functions available at import time")
(description "This package selects the fastest JSON functions available
at import time.")
(license license:expat)))
(define-public python-bashlex
(package
(name "python-bashlex")
(version "0.14")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bashlex" version))
(sha256
(base32
"1z9g96fgsfpdwawp4sb5x6hbdhmda7kgmcrqlf9xx4bs1f8f14js"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'pregenerate-yacc-tables
(lambda _
;; parser.py caches tables, which attempts to write to site lib
;; see https://github.com/idank/bashlex/issues/51
(invoke "python" "-c" "import bashlex"))))))
(home-page
"https://github.com/idank/bashlex")
(synopsis "Python parser for bash")
(description "@code{bashlex} is a Python port of the parser used
internally by GNU bash.
For the most part it's transliterated from C, the major differences are:
@itemize
@item it does not execute anything
@item it is reentrant
@item it generates a complete AST
@end itemize
")
(license license:gpl3+)))
(define-public python-jinxed
(package
(name "python-jinxed")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jinxed" version))
(sha256
(base32
"1n7vl03rhjd0xhjgbjlh8x9f8yfbhamcwkgvs4jg7g5qj8f0wk89"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-environment-variables
(lambda* (#:key inputs #:allow-other-keys)
(let ((ncurses (assoc-ref inputs "ncurses")))
(setenv "TERM" "LINUX")
(setenv "TERMINFO" (string-append ncurses "/share/terminfo"))
#t))))
#:tests? #f)) ; _curses.error: setupterm: could not find terminal
(native-inputs
(list ncurses))
(home-page "https://github.com/Rockhopper-Technologies/jinxed")
(synopsis "Jinxed Terminal Library")
(description
"Jinxed is an implementation of a subset of the Python curses library.")
(license license:mpl2.0)))
(define-public python-svgutils
(package
(name "python-svgutils")
(version "0.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "svgutils" version))
(sha256
(base32
"0lz0w2ajdvwd269a7ppnzawmx8px0116j0nx8xvhlihxrd28zx4y"))))
(build-system python-build-system)
(propagated-inputs
(list python-lxml))
(home-page "https://svgutils.readthedocs.io")
(synopsis "Python SVG editor")
(description "This is an utility package that helps with editing and
concatenating SVG files. It is especially directed at scientists preparing
final figures for submission to journals. So far it supports arbitrary
placement and scaling of SVG figures and adding markers, such as labels.")
(license license:expat)))
(define-public python-blessed
(package
(name "python-blessed")
(version "1.17.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "blessed" version))
(sha256
(base32
"1wdj342sk22hfrg0n91x2qnqsbzbiyq9y009v3pxnvfzn9bx0wbn"))
(modules '((guix build utils)))
(snippet
'(begin
;; Don't get hung up on Windows test failures.
(delete-file "blessed/win_terminal.py") #t))))
(build-system python-build-system)
(propagated-inputs
(list python-jinxed python-six python-wcwidth))
(native-inputs
(list python-mock python-pytest))
(home-page "https://github.com/jquast/blessed")
(synopsis "Wrapper around terminal capabilities")
(description
"Blessed is a thin, practical wrapper around terminal styling, screen
positioning, and keyboard input.")
(license license:expat)))
(define-public python-readme-renderer
(package
(name "python-readme-renderer")
(version "34.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "readme_renderer" version))
(sha256
(base32
"1c75h9znffc2lh4j56yg23l5ifj5l8fbdq3kfigi8vbh45zx3d6z"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-after 'unpack 'loosen-cmarkgfm-dependency
(lambda _
;; Permit newer versions of cmarkgfm.
(substitute* "setup.py"
(("cmarkgfm>=0\\.5\\.0,<0\\.7\\.0")
"cmarkgfm>=0.5.0"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; The GFM tests fail due to slight differences in the
;; generated vs expected HTML due to using a more
;; recent bleach version (see:
;; https://github.com/pypa/readme_renderer/issues/234).
(invoke "pytest" "-vv" "-k" "not GFM")))))))
(propagated-inputs
(list python-bleach python-docutils python-pygments
;; Optional dependencies.
python-cmarkgfm)) ;required by postorius
(native-inputs
(list python-mock python-pytest))
(home-page "https://github.com/pypa/readme_renderer")
(synopsis "Render README files in Warehouse")
(description
"Readme Renderer is a library that will safely render arbitrary README
files into HTML. It is designed to be used in Warehouse to render the
@code{long_description} for packages. It can handle Markdown, reStructuredText,
and plain text.")
(license license:asl2.0)))
(define-public python-lazr-delegates
(package
(name "python-lazr-delegates")
(version "2.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lazr.delegates" version))
(sha256
(base32
"1rdnl85j9ayp8n85l0ciip621j9dcziz5qnmv2m7krgwgcn31vfx"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "nosetests")))))))
(native-inputs
(list python-nose))
(propagated-inputs
(list python-zope-interface))
(home-page "https://launchpad.net/lazr.delegates")
(synopsis "Easily write objects that delegate behavior")
(description
"The @code{lazr.delegates} package makes it easy to write objects that
delegate behavior to another object. The new object adds some property or
behavior on to the other object, while still providing the underlying interface,
and delegating behavior.")
(license license:lgpl3)))
(define-public python-lazr-config
(package
(name "python-lazr-config")
(version "2.2.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lazr.config" version))
(sha256
(base32
"1qdbrzl61q7cjhbnxvw9y3frcr935y7diwy15xrwcv9ynvw76jmp"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-s" "-m" "nose" "-P" "lazr"))))))
(native-inputs
(list python-nose))
(propagated-inputs
(list python-lazr-delegates python-zope-interface))
(home-page "https://launchpad.net/lazr.config")
(synopsis "Create configuration schemas and process and validate configurations")
(description
"The LAZR config system is typically used to manage process configuration.
Process configuration is for saying how things change when we run systems on
different machines, or under different circumstances. This system uses ini-like
file format of section, keys, and values. The config file supports inheritance
to minimize duplication of information across files. The format supports schema
validation.")
(license license:lgpl3)))
(define-public python-flufl-bounce
(package
(name "python-flufl-bounce")
(version "4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flufl.bounce" version))
(sha256
(base32
"0c9qc2l47lyqnpwskp6vvi7m3jqh6hx42v6d35dgxh3fjzmlll15"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(with-directory-excursion
(string-append (site-packages inputs outputs) "/flufl")
(invoke "python" "-m" "nose2" "-v"))))))))
(propagated-inputs
(list python-atpublic python-zope-interface))
(native-inputs
(list python-flufl-testing python-nose2))
(home-page "https://fluflbounce.readthedocs.io/en/latest/")
(synopsis "Email bounce detectors")
(description "The @code{flufl.bounce} library provides a set of heuristics
and an API for detecting the original bouncing email addresses from a bounce
message. Many formats found in the wild are supported, as are VERP and
RFC 3464.")
(license (list license:asl2.0
license:lgpl3)))) ; only for setup_headers.py
(define-public python-flufl-i18n
(package
(name "python-flufl-i18n")
(version "3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flufl.i18n" version))
(sha256
(base32
"1flwpn1xhgc957zj3zxw92dhdjh0lsy0hdvzq32dzqpsajfsvq1r"))))
(build-system python-build-system)
(propagated-inputs
(list python-atpublic))
(home-page "https://flufli18n.readthedocs.io")
(synopsis "API for Python internationalization")
(description
"This package provides a high-level, convenient API for managing
internationalization/translation contexts in Python applications. There is a
simple API for single-context applications, such as command line scripts which
only need to translate into one language during the entire course of their
execution. There is a more flexible, but still convenient API for multi-context
applications, such as servers, which may need to switch language contexts for
different tasks.")
(license license:asl2.0)))
(define-public python-flufl-lock
(package
(name "python-flufl-lock")
(version "4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flufl.lock" version))
(sha256
(base32
"055941zyma3wfx25jhm8wcsghpv3jc3iwi1gdrdjhzcnfhn62lxq"))))
(build-system python-build-system)
(propagated-inputs
(list python-atpublic python-psutil))
(home-page "https://flufllock.readthedocs.io")
(synopsis "NFS-safe file locking with timeouts for POSIX systems")
(description
"The @dfn{flufl.lock} package provides NFS-safe file locking with
timeouts for POSIX systems. It is similar to the @code{O_EXCL} option of the
@code{open} system call but uses a lockfile. Lock objects support lock-breaking
and have a maximum lifetime built-in.")
(license (list license:asl2.0
license:lgpl3)))) ; only for setup_helpers.py
(define-public python-flufl-testing
(package
(name "python-flufl-testing")
(version "0.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flufl.testing" version))
(sha256
(base32
"1nkm95mhcfhl4x5jgs6y97ikszaxsfh07nyawsih6cxxm6l62641"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;no tests
(home-page "https://gitlab.com/warsaw/flufl.testing")
(synopsis "Collection of test tool plugins")
(description
"This package contains a small collection of test tool plugins for
@code{nose2} and @code{flake8}.")
(license license:asl2.0)))
(define-public python-devtools
(package
(name "python-devtools")
(version "0.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/samuelcolvin/python-devtools")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "15zczdcm90wl54c68f1qjb05nkd5bjsc9xjl3lk4frs7k7wkmrvp"))))
(build-system python-build-system)
(native-inputs
(list python-pytest python-pytest-mock))
(propagated-inputs
(list python-pygments))
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest")
#t)))))
(home-page "https://github.com/samuelcolvin/python-devtools")
(synopsis "Debug command and development tools")
(description
"This package provides a debug print command and other development tools.
It adds a simple and readable way to print stuff during development.")
(license license:expat)))
(define-public python-dateparser
(package
(name "python-dateparser")
(version "1.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dateparser" version))
(sha256
(base32
"19fbgq1zrwx10kljmdbs3p0y2m2xsgww20pqzw4kv6161zipsymf"))))
(build-system pyproject-build-system)
(propagated-inputs
(list python-dateutil python-pytz python-regex python-ruamel.yaml
python-tzlocal))
(native-inputs
(list python-flake8 python-pytest python-parameterized tzdata-for-tests))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'set-check-environment
(lambda* (#:key inputs #:allow-other-keys)
(setenv "TZ" "UTC")
(setenv "TZDIR"
(search-input-directory inputs
"share/zoneinfo"))))
(add-before 'check 'delete-failing-tests
(lambda _
(with-directory-excursion "tests"
(for-each delete-file
'("test_dateparser_data_integrity.py"
"test_hijri.py"
"test_jalali.py"
"test_language_detect.py"))))))))
(home-page "https://github.com/scrapinghub/dateparser")
(synopsis
"Date parsing library designed to parse dates from HTML pages")
(description
"@code{python-dateparser} provides modules to easily parse localized
dates in almost any string formats commonly found on web pages.")
(license license:bsd-3)))
(define-public python-dparse
(package
(name "python-dparse")
(version "0.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dparse" version))
(sha256
(base32
"0rzkg3nymsbwdjc0ms2bsajkda02jipwyp3xk97qj71f21lz3dd1"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-packaging python-pyyaml python-toml))
(home-page "https://github.com/pyupio/dparse")
(synopsis "Parser for Python dependency files")
(description "This package provides a parser for Python dependency files.")
(license license:expat)))
(define-public python-dpath
(package
(name "python-dpath")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dpath" version))
(sha256
(base32
"1ymi9ssk7i0mx3mviplf4csfvzibdd6wyj4qzj6s487n9xgnp85y"))))
(build-system python-build-system)
(native-inputs
(list python-hypothesis python-mock python-nose))
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
;; This invokation is taken from tox.ini.
(invoke "nosetests" "-d" "-v" "tests/"))))))
(home-page "https://github.com/akesterson/dpath-python")
(synopsis "File-system-like pathing and searching for dictionaries")
(description
"@code{python-dpath} is a library for accessing and searching
dictionaries via /slashed/paths ala xpath.
Basically it lets you glob over a dictionary as if it were a file system. It
allows you to specify globs (ala the bash eglob syntax, through some advanced
fnmatch.fnmatch magic) to access dictionary elements, and provides some
facility for filtering those results.")
(license license:expat)))
(define-public python-safety
(package
(name "python-safety")
(version "1.9.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "safety" version))
(sha256
(base32
"1j801xsxfzavjbzhhc934awvnk1b7jc0qsw3jp3ys0241mlj1gr3"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-tests
(lambda _
(substitute* "tests/test_safety.py"
;; requires network
(("def test_check_live") "def _test_check_live"))
#t)))))
(propagated-inputs
(list python-click python-dparse python-packaging python-requests))
(home-page "https://github.com/pyupio/safety")
(synopsis "Check installed dependencies for known vulnerabilities")
(description "Safety checks installed dependencies for known vulnerabilities.
By default it uses the open Python vulnerability database Safety DB.")
(license license:expat)))
(define-public python-pypandoc
(package
(name "python-pypandoc")
(version "1.6.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pypandoc" version))
(sha256
(base32
"149basv4pvzg9zm74cjz68x8s2n5fykyj7prgysb0qfmja73r83f"))))
(build-system python-build-system)
(inputs
(list pandoc))
(propagated-inputs
`(("wheel" ,python-wheel)))
(native-inputs
`(("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts
texlive-fonts-ec
texlive-generic-iftex
texlive-hyperref
texlive-oberdiek
texlive-lm
texlive-xcolor)))))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'disable-tests
(lambda _
;; Disable test requiring network access
(substitute* "tests.py"
(("test_basic_conversion_from_http_url")
"skip_test_basic_conversion_from_http_url"))
#t)))))
(home-page "https://github.com/bebraw/pypandoc")
(synopsis "Python wrapper for pandoc")
(description "pypandoc is a thin Python wrapper around pandoc
and pandoc-citeproc.")
(license license:expat)))
(define-public python-rnc2rng
(package
(name "python-rnc2rng")
(version "2.6.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rnc2rng" version))
(sha256
(base32
"1wbqvz2bhq2f5kqi7q2q3m9y5vs9rj970zhnjh502pvvhmbx20as"))))
(build-system python-build-system)
(propagated-inputs
(list python-rply))
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "test.py"))))))
(home-page "https://github.com/djc/rnc2rng")
(synopsis "Convert RELAX NG Compact to regular syntax")
(description
"This package provides the @command{rnc2rng} command-line tool as well as
a Python library to convert RELAX NG schemata in Compact syntax (rnc) to
equivalent schemata in the XML-based default RELAX NG syntax.")
(license license:expat)))
(define-public python-telethon
(package
(name "python-telethon")
(version "1.17.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/LonamiWebs/Telethon")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0l9fhdrq576vllgi9aam45xzw5xi6jhgdv5zz8i4ygssdp7cm8jl"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "py.test" "-v"))
#t)))))
(propagated-inputs
(list python-rsa python-pyaes))
(native-inputs
(list python-pytest python-pytest-asyncio python-pytest-trio))
(home-page "https://docs.telethon.dev")
(synopsis "Full-featured Telegram client library for Python 3")
(description "This library is designed to make it easy to write Python
programs that can interact with Telegram.")
(license license:expat)))
(define-public python-citeproc-py
(package
(name "python-citeproc-py")
(version "0.5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "citeproc-py" version))
(sha256
(base32
"00aaff50jy4j0nakdzq9258z1gzrac9baarli2ymgspj88jg5968"))))
(build-system python-build-system)
(propagated-inputs
(list python-lxml python-rnc2rng))
(home-page
"https://github.com/brechtm/citeproc-py")
(synopsis "Citations and bibliography formatter")
(description
"Citeproc-py is a CSL processor for Python. It aims to implement the
CSL 1.0.1 specification. citeproc-py can output styled citations and
bibliographies in a number of different output formats. Currently supported
are plain text, reStructuredText and HTML.")
(license license:bsd-2)))
(define-public python-inform
(package
(name "python-inform")
(version "1.23.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "inform" version))
(sha256
(base32
"0dvc5klbnbryrvspp45nmlg02g40j7xspcz7lqsm0c0dj0z29zdz"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; PyPI tarball lacks tests
(native-inputs
(list python-hypothesis python-pytest-cov python-pytest-runner))
(propagated-inputs
(list python-arrow python-six))
(home-page "https://inform.readthedocs.io")
(synopsis "Print & logging utilities for communicating with user")
(description
"Inform is designed to display messages from programs that are typically run from
a console. It provides a collection of ‘print’ functions that allow you to simply and
cleanly print different types of messages.")
(license license:gpl3+)))
(define-public python-nestedtext
(package
(name "python-nestedtext")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nestedtext" version))
(sha256
(base32
"0xjx863n7yd1xmkwhy48lhmqrmlzgbx3civhk386hvrzyq4sx148"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; PyPI tarball lacks tests
(propagated-inputs
(list python-inform))
(home-page "https://nestedtext.org")
(synopsis "Human readable and writable data interchange format")
(description
"NestedText is a file format for holding data that is to be entered, edited, or
viewed by people. It allows data to be organized into a nested collection of
dictionaries, lists, and strings. In this way it is similar to JSON and YAML, but
without the complexity and risk of YAML and without the syntactic clutter of JSON.
NestedText is both simple and natural. Only a small number of concepts and rules must
be kept in mind when creating it. It is easily created, modified, or viewed with
a text editor and easily understood and used by both programmers and non-programmers.")
(license license:expat))) ; MIT license
(define-public python-nest-asyncio
(package
(name "python-nest-asyncio")
(version "1.5.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nest_asyncio" version))
(sha256
(base32
"0rbdw7lry66yj13hh4w63yzflnapdal1ffl237k8nsa2v4f2jhp4"))))
(build-system python-build-system)
(home-page "https://github.com/erdewit/nest_asyncio")
(synopsis "Patch asyncio to allow nested event loops")
(description
"By design @code{asyncio} does not allow its event loop to be nested.
This presents a practical problem: when in an environment where the event loop
is already running it's impossible to run tasks and wait for the result. This
module patches @code{asyncio} to allow nested use of @code{asyncio.run} and
@code{loop.run_until_complete}.")
(license license:bsd-3)))
(define-public python-simpervisor
(package
(name "python-simpervisor")
(version "0.4")
(source
(origin
;; Tests not included in release.
(method git-fetch)
(uri (git-reference
(url "https://github.com/yuvipanda/simpervisor")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1brsisx7saf4ic0dih1n5y7rbdbwn1ywv9pl32bch3061r46prvv"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Test suite can't find aiohttp.
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "--maxfail" "3" "--verbose"))
#t)))))
(native-inputs
(list python-aiohttp python-pytest python-pytest-asyncio))
(home-page "https://github.com/yuvipanda/simpervisor")
(synopsis "Simple async process supervisor")
(description
"This package provides a simple async process supervisor in Python.")
(license license:bsd-3)))
(define-public python-parallel
(package
(name "python-parallel")
(version "1.6.4.4")
(source
(origin
(method url-fetch)
(uri (string-append
"https://www.parallelpython.com/downloads/pp/pp-"
version ".zip"))
(sha256
(base32
"1mzk4yabxj6r149fswhis18hd8dnag5sj8i4wb06450zq3pi8dh7"))))
(native-inputs
(list unzip))
(propagated-inputs
(list python-six))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; No test suite.
(home-page "https://www.parallelpython.com")
(synopsis "Parallel and distributed programming for Python")
(description "Parallel Python module (PP) provides an easy and efficient
way to create parallel-enabled applications for SMP computers and clusters.
PP module features cross-platform portability and dynamic load balancing.
Thus applications written with PP will parallelize efficiently even on
heterogeneous and multi-platform clusters (including clusters running other
applications with variable CPU loads).")
(license license:bsd-3)))
(define-public python-djvulibre
(package
(name "python-djvulibre")
(version "0.8.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-djvulibre" version))
(sha256
(base32 "089smpq29ll0z37lnq26r2f72d31i33xm9fw9pc6hlcsm6nbjbiv"))))
(build-system python-build-system)
(native-inputs
(list ghostscript pkg-config python-nose))
(inputs
(list djvulibre python-cython))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
;; Unit tests try to load the 'dllpath.py' and fail, because it
;; doesn't make sense on GNU/Linux.
(delete-file "djvu/dllpath.py")
#t)))))
(synopsis "Python bindings for DjVuLibre")
(description "This is a set of Python bindings for the DjVuLibre library.")
(home-page "https://jwilk.net/software/python-djvulibre")
(license license:gpl2)))
(define-public python-version
;; No version tags available in the git repo; just using bare commit instead.
(let ((commit "5232eea250ab72cc5cb72b0b75efb35d2192b906")
(revision "1"))
(package
(name "python-version")
(version (git-version "0.0.2" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.com/halfak/python_version")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0w210559ypdynlj9yn40m9awzkaknwrf682i99hswl7h66sdgh0h"))))
(build-system python-build-system)
(home-page "https://gitlab.com/halfak/python_version")
(synopsis "Python version checking utility")
(description
"This package provides a simple utility for checking the python version.")
(license license:expat))))
(define-public python-versioneer
(package
(name "python-versioneer")
(version "0.21")
(source
(origin
(method url-fetch)
(uri (pypi-uri "versioneer" version))
(sha256
(base32
"084fglxafbzvf1vbkzfajvs9qwnvjwwn8pxql9nrlpyipv5xpwk4"))
(patches (search-patches "python-versioneer-guix-support.patch"))))
(build-system python-build-system)
(home-page
"https://github.com/python-versioneer/python-versioneer")
(synopsis
"Version-string management for VCS-controlled trees")
(description
"@code{versioneer} is a tool for managing a recorded version number in
distutils-based python projects. The goal is to remove the tedious and
error-prone \"update the embedded version string\" step from your release
process.")
(license license:public-domain)))
(define-public python-gamera
(package
(name "python-gamera")
(version "4.0.0")
(source
(origin
(method url-fetch)
(uri (string-append "https://gamera.informatik.hsnr.de/download/"
"gamera-" version ".tar.gz"))
(sha256
(base32 "0fhlwbvpm3k54n4aa1y6qd348jqrb54ak9p0ic16drx7f07dsq05"))
(modules '((guix build utils)))
(snippet
'(begin
;; Remove bundled libraries.
(for-each delete-file-recursively
'("src/libpng-1.2.5"
"src/libtiff"
"src/zlib-1.2.8"))))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-wx-support
(lambda _
(substitute* "setup.py"
(("no_wx = False")
"no_wx = True"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Some tests require a writable HOME directory and test
;; directory.
(setenv "HOME" "/tmp")
(mkdir "tests/tmp") ;the code assumes this directory exists
;; (for-each make-file-writable (find-files "tests"))
(with-directory-excursion "tests"
(invoke "pytest" "-vv"
;; This test causes gamera/gendoc.py to be loaded,
;; which fails due to the missing docutils, pygments
;; and silvercity (very old, unpackaged) libraries.
"--ignore" "test_plugins.py"
;; This test triggers a segfault (see:
;; https://github.com/hsnr-gamera/gamera-4/issues/47).
"--ignore" "test_rle.py"))))))))
(native-inputs (list python-pytest))
(inputs (list libpng libtiff zlib))
(synopsis "Framework for building document analysis applications")
(description
"Gamera is a toolkit for building document image recognition systems.")
(home-page "https://gamera.informatik.hsnr.de/")
(license license:gpl2+)))
(define-public python-contextvars
(package
(name "python-contextvars")
(version "2.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "contextvars" version))
(sha256
(base32
"17n3w8c20kgkgc6khaafdhhlcdj4bzman4paxqsl7harma59137k"))))
(build-system python-build-system)
(propagated-inputs
(list python-immutables))
(home-page
"https://github.com/MagicStack/contextvars")
(synopsis "PEP 567 Backport")
(description "This package implements a backport of Python 3.7
@code{contextvars} module (see PEP 567) for Python 3.6.")
(license license:asl2.0)))
(define-public python-aiofiles
(package
(name "python-aiofiles")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiofiles" version))
(sha256
(base32
"14m01kjxm2j7zyljjj6xlhlgygcsriymbx730gc5jp9xglaina70"))))
(build-system python-build-system)
(home-page "https://github.com/Tinche/aiofiles")
(synopsis "File support for @code{asyncio}")
(description "@code{python-aiofiles} is a library for handling local
disk files in asyncio applications.")
(license license:asl2.0)))
(define-public python-pyre-extensions
(package
(name "python-pyre-extensions")
(version "0.0.18")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyre-extensions" version))
(sha256
(base32
"0c5cbbqrfyjwakdh3kbwxis6mbrbwky1z1fqslgszgpcj4g43q30"))))
(build-system python-build-system)
(propagated-inputs
(list python-typing-extensions python-typing-inspect))
(home-page "https://pyre-check.org")
(synopsis
"Type system extensions for use with @code{python-pyre}")
(description
"@code{python-pyre-extensions} defines extensions to the standard
@code{typing} module that are supported by the Pyre typechecker.")
(license license:expat)))
(define-public python-dataclasses
(package
(name "python-dataclasses")
(version "0.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "dataclasses" version))
(sha256
(base32
"15sc12nrc7gxwb30vfa6frzdnpmbap9ibi1fr1yrbkra6izhcyc4"))))
(build-system python-build-system)
(home-page
"https://github.com/ericvsmith/dataclasses")
(synopsis
"Backport of the @code{dataclasses} module for Python 3.6")
(description
"This is an implementation of PEP 557, Data Classes. It is a
backport of the @code{dataclasses} module for Python 3.6.")
(license license:asl2.0)))
(define-public python-pywatchman
(package
(name "python-pywatchman")
(version "1.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pywatchman" version))
(sha256
(base32
"1yf2gm20wc3djpb5larxii3l55xxby0il2ns3q0v1byyfnr7w16h"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ;there are none
(home-page
"https://facebook.github.io/watchman/")
(synopsis "Watchman client for python")
(description "@code{python-pywatchman} is a library to connect and
query Watchman to discover file changes.")
(license license:bsd-3)))
(define-public python-roundrobin
(package
(name "python-roundrobin")
(version "0.0.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "roundrobin" version))
(sha256
(base32 "1akwhvfyi0120zg2xkhfc6jwfkirz5x90yyvw06bndhaaxwcnc5c"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;no tests on PyPI and no tags in repo
(home-page "https://github.com/linnik/roundrobin")
(synopsis "Collection of roundrobin utilities")
(description
"This package provides a collection of utilities for round-robin
distribution in Python.")
(license license:expat)))
(define-public python-helpdev
(package
(name "python-helpdev")
(version "0.7.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "helpdev" version))
(sha256
(base32
"0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "tests"))
#t)))))
(propagated-inputs
(list python-importlib-metadata))
(native-inputs
(list python-pytest))
(home-page "https://gitlab.com/dpizetta/helpdev")
(synopsis
"Extract information about the Python environment easily")
(description
"Helpdev is a library to easily extract information about the Python
environment.")
(license license:expat)))
(define-public python-logutils
(package
(name "python-logutils")
(version "0.3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "logutils" version))
(sha256
(base32
"10lsi5wv5ysnvf9ya4ncbix6mmipnv5067sf2cglc2f2sljql1dw"))))
(build-system python-build-system)
(home-page "https://bitbucket.org/vinay.sajip/logutils/")
(synopsis "Logging utilities")
(description "This package provides a set of handlers for the Python
standard library logging package. Some of these handlers are out-of-scope
for the standard library, and so they are packaged here. Others are updated
versions which have appeared in recent Python releases, but are usable with
older versions of Python and so are packaged here.")
(license license:bsd-3)))
(define-public python-helper
(package
(name "python-helper")
(version "2.5.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "helper" version))
(sha256
(base32
"1d2j64wgbggzv5rhvil10zndp2w78wa5np5w0psj122ws9qr9wsa"))))
(build-system python-build-system)
(native-inputs
(list python-mock))
(propagated-inputs
(list python-logutils python-pyyaml))
(home-page "https://github.com/gmr/helper")
(synopsis "Library for writing configurable applications and daemons")
(description
"This package provides procedures for quickly writing configurable
applications and daemons.")
(license license:bsd-3)))
(define-public python-qtsass
(package
(name "python-qtsass")
(version "0.3.0")
(source
(origin
;; There are no tests in the PyPI tarball.
(method git-fetch)
(uri (git-reference
(url "https://github.com/spyder-ide/qtsass/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "09s04aa14d8jqbh71clrb5y7vcmkxlp94mwmvzrkxahry3bk03cb"))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"
#:phases
(modify-phases %standard-phases
;; Tests need to read and write files.
(add-before 'check 'make-git-checkout-writable
(lambda _
(for-each make-file-writable (find-files "."))
#t)))))
(native-inputs
(list python-pytest python-pytest-cov python-pytest-runner))
(propagated-inputs
(list python-libsass))
(home-page "https://github.com/spyder-ide/qtsass")
(synopsis "Compile SCSS files to valid Qt stylesheets")
(description
"Besides being used in web development, CSS is also the way to stylize
Qt-based desktop applications. However, Qt's CSS has a few variations that
prevent the direct use of SASS compiler.
The purpose of this tool is to fill the gap between SASS and Qt-CSS by
handling those variations.")
(license license:expat)))
(define-public python-qdarkstyle
(package
(name "python-qdarkstyle")
(version "2.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "QDarkStyle" version))
(sha256
(base32
"0883vzg35fzpyl1aiijzpfcdfvpq5vi325w0m7xkx7nxplh02fym"))))
(build-system python-build-system)
(arguments
`(;; Fails unable to detect valid Qt bindings even when
;; added as native-inputs.
#:tests? #f))
(propagated-inputs
(list python-helpdev python-qtpy))
(home-page
"https://github.com/ColinDuquesnoy/QDarkStyleSheet")
(synopsis
"Complete dark stylesheet for Python and Qt applications")
(description "QDarkStyle is the most complete dark stylesheet for Python and
Qt applications.")
(license license:expat)))
(define-public python-bitstring
(package
(name "python-bitstring")
(version "3.1.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "bitstring" version))
(sha256
(base32
"0jl6192dwrlm5ybkbh7ywmyaymrc3cmz9y07nm7qdli9n9rfpwzx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "test"
(invoke "pytest")))
#t)))))
(native-inputs
(list python-pytest))
(home-page "https://github.com/scott-griffiths/bitstring")
(synopsis
"Simple construction, analysis and modification of binary data")
(description
"Bitstring is a library for simple construction, analysis and modification
of binary data.")
(license license:expat)))
(define-public python-confuse
(package
(name "python-confuse")
(version "1.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "confuse" version))
(sha256
(base32
"0bh2kyj8wd7h9gg4nsvrbykl5ly0f70f0wi3fbm204b1f0fcmywj"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyyaml))
(home-page "https://github.com/beetbox/confuse")
(synopsis "Painless YAML configuration")
(description "Confuse is a configuration library for Python that uses
YAML. It takes care of defaults, overrides, type checking, command-line
integration, human-readable errors, and standard OS-specific locations.")
(license license:expat)))
(define-public python-reflink
(package
(name "python-reflink")
(version "0.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "reflink" version))
(sha256
(base32
"0fkf3sd958g9hvr3jwlhnhqqzrwxljrc3grsf3yknh94vf13a9f9"))))
(build-system python-build-system)
(arguments
`(#:tests? #false)) ; almost all tests want to run mkfs.btrfs
(propagated-inputs
(list python-cffi))
(native-inputs
(list python-pytest python-pytest-runner))
(home-page "https://gitlab.com/rubdos/pyreflink")
(synopsis "Python wrapper around reflink system call")
(description
"Python reflink wraps around platform specific @code{reflink}
implementations.")
(license license:expat)))
(define-public python-retry
(package
(name "python-retry")
(version "0.9.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "retry" version))
(sha256
(base32 "197v6qrh6858bhzzrjgk2zdqrybppymb1lsvdxnm1i39kfwsigzq"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests? (invoke "pytest" "-vv")))))))
(native-inputs (list python-pbr python-pytest))
(propagated-inputs (list python-decorator python-py))
(home-page "https://github.com/invl/retry")
(synopsis "Retry decorator")
(description
"@code{retry} is an easy to use retry decorator for Python. It can be
used to retry a function a given number of times.")
(license license:asl2.0)))
(define-public python-pivy
(package
(name "python-pivy")
(version "0.6.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coin3d/pivy")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx"))))
(build-system python-build-system)
(arguments
`(;; The test suite fails due to an import cycle between 'pivy' and '_coin'
#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-cmake-include-dirs
(lambda _
;; Patch buildsystem to respect Coin3D include directory
(substitute* "CMakeLists.txt"
(("\\$\\{SoQt_INCLUDE_DIRS}")
"${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}"))
#t)))))
(native-inputs
(list cmake swig))
(inputs
(list python-wrapper
qtbase-5
libxi
libice
soqt
glew
coin3D))
(home-page "https://github.com/coin3d/pivy")
(synopsis "Python bindings to Coin3D")
(description
"Pivy provides python bindings for Coin, a 3D graphics library with an
Application Programming Interface based on the Open Inventor 2.1 API.")
(license license:isc)))
(define-public python-crayons
(package
(name "python-crayons")
(version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "crayons" version))
(sha256
(base32
"0gw106k4b6y8mw7pp52awxyplj2bwvwk315k4sywzwh0g1abfcxx"))))
(build-system python-build-system)
(propagated-inputs
(list python-colorama))
(home-page "https://github.com/MasterOdin/crayons")
(synopsis "TextUI colors for Python")
(description "This package gives you colored strings for the terminal.
Crayons automatically wraps a given string in the foreground color and
restores the original state after the string is printed.")
(license license:expat)))
(define-public python-sane
(package
(name "python-sane")
(version "2.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
(base32
"1pi597z94n2mkd821ln52fq0g727n2jxfskf280ip3kf7jw8w294"))))
(build-system python-build-system)
(native-inputs
(list python-pytest))
(inputs
(list sane-backends))
(home-page "https://github.com/python-pillow/Sane")
(synopsis "Python interface to the SANE scanner")
(description "This package provides Python interface to the SANE scanner
and frame grabber interface.")
(license (license:non-copyleft
;; Yet another variant of the X/MIT license.
"https://github.com/python-pillow/Sane/blob/master/COPYING"))))
(define-public python-scikit-build
(package
(name "python-scikit-build")
(version "0.14.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "scikit-build" version))
(sha256
(base32 "1wx1m9vnxnnz59lyaisgyxldp313kciyd4af8lf112vb8vbjy9yk"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-cmake-executable
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "skbuild/constants.py"
(("^(CMAKE_DEFAULT_EXECUTABLE = ).*" _ head)
(format #f "~a ~s~%" head
(search-input-file inputs "bin/cmake"))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; These tests attempt to pull dependencies from the Internet.
(delete-file "tests/test_distribution.py")
(delete-file "tests/test_pep518.py")
(invoke "pytest" "-vv"
"-n" (number->string (parallel-job-count))
"-k" (string-append
;; These tests attempt to write to read-only
;; Python install directory.
"not test_install_command "
"and not test_test_command "
"and not test_hello_develop "
;; These sdist-related tests fail for unknown
;; reasons (see:
;; https://github.com/scikit-build/scikit-build/issues/689).
"and not test_hello_sdist_with_base "
"and not test_manifest_in_sdist "
"and not test_hello_sdist "
"and not test_sdist_with_symlinks "
;; These are not parallel safe and fail
;; nondeterministically (see:
;; https://github.com/scikit-build/scikit-build/issues/711).
"and not test_generator_cleanup "
"and not test_generator_selection "))))))))
(native-inputs
(list cmake-minimal
gfortran
git-minimal
ninja
python-coverage
python-cython
python-mock
python-packaging
python-path
python-pytest
python-pytest-cov
python-pytest-mock
python-pytest-virtualenv
python-pytest-xdist
python-requests
python-setuptools-scm))
(propagated-inputs
(list python-distro python-packaging python-wheel))
(home-page "https://github.com/scikit-build/scikit-build")
(synopsis "Build system generator for Python C/C++/Fortran/Cython extensions")
(description "Scikit-build is an improved build system generator for
CPython C/C++/Fortran/Cython extensions. It has support for additional
compilers, build systems, cross compilation, and locating dependencies and
determining their build requirements. The scikit-build package is
fundamentally just glue between the @code{setuptools} Python module and
CMake.")
(license license:expat)))
(define-public python-screenkey
(package
(name "python-screenkey")
(version "1.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.com/screenkey/screenkey")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1rfngmkh01g5192pi04r1fm7vsz6hg9k3qd313sn9rl9xkjgp11l"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-dlopen-paths
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((x11 (assoc-ref inputs "libx11"))
(xtst (assoc-ref inputs "libxtst")))
(substitute* "Screenkey/xlib.py"
(("libX11.so.6")
(string-append x11 "/lib/libX11.so.6")))
(substitute* "Screenkey/xlib.py"
(("libXtst.so.6")
(string-append xtst "/lib/libXtst.so.6")))
#t)))
(add-after 'install 'wrap-screenkey
(lambda* (#:key outputs #:allow-other-keys)
(wrap-program
(string-append (assoc-ref outputs "out") "/bin/screenkey")
`("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH")))
`("GI_TYPELIB_PATH"
":" prefix (,(getenv "GI_TYPELIB_PATH")))))))))
(inputs
(list python-distutils-extra
python-tokenize-rt
libx11
libxtst
gtk+
python-pygobject
python-pycairo
python-setuptools-git
python-babel))
(home-page "https://www.thregr.org/~wavexx/software/screenkey/")
(synopsis
"Screencast tool to display pressed keys")
(description
"Screenkey is a screencast tool to display your keys inspired by
Screenflick.")
(license license:gpl3+)))
(define-public python-jinja2-cli
(package
(name "python-jinja2-cli")
(version "0.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jinja2-cli" version))
(sha256
(base32
"0vikx7v6fbvww6kfrv0k5a24jyv3ak7nindg60906pdd1m9qvkcw"))))
(build-system python-build-system)
(propagated-inputs
(list python-jinja2))
(native-inputs
(list python-flake8 python-jinja2 python-pytest))
(home-page "https://github.com/mattrobenolt/jinja2-cli")
(synopsis "Command-line interface to Jinja2")
(description
"This package provides a command-line interface (CLI) to the Jinja2
template engine.")
(license license:bsd-3)))
(define-public python-readability
(package
(name "python-readability")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "readability" version))
(sha256
(base32
"1b8gq3g2zwvx0aivvdg56cc0bn7xw6f2v6psmxdx9aiipkw0s0zr"))))
(build-system python-build-system)
(home-page
"https://github.com/andreasvc/readability/")
(synopsis
"Measure the readability of a given text using surface
characteristics")
(description
"This package provides a Python library that is an implementation of
traditional readability measures based on simple surface
characteristics. These measures are basically linear regressions based on the
number of words, syllables, and sentences.")
(license license:asl2.0)))
(define-public python-readability-lxml
(package
(name "python-readability-lxml")
(version "0.8.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/buriy/python-readability")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"13nfy2v0pbbf62jn9qwgi489gg97hbb22q6w3f78mnvjxd2m19rh"))
(snippet
#~(begin (delete-file "readability/compat/two.py")))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "-v" "tests/")))))))
(propagated-inputs (list python-chardet python-cssselect python-lxml))
(native-inputs (list python-timeout-decorator python-pytest))
(home-page "http://github.com/buriy/python-readability")
(synopsis "HTML to text parser")
(description
"This package provides classes and function that strip gratuitous markup
from web pages to make them easier to read.")
(license license:asl2.0)))
(define-public python-listparser
(package
(name "python-listparser")
(version "0.18")
(source
(origin
(method url-fetch)
(uri (pypi-uri "listparser" version))
(sha256
(base32
"0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b"))))
(build-system python-build-system)
(home-page
"https://github.com/kurtmckee/listparser")
(synopsis
"Parse subscription lists in Python")
(description
"This package provides a Python library that can parse OPML, FOAF, and
iGoogle subscription lists.")
(license license:expat)))
(define-public python-smartypants
(package
(name "python-smartypants")
(version "2.0.1")
(source
(origin
;; There's no source tarball for 2.0.1 on PyPI.
(method git-fetch)
(uri (git-reference
(url "https://github.com/leohemsted/smartypants.py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
;; Its `setup.py test` doesn't report failure with exit status, so
;; we use `nose` instead.
(lambda _
(invoke "nosetests" "-v" "--exclude=^load_tests$"))))))
(native-inputs
;; For tests.
(list python-docutils python-nose python-pygments))
(home-page "https://github.com/leohemsted/smartypants.py")
(synopsis "Translate punctuation characters into smart quotes")
(description
"@command{smartpants} can perform the following transformations:
@enumerate
@item Straight quotes ( \" and ' ) into \"curly\" quote HTML entities
@item Backticks-style quotes (``like this'') into \"curly\" quote HTML
entities
@item Dashes (-- and ---) into en- and em-dash entities
@item Three consecutive dots (... or . . .) into an ellipsis entity
@end enumerate")
(license license:bsd-3)))
(define-public python-typogrify
(package
(name "python-typogrify")
(version "2.0.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "typogrify" version))
(sha256
(base32
"0f6b2gnnxjbx1fbmkcscc6qjr4hi78kwm1wx4b766ha3va66dr4b"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "nosetests" "-v"))))))
(propagated-inputs
(list python-smartypants))
(native-inputs
;; For tests.
(list python-nose))
(home-page "https://github.com/mintchaos/typogrify")
(synopsis "Filters to transform text into typographically-improved HTML")
(description
"@code{typogrify} provides a set of custom filters that automatically
apply various transformations to plain text in order to yield
typographically-improved HTML. While often used in conjunction with Jinja and
Django template systems, the filters can be used in any environment.")
(license license:bsd-3)))
(define-public python-ld
(package
(name "python-ld")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ld" version))
(sha256
(base32
"1k4ydp5rgkv4985v459kcl06i1igjm1ywvh2vkbi9ck1zyyri1z5"))))
(build-system python-build-system)
(propagated-inputs
(list python-six))
(home-page "https://github.com/nir0s/ld")
(synopsis "OS platform information API")
(description
"The ld package provides information about the GNU/Linux distribution it
runs on, such as a reliable machine-readable ID, or version information.")
(license license:asl2.0)))
(define-public python-quicktions
(package
(name "python-quicktions")
(version "1.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "quicktions" version))
(sha256
(base32
"1px21a6x527i1bsr2p6bbf3jziqpvd1vjkvvzh13gsy4iip0yvzn"))
(modules '((guix build utils)))
(snippet
'(begin
;; This file is generated by Cython.
(delete-file "src/quicktions.c") #t))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'build 'cythonize-sources
(lambda _
(with-directory-excursion "src"
(invoke "cython" "quicktions.pyx"))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest"))
#t)))))
(native-inputs
(list python-cython python-pytest))
(home-page "https://github.com/scoder/quicktions")
(synopsis "Fast fractions data type for rational numbers")
(description
"This package provides fast fractions data type for rational numbers. It
is the cythonized version of @code{fractions.Fraction}.")
(license license:psfl)))
(define-public python-pathvalidate
(package
(name "python-pathvalidate")
(version "2.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pathvalidate" version))
(sha256
(base32 "0s14ycjgb44lxr2wg8lrq3b7kybmmrbf7yqz47xrqgn2gr6dk6rw"))))
(build-system python-build-system)
(arguments
'(#:tests? #f))
;; Tests disabled because of circular dependencies.
;; pathvalidate tests depend on pytest-md-report, which
;; depends on pathvalidate.
(native-inputs
(list python-allpairspy python-click python-faker python-pytest))
(home-page "https://github.com/thombashi/pathvalidate")
(synopsis "Sanitize strings representing paths")
(description
"@code{pathvalidate} is a Python library to sanitize/validate strings
representing paths or filenames.")
(license license:expat)))
(define-public python-escapism
(package
(name "python-escapism")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "escapism" version))
(sha256
(base32
"1v74243wifcwhj5zkdiispxc9kb1xvnfzilg8bq308pjnkgnn9bk"))))
(build-system python-build-system)
(home-page "https://github.com/minrk/escapism")
(synopsis "Simple, generic library for escaping strings")
(description
"This Python library provides a programming interface to, given a set of
safe characters and an escape character, escape safe strings and unescape the
result.")
(license license:expat)))
(define-public python-recommonmark
(package
(name "python-recommonmark")
(version "0.7.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "recommonmark" version))
(sha256
(base32
"0rvdd2ikdr0yg6cx6594fdzn53cmdc0g0i6qsbcdq8i2kxjdpd5x"))))
(build-system python-build-system)
(propagated-inputs
(list python-commonmark python-docutils python-sphinx))
(arguments
'(#:phases (modify-phases %standard-phases
(add-after 'unpack 'delete-test-sphinx
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")))
(delete-file "tests/test_sphinx.py")))))))
(home-page "https://github.com/readthedocs/recommonmark")
(synopsis "Docutils-compatibility bridge to CommonMark")
(description
"This package provides a docutils-compatibility bridge to CommonMark that
lets you write CommonMark inside of Docutils & Sphinx projects.")
(license license:expat)))
(define-public python-pyhull
(package
(name "python-pyhull")
(version "2015.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyhull" version))
(sha256
(base32
"091sph52c4yk1jlm5w8xidxpzbia9r7s42bnb23q4m4b56ihmzyj"))))
(build-system python-build-system)
(propagated-inputs
(list python-numpy))
(home-page "https://github.com/materialsvirtuallab/pyhull")
(synopsis "Python wrapper to Qhull")
(description
"This package provides a Python wrapper to @uref{http://www.qhull.org/,
Qhull} for the computation of the convex hull, Delaunay triangulation, and
Voronoi diagram.")
(license license:expat)))
(define-public python-opcodes
;; There are no tags in this repo, but 'opcodes/__init__.py' specifies a
;; version number, which is what we use here.
(let ((commit "0f7c7d63f5e13ce5a89d9acc3934f1b6e247ec1f"))
(package
(name "python-opcodes")
(version "0.3.14") ;from 'opcodes/__init__.py'
(home-page "https://github.com/Maratyszcza/Opcodes")
(source (origin
(method git-fetch)
(uri (git-reference (url home-page) (commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1fvxkr83gfl9f0ikd2wl2lzazzya2qz1hk4yn2a0pq742brbwpys"))))
(build-system python-build-system)
(synopsis "Database of processor instructions and opcodes")
(description
"This project documents instruction sets in a format convenient for
tools development. An instruction set is represented by three files:
@itemize
@item an XML file that describes instructions;
@item an XSD file that describes the structure of the XML file;
@item a Python module that reads the XML file and represents it as a set of
Python objects;
@end itemize
It currently provides descriptions for most user-mode x86, x86_64, and k1om
instructions up to AVX-512 and SHA (including 3dnow!+, XOP, FMA3, FMA4, TBM
and BMI2).")
(license license:bsd-2))))
(define-public python-peachpy
;; There is no tag in this repo.
(let ((commit "913d74c35a6b1d330e90bfc055208ce5b06b35a0")
(version "0.2.0") ;from 'peachpy/__init__.py'
(revision "2"))
(package
(name "python-peachpy")
(version (git-version version revision commit))
(home-page "https://github.com/Maratyszcza/PeachPy")
(source (origin
(method git-fetch)
(uri (git-reference (url home-page) (commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1wnqxspxsacw4556q0b9fbw11nhrkgn6gs8g43jdnpa35f3z9kb6"))
(patches (search-patches "python-peachpy-determinism.patch"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "nosetests")))))))
(native-inputs
(list python-nose python-rednose python-setuptools))
(propagated-inputs
(list python-six python-opcodes))
(synopsis "Efficient assembly code generation in Python")
(description
"PeachPy is a Python framework for writing high-performance assembly kernels.
PeachPy aims to simplify writing optimized assembly kernels while preserving
all optimization opportunities of traditional assembly.
PeachPy can generate ELF, MS-COFF, Mach-O object files, and assembly listings
for the Go language tool chain; it adapts to different calling conventions and
application binary interfaces (ABIs); it takes care of register allocation; it
supports x86_64 instructions up to AVX-512 and SHA.")
(license license:bsd-2))))
(define-public python-sgmllib3k
(let ((commit "799964676f35349ca2dd04503e34c2b3ad522c0d")
(revision "1"))
(package
(name "python-sgmllib3k")
(version
(git-version "1.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hsoft/sgmllib")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr"))))
(build-system python-build-system)
(home-page "https://github.com/hsoft/sgmllib")
(synopsis "Python 3 port of sgmllib")
(description "This package provides an unmaintained port of sgmllib to
Python 3. It is used to parse text files formatted in @acronym{SGML,Standard
Generalized Mark-up Language}.")
(license license:bsd-3))))
(define-public python-cwcwidth
(package
(name "python-cwcwidth")
(version "0.1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cwcwidth" version))
(sha256
(base32
"1azrphpkcyggg38xvkfb9dpc4xmmm90p02kf8dkqd4d6j5w96aj8"))))
(build-system python-build-system)
(native-inputs
(list python-cython python-pytest python-setuptools-scm python-toml
python-wheel))
(home-page
"https://github.com/sebastinas/cwcwidth")
(synopsis "Python bindings for wc(s)width")
(description "This package provides bindings for wcwidth and wcswidth
functions defined in POSIX.1-2001 and POSIX.1-2008.")
(license license:expat)))
(define-public python-pyan3
(package
(name "python-pyan3")
(version "1.2.0")
(source
(origin
;; Source tarball on PyPI lacks tests.
(method git-fetch)
(uri (git-reference
(url "https://github.com/Technologicat/pyan")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1367x25rcy2y8f0x9c2dbxl2qgdln3arr7ddyzybz2c28g6jrv5z"))
(patches (search-patches "python-pyan3-fix-positional-arguments.patch"
"python-pyan3-fix-absolute-path-bug.patch"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Extend PYTHONPATH so the built package will be found.
(setenv "GUIX_PYTHONPATH"
(string-append (getcwd) ":" (getenv "GUIX_PYTHONPATH")))
(invoke "pytest")))))))
(native-inputs
(list python-pytest python-pytest-cov python-wheel))
(propagated-inputs
(list python-jinja2))
(home-page "https://github.com/Technologicat/pyan")
(synopsis "Offline call graph generator for Python 3")
(description "Pyan takes one or more Python source files, performs
a (rather superficial) static analysis, and constructs a directed graph of the
objects in the combined source, and how they define or use each other. The
graph can be output for rendering by GraphViz or yEd.")
(license license:gpl2)))
(define-public python-multipledispatch
(package
(name "python-multipledispatch")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "multipledispatch" version))
(sha256
(base32
"1slblghfjg9fdi9zpd7gmrkvfbv20nrdgnrymcnbky8bzm8i9ax7"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
(home-page "https://github.com/mrocklin/multipledispatch/")
(synopsis "Multiple dispatch for Python based on pattern matching")
(description "This library provides an efficient mechanism for overloading
function implementations based on the types of the arguments.")
(license license:bsd-3)))
(define-public python-logical-unification
(package
(name "python-logical-unification")
(version "0.4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "logical-unification" version))
(sha256
(base32
"0j57953hi7kg2rl0163vzjzsvzdyjimnklhx6idf5vaqqf1d3p1j"))))
(build-system python-build-system)
(propagated-inputs
(list python-multipledispatch python-toolz))
(home-page "https://github.com/pythological/unification/")
(synopsis "Logical unification in Python for solving symbolic expressions")
(description "This library provides algorithms and data types for solving
symbolic expressions in pure Python using the technique of logical unification.")
(license license:bsd-3)))
(define-public python-cons
(package
(name "python-cons")
(version "0.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cons" version))
(sha256
(base32
"0w9giq196wps7mbm47c4shdzs5yvwvqajqzkim2p92i51sm5qgvm"))))
(build-system python-build-system)
(native-inputs
(list python-pytest-6 python-toml))
(propagated-inputs
(list python-logical-unification))
(home-page "https://github.com/pythological/python-cons")
(synopsis "Cons cell data structures and related algorithms for Python")
(description
"This library implements algorithms and data structures for Lisp-style
cons cells in Python.")
(license license:lgpl3+)))
(define-public python-etuples
(package
(name "python-etuples")
(version "0.3.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "etuples" version))
(sha256
(base32
"0jhfyp177v37rl0i7wqfx7q6s5qkz027hl283d1x8d0vm3w0zqc8"))))
(build-system python-build-system)
(propagated-inputs
(list python-cons python-multipledispatch))
(home-page "https://github.com/pythological/etuples")
(synopsis "S-expressions in Python")
(description
"This library implements eval'able S-expression in Python using tuple-like objects.")
(license license:asl2.0)))
(define-public python-minikanren
(package
(name "python-minikanren")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pythological/kanren")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0g7wfj5hxalwz7k1301nsjqhjpzsif1bj6wjm2x2kavlm2ypv9jc"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "pytest" "-v" "tests/" "kanren/"))
#t)))))
(native-inputs
(list python-coveralls
python-pydocstyle
python-pytest
python-pytest-cov
python-pylint
python-black
python-sympy
python-versioneer
python-coverage
python-pre-commit))
(propagated-inputs
(list python-toolz python-cons python-multipledispatch
python-etuples python-logical-unification))
(home-page "https://github.com/pythological/kanren")
(synopsis "Relational logic programming in pure Python")
(description
"The minikanren library provides an algorithmic core for computer algebra
systems in Python.")
(license license:bsd-3)))
(define-public python-dotenv
(package
(name "python-dotenv")
(version "0.20.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-dotenv" version))
(sha256
(base32 "13s9imfd0k4d7b1qy5wfqzw5vyj6rhmcrccsdz1l4g39b55b1qxp"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(setenv "PATH" (string-append (getenv "PATH") ":"
(assoc-ref outputs "out") "/bin"))
;; Skip the ipython tests.
(delete-file "tests/test_ipython.py")
(invoke "python" "-m" "pytest")))))))
(propagated-inputs
(list python-click))
(native-inputs
(list python-mock python-pytest python-sh))
(home-page "https://saurabh-kumar.com/python-dotenv/")
(synopsis "Setup environment variables according to .env files")
(description
"This package provides the @code{python-dotenv} Python module to read
key-value pairs from a @code{.env} file and set them as environment variables.")
(license license:bsd-3)))
(define-public python-dotenv-0.13.0
(package (inherit python-dotenv)
(name "python-dotenv")
(version "0.13.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-dotenv" version))
(sha256
(base32
"0x5dagmfn31phrbxlwacw3s4w5vibv8fxqc62nqcdvdhjsy0k69v"))))))
(define-public date2name
(let ((commit "6c8f37277e8ec82aa50f90b8921422be30c4e798")
(revision "1"))
(package
(name "date2name")
(version (git-version "0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/novoid/date2name")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1vq96b7n16d932nyfhnzwdwxff0zrqanidmwr4cxj2p67ad9y3w7"))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; no tests
#:phases
(modify-phases %standard-phases
(delete 'build)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((bindir (string-append (assoc-ref outputs "out") "/bin"))
(binary (string-append bindir "/date2name")))
(mkdir-p bindir)
(copy-file "date2name/__init__.py" binary)
(chmod binary #o555)))))))
(synopsis "Handling time-stamps and date-stamps in file names")
(description "By default, date2name gets the modification time of matching
files and directories and adds a datestamp in standard ISO 8601+ format
YYYY-MM-DD at the beginning of the file or directory name.")
(home-page "https://github.com/novoid/date2name")
(license license:gpl3+))))
(define-public python-braintree
(package
(name "python-braintree")
(version "4.12.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "braintree" version))
(sha256
(base32 "19kli85q18p80nsn8fm4ql6axpr7bllfqg5chv2ywhr8zr8bssll"))))
(build-system python-build-system)
(propagated-inputs
(list python-requests))
(home-page
"https://developers.braintreepayments.com/python/sdk/server/overview")
(synopsis "Braintree Python Library")
(description "The Braintree Python SDK provides integration access to the
Braintree Gateway. Braintree is a US-based payments service provider.")
(license license:expat)))
(define-public python-markuppy
(package
(name "python-markuppy")
(version "1.14")
(source
(origin
(method url-fetch)
(uri (pypi-uri "MarkupPy" version))
(sha256
(base32 "0pqdmpxbr8iq22b4css2gz5z6s01ddpzyj25x27kgbs2lp0f5phs"))))
(build-system python-build-system)
(home-page "https://github.com/tylerbakke/MarkupPy")
(synopsis "Pythonic HTML/XML generator")
(description "This Python module attempts to make it easier to generate
HTML/XML from a Python program in an intuitive, lightweight, customizable and
pythonic way.")
(license license:expat)))
(define-public python-tablib
(package
(name "python-tablib")
(version "3.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tablib" version))
(sha256
(base32 "03f1z6jq6rf67gwhbm9ma4rydm8h447a5nh5lcs5l8jg8l4aqg7q"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "GUIX_PYTHONPATH"
(string-append (getcwd) "/build/lib:"
(getenv "GUIX_PYTHONPATH")))
(invoke "pytest")))))))
(native-inputs
(list python-pandas ;; required for test-suite
python-pytest python-pytest-cov python-setuptools-scm))
(propagated-inputs
(list python-markuppy
python-odfpy
python-openpyxl
python-pyyaml
python-tabulate
python-xlrd
python-xlwt))
(home-page "https://tablib.readthedocs.io")
(synopsis "Format agnostic tabular data library")
(description "@code{tablib} is a format-agnostic tabular dataset library,
written in Python. Supported output formats are Excel (Sets + Books),
JSON (Sets + Books), YAML (Sets + Books), HTML (Sets), Jira (Sets),
TSV (Sets), ODS (Sets), CSV (Sets), and DBF (Sets).
@code{tablib} also supports Pandas DataFrames (Sets). Anyhow, since pandas is
quite huge, this Guix package doesn't depend on pandas. In case, just also
install @code{python-pandas}.")
(license license:expat)))
(define-public python-csb43
(package
(name "python-csb43")
(version "0.9.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "csb43" version))
(sha256
(base32 "0r0csl9npncnkfafg3rg6xr38d1qr0sxvq7wn7mg9bq41hvvh1si"))))
(build-system python-build-system)
(native-inputs
(list python-lxml))
(propagated-inputs
(list python-pycountry python-pyyaml python-tablib))
(home-page "https://bitbucket.org/wmj/csb43")
(synopsis "Tools for converting from the Spanish banks' format CSB norm
43 (CSB43)")
(description "This package provides tools to convert files in the format
used by multiple Spanish banks (standard 43 of the Spanish Banking Council
[CSB43] / Spanish Banking Association [AEB43]) to other formats.
Supported output formats are: OFX, HomeBank CSV, HTML, JSON, ODS (OpenDocument
spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.")
(license license:lgpl3)))
(define-public python-febelfin-coda
(package
(name "python-febelfin-coda")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "febelfin-coda" version))
(sha256
(base32 "1isnf87gxlvfbmackv7b2c978vmnj7ij0v4svhyjl8pbb9hwjsvm"))))
(build-system python-build-system)
(home-page "https://coda.b2ck.com/")
(synopsis "Module to parse Belgian CODA files")
(description "This package provides a module to parse Coded statement of
account (CODA) files as defined be the Belgian Febelfin bank standard.")
(license license:bsd-3)))
(define-public python-ofxparse
(package
(name "python-ofxparse")
(version "0.21")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ofxparse" version))
(sha256
(base32 "19y4sp5l9jqiqzzlbqdfiab42qx7d84n4xm4s7jfq397666vcyh5"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "nosetests" "-v")))))))
(native-inputs
(list python-nose))
(propagated-inputs
(list python-beautifulsoup4 python-lxml python-six))
(home-page "http://sites.google.com/site/ofxparse")
(synopsis "Tools for working with the OFX (Open Financial Exchange) file
format")
(description "@code{ofxparse} is a parser for Open Financial
Exchange (.ofx) format files. OFX files are available from almost any online
banking site, so they work well if you want to pull together your finances
from multiple sources. Online trading accounts also often provide account
statements in OFX files.")
(license license:expat)))
(define-public python-rfc3339-validator
(package
(name "python-rfc3339-validator")
(version "0.1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rfc3339_validator" version))
(sha256
(base32 "0srg0b89aikzinw72s433994k5gv5lfyarq1adhas11kz6yjm2hk"))))
(build-system python-build-system)
(native-inputs (list python-hypothesis
python-pytest
python-pytest-runner
python-strict-rfc3339))
(propagated-inputs (list python-six))
(home-page "https://github.com/naimetti/rfc3339-validator")
(synopsis "Python RFC3339 validator")
(description "This package provides a pure Python RFC3339 validator.")
(license license:expat)))
(define-public python-strict-rfc3339
(package
(name "python-strict-rfc3339")
(version "0.7")
(source
(origin
(method git-fetch) ;no tests in pypi release
(uri (git-reference
(url "https://github.com/danielrichman/strict-rfc3339")
(commit (string-append "version-" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0b12bh9v9gwkm89kxbidxw2z81lg8fx1v5fzgs313v1wgx6qb09p"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv"
;; The timestamp to local offset tests fail due to
;; missing timezone data (see:
;; https://github.com/danielrichman/strict-rfc3339/issues/9).
"-k" "not LocalOffset")))))))
(native-inputs (list python-pytest))
(home-page "https://github.com/danielrichman/strict-rfc3339")
(synopsis "RFC3339 procedures library")
(description "The @code{strict_rfc3339} Python module provides strict,
simple, lightweight RFC3339 procedures. It enables or aims to:
@itemize
@item Convert UNIX timestamps to and from RFC3339.
@item Produce RFC3339 strings with a UTC offset (Z) or with the offset that
the C time module reports is the local timezone offset.
@item Be simple with minimal dependencies/libraries.
@item Avoid timezones as much as possible.
@item Be very strict and follow RFC3339.
@end itemize")
(license license:gpl3+)))
(define-public python-stripe
(package
(name "python-stripe")
(version "2.60.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "stripe" version))
(sha256
(base32 "0258lzh4qikhinfggnlfh5aklcvg7lrvl8giqrh0yf0l61wvfrl9"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ;; tests require network
(propagated-inputs
(list python-requests))
(home-page "https://github.com/stripe/stripe-python")
(synopsis "Python bindings for the Stripe financial services' API")
(description "This package provides access to the Stripe financial
services' API. It includes a pre-defined set of classes for API resources
that initialize themselves dynamically from API responses which makes it
compatible with a wide range of versions of the Stripe API.")
(license license:expat)))
(define-public python-platformdirs
(package
(name "python-platformdirs")
(version "2.4.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "platformdirs" version))
(sha256
(base32 "1njz0h4iky8iglrb85cd07hpa3lp1a2dfr934dj65hxwzvfk61j4"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
(list python-appdirs python-pytest python-pytest-mock
python-setuptools-scm))
(home-page "https://github.com/platformdirs/platformdirs")
(synopsis "Determine the appropriate platform-specific directories")
(description "When writing applications, finding the right location to
store user data and configuration varies per platform. Even for
single-platform apps, there may by plenty of nuances in figuring out the right
location. This small Python module determines the appropriate
platform-specific directories, e.g. the ``user data dir''.")
(license license:expat)))
(define-public python-json2html
(package
(name "python-json2html")
(version "1.3.0")
(source
;; There are no tests in the PyPI tarball.
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/softvar/json2html")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ncypljnl5y8lsxy6ibcqy412kx3mzxl4ajg67568hvq98kv1sb3"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "python" "test/run_tests.py")))))))
(home-page "https://github.com/softvar/json2html")
(synopsis "Convert JSON to HTML table")
(description "@code{python-json2html} is a python module to convert JSON
into a human readable HTML table representation.")
(license license:expat)))
(define-public python-face
(package
(name "python-face")
(version "20.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "face" version))
(sha256
(base32 "0gpd9f0rmbv3rd2szi2na37l29fabkwazikjrxc6wca1lddwlnbx"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
;; Make installed package available for running the tests.
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v")))))))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-boltons))
(home-page "https://github.com/mahmoud/face")
(synopsis "CLI parsing and dispatching microframework")
(description "@code{python-face} is a Pythonic microframework for building
command-line applications.
@itemize
@item First-class subcommand support
@item Powerful middleware architecture
@item Separate parser layer
@item Built-in flagfile support
@item Handy testing utilities
@item Themeable help display
@end itemize")
(license license:bsd-3)))
(define-public python-glom
(package
(name "python-glom")
(version "20.11.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "glom" version))
(sha256
(base32 "04pba09vdr3qjvqvy14g60fscdsi35chbbyqpczdp76cpir101al"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
;; Make installed executable available for running the tests.
(setenv "PATH"
(string-append (assoc-ref outputs "out") "/bin"
":" (getenv "PATH")))
(invoke "pytest" "-v")))))))
(native-inputs
(list python-pytest python-pyyaml))
(propagated-inputs
(list python-attrs python-boltons python-face))
(home-page "https://github.com/mahmoud/glom")
(synopsis "Declaratively restructure data")
(description "Real applications have real data, and real data
nests---objects inside of objects inside of lists of objects. glom is a new
and powerful way to handle real-world data, featuring:
@itemize
@item Path-based access to nested data structures
@item Readable, meaningful error messages
@item Declarative data transformation, using lightweight, Pythonic specifications
@item Built-in data exploration and debugging features
@end itemize")
(license license:bsd-3)))
(define-public python-box
(package
(name "python-box")
(version "5.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-box" version))
(sha256
(base32
"0jhrdif57khx2hsw1q6a9x42knwcvq8ijgqyq1jmll6y6ifyzm2f"))))
(build-system python-build-system)
(propagated-inputs
(list python-msgpack python-ruamel.yaml python-toml))
(home-page "https://github.com/cdgriffith/Box")
(synopsis "Advanced Python dictionaries with dot notation access")
(description
"This package provides the @code{python-box} Python module.
It implements advanced Python dictionaries with dot notation access.")
(license license:expat)))
(define-public python-fields
(package
(name "python-fields")
(version "5.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fields" version))
(sha256
(base32 "09sppvhhkhkv9zc9g994m53z15v92csxwcf42ggkaknlv01smm1i"))))
(build-system python-build-system)
(home-page "https://python-fields.readthedocs.io/")
(synopsis "Python container class boilerplate killer")
(description "Avoid repetetive boilerplate code in Python classes.")
(license license:bsd-3)))
(define-public python-aspectlib
(package
(name "python-aspectlib")
(version "1.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aspectlib" version))
(sha256
(base32 "1am4ycf292zbmgz791z393v63w7qrynf8q5p9db2wwf2qj1fqxfj"))))
(build-system python-build-system)
(propagated-inputs (list python-fields))
(home-page "https://github.com/ionelmc/python-aspectlib")
(synopsis
"Python monkey-patching and decorators")
(description
"This package provides an aspect-oriented programming, monkey-patch
and decorators library. It is useful when changing behavior in existing
code is desired. It includes tools for debugging and testing:
simple mock/record and a complete capture/replay framework.")
(license license:bsd-2)))
(define-public python-ijson
(package
(name "python-ijson")
(version "3.1.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ijson" version))
(sha256
(base32 "1sp463ywj4jv5cp6hsv2qwiima30d09xsabxb2dyq5b17jp0640x"))))
(arguments
`(#:phases
(modify-phases %standard-phases
;; the tests run by the default setup.py require yajl 1.x,
;; but we have 2.x. yajl 1.x support is going to be removed
;; anyway, so use pytest to avoid running the yajl1-related
;; tests. See: https://github.com/ICRAR/ijson/issues/55
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(inputs
;; libyajl is optional, but compiling with it makes faster
;; backends available to ijson:
(list libyajl))
(native-inputs
(list python-pytest))
(build-system python-build-system)
(home-page "https://github.com/ICRAR/ijson")
(synopsis "Iterative JSON parser with Python iterator interfaces")
(description
"Ijson is an iterative JSON parser with standard Python iterator
interfaces.")
(license license:bsd-3)))
(define-public python-ordered-set
(package
(name "python-ordered-set")
(version "4.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ordered-set" version))
(sha256
(base32 "1a34fg3r3480nfm6652kyqql3lwixf8jirzdja9camvnr128wjk9"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-cython python-pytest))
(home-page "https://github.com/simonpercivall/orderedset")
(synopsis "Ordered Set implementation in Cython")
(description "This library provides an @code{OrderedSet} data type that
works like a regular set, but remembers insertion order. It supports the full
Python @code{set} interface.")
(license license:asl2.0)))
(define-public python-orgparse
(package
(name "python-orgparse")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "orgparse" version))
(sha256
(base32 "14iv4pg3rma9560plg0w943x04mr2cmrssda43y2d1x9acrd2n71"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "orgparse/tests")))))))
(native-inputs
(list python-pytest python-setuptools-scm))
(home-page "https://github.com/karlicoss/orgparse")
(synopsis "Emacs Org mode parser in Python")
(description
"This package is a Python module for reading Emacs Org mode files.")
(license license:bsd-3)))
(define-public dynaconf
(package
(name "dynaconf")
(version "3.1.7")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/rochacbruno/dynaconf")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0pjyjsdzairpn5vq8nzddhxwxmr18grn272nj31wcy2ipwdl3c3h"))
(patches (search-patches "dynaconf-unvendor-deps.patch"))
(modules '((guix build utils)))
(snippet '(begin
;; Remove vendored dependencies
(let ((unvendor '("click" "dotenv" "ruamel" "toml")))
(with-directory-excursion "dynaconf/vendor"
(for-each delete-file-recursively unvendor))
(with-directory-excursion "dynaconf/vendor_src"
(for-each delete-file-recursively unvendor)))))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-for-click-8
(lambda _
(substitute* "dynaconf/cli.py"
(("click.get_os_args\\()") ;deprecated from Click 8.1+
"sys.argv[1:]"))))
(replace 'check
(lambda* (#:key tests? outputs #:allow-other-keys)
(when tests?
;; These tests depend on hvac and a live Vault process.
(delete-file "tests/test_vault.py")
(invoke "make" "test_only")))))))
(propagated-inputs
(list python-click python-configobj python-dotenv-0.13.0
python-ruamel.yaml python-toml))
(native-inputs
(list python-django python-flask python-pytest python-pytest-cov
python-pytest-mock))
(home-page "https://www.dynaconf.com/")
(synopsis "The dynamic configurator for your Python project")
(description
"This package provides @code{dynaconf} the dynamic configurator manager for
your Python project. It provides features such as:
@itemize
@item Inspired by the @url{https://12factor.net/config, 12-factor application guide};
@item Settings management (default values, validation, parsing, templating);
@item Protection of sensitive information (passwords/tokens);
@item Multiple file formats @code{toml|yaml|json|ini|py} and also customizable
loaders;
@item Full support for environment variables to override existing settings
(dotenv support included);
@item Optional layered system for multiple environments @code{[default,
development, testing, production]};
@item Built-in support for Hashicorp Vault and Redis as settings and secrets storage;
@item Built-in extensions for Django and Flask web frameworks;
@item CLI for common operations such as @code{init, list, write, validate, export}.
@end itemize")
(license license:expat)))
(define-public python-pudb
(package
(name "python-pudb")
(version "2022.1.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "pudb" version))
(sha256
(base32
"0jk61qgacvwy6zkz1f55jawax4ggb1aawy6w3wnfkzqrkvd3ms2q"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-before 'check 'fix-read-only-home
(lambda _
(setenv "HOME" "/tmp")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest python-pytest-mock python-numpy))
(propagated-inputs (list python-jedi python-pygments python-urwid
python-urwid-readline))
(home-page "https://documen.tician.de/pudb/")
(synopsis "Console-based Python debugger")
(description
"@command{pudb} is a full-screen, console-based Python debugger providing
all the niceties of modern GUI-based debuggers in a more lightweight and
keyboard-friendly package.")
(license license:expat)))
(define-public pudb
(deprecated-package "pudb" python-pudb))
(define-public python-iwlib
(package
(name "python-iwlib")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "iwlib" version))
(sha256
(base32 "18bd35wn7zclalpqbry42pf7bjrdggxkkw58mc0k1vkhg9czc1d8"))))
(build-system python-build-system)
(inputs
(list wireless-tools))
(propagated-inputs (list python-cffi))
(home-page "https://github.com/nhoad/python-iwlib")
(synopsis "Python module to interface with iwlib")
(description
"This package provides a Python interface to iw wireless tools.")
(license license:gpl2)))
(define-public python-pdoc3
(package
(name "python-pdoc3")
(version "0.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pdoc3" version))
(sha256
(base32 "1dz4hw10ngidzg9cjvflc8nlrwrjbb3ijhmaw4w6f039p6yff8jz"))
(patches
(search-patches "python-pdoc3-tests.patch"))))
(build-system python-build-system)
(native-inputs
(list python-setuptools-git python-setuptools-scm))
(propagated-inputs (list python-mako python-markdown))
(home-page "https://pdoc3.github.io/pdoc/")
(synopsis "Auto-generate API documentation for Python projects")
(description
"This package auto-generates API documentation from Python projects
already existing modules and objects docstrings.")
(license license:agpl3+)))
(define-public python-piexif
(package
(name "python-piexif")
(version "1.1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "piexif" version ".zip"))
(sha256
(base32 "06sz58q4mrw472p8fbnq7wsj8zpi5js5r8phm2hiwfmz0v33bjw3"))
(patches
(search-patches "python-piexif-fix-tests-with-pillow-7.2.patch"))))
(build-system python-build-system)
(native-inputs
(list unzip python-pillow))
(home-page "https://github.com/hMatoba/Piexif")
(synopsis "Simplify exif manipulations with Python")
(description "Piexif simplifies interacting with EXIF data in
Python. It includes the tools necessary for extracting, creating,
manipulating, converting and writing EXIF data to JPEG, WebP and TIFF files.")
(license license:expat)))
(define-public python-pyrss2gen
(package
(name "python-pyrss2gen")
(version "1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyRSS2Gen" version))
(sha256
(base32 "1rvf5jw9hknqz02rp1vg8abgb1lpa0bc65l7ylmlillqx7bswq3r"))))
(build-system python-build-system)
(home-page "http://dalkescientific.com/Python/PyRSS2Gen.html")
(synopsis "Generate RSS 2.0 feeds using a Python data structure")
(description "PyRSS2Gen is the interface to generate RSS 2.0 feeds.
PyRSS2Gen builds the feed up by using a XML generator.")
(license license:bsd-3)))
(define-public python-yapsy
(package
(name "python-yapsy")
(version "1.12.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Yapsy" version))
(sha256
(base32 "12rznbnswfw0w7qfbvmmffr9r317gl1rqg36nijwzsklkjgks4fq"))))
(build-system python-build-system)
(home-page "http://yapsy.sourceforge.net")
(synopsis "Simple plugin system for Python applications")
(description "Yapsy, or Yet Another Plugin SYstem, is a small library
implementing the core mechanisms needed to build a plugin system into a wider
application.
The main purpose is to depend only on Python's standard libraries and to
implement only the basic functionalities needed to detect, load and keep track
of several plugins.")
(license license:bsd-3)))
(define-public python-doit
(package
(name "python-doit")
(version "0.34.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "doit" version))
(sha256
(base32 "0bf0m9n0hyjvjpv051zd26725j8jr23gyvc37v3kkadwbh8dxwcf"))))
(build-system python-build-system)
(propagated-inputs
(list python-cloudpickle python-pyinotify))
(native-inputs
(list python-pytest))
(home-page "https://pydoit.org")
(synopsis "Automation tool to execute any kind of task in a build-tools
fashion")
(description "doit is an automation tool that brings the power of
build-tools to execute any kind of task.
A task describes some computation to be done (actions), and contains some
extra meta-data. The actions can be external programs or Python functions. A
single task may define more than one action.doit uses the task’s meta-data
to:
@itemize
@item cache task results
@item correct execution order
@item parallel execution
@item powerful dependency system
@end itemize")
(license license:expat)))
(define-public python-phpserialize
(package
(name "python-phpserialize")
(version "1.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "phpserialize" version))
(sha256
(base32 "19qgkb9z4zjbjxlpwh2w6pxkz2j3iymnydi69jl0jg905lqjsrxz"))))
(build-system python-build-system)
(arguments
(list
;; tests missing in pypi archive, anhow they are quite simple and not worth any hassle
#:tests? #f))
(home-page "http://github.com/mitsuhiko/phpserialize")
(synopsis "Python port of the serialize and unserialize functions of PHP")
(description
"This package provides a port of the serialize and unserialize functions of PHP for Python")
(license license:bsd-3)))
(define-public nikola
(package
(name "nikola")
(version "8.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Nikola" version))
(sha256
(base32 "1h96y4sfypp2fbqxa8xrqch5f7r3srm2ly222k9w2n143h2spx4m"))))
(build-system python-build-system)
(propagated-inputs
(list python-babel
python-blinker
python-dateutil
python-docutils
python-doit
python-jinja2 ;; for themes
python-lxml
python-mako
python-markdown
python-natsort
python-notebook ;; for ipynb
python-phpserialize ;; for wordpress import
python-piexif
python-pillow
python-pygments
python-pyrss2gen
python-requests
python-ruamel.yaml ;; for YAML metadata
python-unidecode
python-yapsy))
(native-inputs
(list python-coverage
python-flake8
python-freezegun
python-pytest
python-pytest-cov))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "tests" "--no-cov"
"-k" "not test_compiling_markdown[hilite]")))))))
(home-page "https://getnikola.com/")
(synopsis "Modular, fast and simple static website and blog generator")
(description "Nikola generates static websites and blogs. Out of the box,
it supports reStructuredText, Markdown, IPython (Jupyter) Notebooks and HTML,
and has plugins for many other formats.")
(license license:expat)))
(define-public nbss-upload
(package
(name "nbss-upload")
(version "0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nbss-upload" version))
(sha256
(base32 "0jhyfm7w2ssknmh9789fmpnf79xr7sxbdcjwak6hfha6qparvk38"))))
(build-system python-build-system)
(propagated-inputs
(list python-requests))
(arguments
`(#:tests? #f)) ;no tests
(home-page "https://github.com/notebook-sharing-space/nbss-upload")
(synopsis "Upload notebooks to a notebooksharing.space instance")
(description
"Upload notebooks as @code{.ipynb}, @code{.rmd}, and @code{.html} to a
notebooksharing.space instance.")
(license license:bsd-3)))
(define-public python-reedsolo
(package
(name "python-reedsolo")
(version "1.5.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "reedsolo" version))
(sha256
(base32 "09q15ji9iac3nmmxrcdvz8ynldvvqanqy3hs6q3cp327hgf5rcmq"))))
(build-system python-build-system)
(home-page "https://github.com/tomerfiliba/reedsolomon")
(synopsis "Pure-Python Reed Solomon encoder/decoder")
(description "A pure-python universal errors-and-erasures Reed-Solomon
Codec, based on the tutorial at Wikiversity. This is a burst-type
implementation, so that it supports any Galois field higher than 2^3,
but not binary streams.")
(license license:public-domain)))
(define-public python-esprima
(package
(name "python-esprima")
(version "4.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "esprima" version))
(sha256
(base32 "1vi32g991lxcxzmncfiszh8m9bwkh4887szskkdi0a9wdn3imnq8"))))
(build-system python-build-system)
(home-page "https://github.com/Kronuz/esprima-python")
(synopsis
"ECMAScript parsing infrastructure for analysis in Python")
(description
"This package provides ECMAScript parsing infrastructure for
multipurpose analysis in Python.")
(license license:bsd-3)))
(define-public python-types-dataclasses
(package
(name "python-types-dataclasses")
(version "0.6.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "types-dataclasses" version))
(sha256
(base32
"1mq6qd365m8ml889zl5dxj9kncjv71iq1d1fvgj59y0ixlpm6s35"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for dataclasses")
(description
"This package provides a collection of library stubs for Python, with
static types.")
(license license:asl2.0)))
(define-public python-types-docutils
(package
(name "python-types-docutils")
(version "0.18.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "types-docutils" version))
(sha256
(base32 "14ypv0x6fk1pjw0bvvr1lkb2g6dvq2pwvbd5b5pzjl6182fhmaim"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for docutils")
(description "This package provides a collection of library stubs for
Python, with static types.")
(license license:asl2.0)))
(define-public python-psycopg2-binary
(package
(name "python-psycopg2-binary")
(version "2.9.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "psycopg2-binary" version))
(sha256
(base32
"0kpaxg3lg5wg5ww5kxmzi2z2d7arsx13ci915d8a2pf17lqza7bn"))))
(build-system python-build-system)
(inputs (list postgresql))
(arguments
;; Tests are disable because they need a live instance of PostgreSQL.
'(#:tests? #f))
(home-page "https://psycopg.org/")
(synopsis "PostgreSQL database adapter for Python")
(description
"Psycopg is a PostgreSQL database adapter for the Python programming
language. Its main features are the complete implementation of the Python DB
API 2.0 specification and the thread safety (several threads can share the
same connection). It was designed for heavily multi-threaded applications
that create and destroy lots of cursors and make a large number of concurrent
@code{INSERT}s or @code{UPDATE}s.
Psycopg 2 is mostly implemented in C as a libpq wrapper, resulting in
being both efficient and secure. It features client-side and
server-side cursors, asynchronous communication and notifications,
@code{COPY TO}/@code{COPY FROM} support. Many Python types are supported
out-of-the-box and adapted to matching PostgreSQL data types;
adaptation can be extended and customized thanks to a flexible objects
adaptation system.
Psycopg 2 is both Unicode and Python 3 friendly.")
(license license:lgpl3+)))
(define-public python-pyfuse3
(package
(name "python-pyfuse3")
(version "3.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyfuse3" version))
(sha256
(base32 "0cvybynv9igssfa4l13q09gb6m7afmwk34wsbq8jk14sqpd4dl92"))))
(build-system python-build-system)
(native-inputs (list pkg-config))
(inputs (list fuse-3))
(propagated-inputs (list python-pytest-trio))
(home-page "https://github.com/libfuse/pyfuse3")
(synopsis "Python bindings FUSE 3")
(description "This package provides Python 3 bindings for libfuse 3 with
async I/O support.")
(license license:gpl2+)))
(define-public python-ansicolors
(package
(name "python-ansicolors")
(version "1.1.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansicolors" version ".zip"))
(sha256
(base32 "1q3jqglkq4z0f6nkkn8bswcwqg012i2grrc27kabr8286dg4zycr"))))
(build-system python-build-system)
(native-inputs
(list python-tox
python-pytest-cov
unzip))
(home-page "https://github.com/jonathaneunice/colors/")
(synopsis "ANSI colors for Python")
(description
"This package adds ANSI colors and decorations to your strings.")
(license license:isc)))
(define-public python-types-freezegun
(package
(name "python-types-freezegun")
(version "1.1.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "types-freezegun" version))
(sha256
(base32 "08g926s8343zwq140zcfwly3qfgmahm7lp0vgb3ics549b2hifzl"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for @code{freezegun}")
(description "This package contains typing stubs for for @code{freezegun}, a
very small subset the Python stubs contained in the complete @code{typeshed}
collection.")
(license license:asl2.0)))
(define-public python-types-protobuf
(package
(name "python-types-protobuf")
(version "3.20.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "types-protobuf" version))
(sha256
(base32
"000f8n6d4ilihiaf590k73rx3327jh8ima5q5dpxlwz3frj45qrn"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for @code{protobuf}")
(description "This package contains typing stubs for @code{protobuf}, a
very small subset the Python stubs contained in the complete @code{typeshed}
collection.")
(license license:asl2.0)))
(define-public python-types-pytz
(package
(name "python-types-pytz")
(version "2021.3.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "types-pytz" version))
(sha256
(base32 "14yr5hg2ww8s4a0mz2bkd549fv8qgm538fnzxvqv92ld1pcpym3l"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for pytz")
(description "This package contains typing stubs for @code{pytz}, a very
small subset the Python stubs contained in the complete @code{typeshed}
collection.")
(license license:asl2.0)))
(define-public python-types-toml
(package
(name "python-types-toml")
(version "0.10.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "types-toml" version))
(sha256
(base32 "10400bd3yv6rjfnq8galskkbpqz1sfx9sfgr5qwvw04270x4cjgr"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for TOML")
(description "This package contains typing stubs for TOML, a very small
subset the Python stubs contained in the complete @code{typeshed}
collection.")
(license license:asl2.0)))
(define-public python-types-ujson
(package
(name "python-types-ujson")
(version "4.2.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "types-ujson" version))
(sha256
(base32
"0k9n9hsq4k2zaakdwbkcsvi7m8d3mv2y9yl6f171y58ld4qpcxcy"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for ujson")
(description
"This is a PEP 561 type stub package for the ujson package. It can be
used by type-checking tools like mypy, PyCharm, pytype etc. to check code that
uses ujson.")
(license license:asl2.0)))
(define-public python-stltools
(package
(name "python-stltools")
(version "2022.01.20")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rsmith-nl/stltools")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1k6dhszza4lpy46qffaqx5zr70ikfqqysbacy7zabnrvz09fd4rs"))))
(build-system python-build-system)
(arguments
`(#:use-setuptools? #f
#:phases
(modify-phases %standard-phases
(delete 'build)
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((moddir (string-append (site-packages inputs outputs) "/stltools"))
(bindir (string-append (assoc-ref outputs "out") "/bin")))
(copy-recursively "stltools" moddir)
(mkdir-p bindir)
(for-each
(lambda (script)
(let ((source (string-append script ".py"))
(target (string-append bindir "/" script)))
(copy-file source target)
(chmod target #o555)))
'("stl2pov" "stl2ps" "stl2pdf" "stlinfo")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "py.test" "-v")))))))
(propagated-inputs (list python-pycairo))
(native-inputs (list python-pytest))
(home-page "https://github.com/rsmith-nl/stltools")
(synopsis "Python modules and scripts for handling STL files")
(description "This package consists of Python modules and scripts for
manipulating stereolithography (STL) files. It can convert STL files into
POV-ray meshes, PDF and PostScript. The Python modules allow for reading and
writing STL files. It supports both the text and binary forms of STL.")
(license license:expat)))
(define-public python-multipart
(package
(name "python-multipart")
(version "0.0.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "python-multipart" version))
(sha256
(base32
"0hzshd665rl1bkwvaj9va4j3gs8nmb478fbvligx20663xhmzfzp"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
(native-inputs (list python-pyyaml python-mock python-pytest-cov))
(arguments
`(#:phases (modify-phases %standard-phases
;; There is a bug in the test_suit specification.
(add-after 'unpack 'patch-test-suite
(lambda _
;; Make compatible with PyYAML 6.
(substitute* "multipart/tests/test_multipart.py"
(("yaml.load")
"yaml.safe_load"))
(substitute* "setup.py"
(("test_suite = 'multipart.tests.suite'")
"test_suite = 'multipart.tests.test_multipart.suite'"))
;; Needed by PyYAML 6.0.
(substitute* "multipart/tests/test_multipart.py"
(("yaml_data = yaml.load\\(f\\)")
"yaml_data = yaml.load(f, Loader=yaml.SafeLoader)")))))))
(home-page "https://github.com/andrew-d/python-multipart")
(synopsis "Streaming multipart parser for Python")
(description
"This package provides a streaming multipart parser for Python.")
(license license:asl2.0)))
(define-public python-aiopg
(package
(name "python-aiopg")
(version "1.3.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "aiopg" version))
(sha256
(base32
"1mwmypsfzh8adjbyvf7kqv9h3k1kf5ykhi1g3ahw4wqdxaj6nz2l"))))
(build-system python-build-system)
(native-inputs (list python-sqlalchemy))
(propagated-inputs (list python-async-timeout python-psycopg2-binary))
(home-page "https://aiopg.readthedocs.io")
(synopsis "Postgres integration with asyncio")
(description
"aiopg is a library for accessing a PostgreSQL
database from the asyncio (PEP-3156/tulip) framework. It wraps
asynchronous features of the Psycopg database driver.")
(license license:bsd-3)))
(define-public python-verspec
(package
(name "python-verspec")
(version "0.1.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "verspec" version))
(sha256
(base32
"07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64"))))
(build-system python-build-system)
(native-inputs (list python-coverage python-flake8 python-mypy
python-pretend python-pytest))
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "touch" "test/__init__.py")
(invoke "pytest")))))))
(home-page "https://github.com/jimporter/verspec")
(synopsis "Flexible version handling for Python")
(description
"This Python library handles software versions and specifiers. It is
adapted from the @code{packaging} package.")
(license (list license:bsd-2 license:asl2.0))))
(define-public python-shtab
(package
(name "python-shtab")
(version "1.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "shtab" version))
(sha256
(base32 "127mymfm7r0hddk2vknqq34fj6dirj6ip990i3g4isx0lsd7pnsc"))))
(build-system python-build-system)
(native-inputs
(list bash
python-pytest
python-pytest-cov
python-pytest-timeout
python-setuptools-scm
python-wheel))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace
'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest")))))))
(home-page "https://github.com/iterative/shtab")
(synopsis "Automagic shell tab completion for Python CLI applications")
(description
"This package automatically generates shell tab completion scripts for
Python CLI apps.")
(license license:asl2.0)))
(define-public python-style
(package
(name "python-style")
(version "1.1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "style" version))
(sha256
(base32 "1dcfb578v9mrwh92rgms87gql0gp4vgj6l9hpgyfg0wbd3rh3bfh"))))
(build-system python-build-system)
(home-page "https://github.com/lmittmann/style")
(synopsis "Terminal string styling")
(description
"@code{python-style} is a simple terminal string styling package. Its API is
a port of the chalk package for javascript.")
(license license:expat)))
(define-public python-sre-yield
(package
(name "python-sre-yield")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sre_yield" version))
(sha256
(base32
"12kv3mvdr22g2v9wfr5aabh1f58s817dbh8mrlfzxzxs7hm1lkz9"))))
(build-system python-build-system)
(native-inputs (list python-nose))
(home-page "https://github.com/google/sre_yield")
(synopsis "Expands a regular expression to its possible matches")
(description
"The goal of sre_yield is to efficiently generate all values that can
match a given regular expression, or count possible matches efficiently. It
uses the parsed regular expression, so you get a much more accurate result
than trying to just split strings.")
(license license:asl2.0)))
(define-public python-pyperf
(package
(name "python-pyperf")
(version "2.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pyperf" version))
(sha256
(base32 "189qf9wdbig0fk4n3bavx8acgdbay5lllfvw48jvbfaafb7y5hja"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
;; Some of these tests fail with:
;;
;; ModuleNotFoundError: No module named 'pyperf'
;;
;; even when calling ‘add-installed-pythonpath’ in the ‘check’
;; phase.
(delete-file "pyperf/tests/test_examples.py")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; From tox.ini's ‘testenv.commands’.
(invoke "python" "-bb" "-Wd"
"-m" "unittest" "discover"
"-s" "pyperf/tests/" "-v")))))))
(native-inputs
(list python-psutil))
(home-page "https://github.com/psf/pyperf")
(synopsis "Toolkit for running Python benchmarks")
(description "The Python @code{pyperf} module is a toolkit for writing,
running and analyzing benchmarks. It features a simple API that can:
@itemize
@item automatically calibrate a benchmark for a time budget;
@item spawn multiple worker processes;
@item compute the mean and standard deviation;
@item detect if a benchmark result seems unstable;
@item store benchmark results in JSON format;
@item support multiple units: seconds, bytes and integer.
@end itemize")
(license license:expat)))
(define-public python-pydispatcher
(package
(name "python-pydispatcher")
(version "2.0.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyDispatcher" version))
(sha256
(base32 "1bswbmhlbqdxlgbxlb6xrlm4k253sg8nvpl1whgsys8p3fg0cw2m"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(native-inputs (list python-pytest))
(home-page "http://pydispatcher.sourceforge.net")
(synopsis "Multi-producer-multi-consumer signal dispatching mechanism")
(description "PyDispatcher is an enhanced version of Patrick K. O’Brien’s
original @code{dispatcher.py} module. It provides the Python programmer with
a robust mechanism for event routing within various application contexts.
Included in the package are the robustapply and saferef modules, which
provide the ability to selectively apply arguments to callable objects
and to reference instance methods using weak-references.")
(license license:bsd-3)))
(define-public python-queuelib
(package
(name "python-queuelib")
(version "1.6.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "queuelib" version))
(sha256
(base32 "1lpwq8wx3025i14y5h0hbald2ypbarf081pql6cqcak4y9kp482b"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/scrapy/queuelib")
(synopsis
"Collection of persistent (disk-based) and non-persistent (memory-based) queues")
(description "Queuelib is a Python library that implements object
collections which are stored in memory or persisted to disk, provide a
simple API, and run fast.
Queuelib provides collections for queues (FIFO), stacks (LIFO), queues
sorted by priority and queues that are emptied in a round-robin
fashion.")
(license license:bsd-3)))
(define-public python-posix-ipc
(package
(name "python-posix-ipc")
(version "1.0.5")
(source
(origin
;; The source distributed on PyPI is prebuild.
(method git-fetch)
(uri (git-reference
(url "https://github.com/osvenskan/posix_ipc")
(commit (string-append "rel" version))))
(file-name (git-file-name name version))
(sha256
(base32 "17y4d0pmvp199c5hbs602ailhlh9f9zv89kmpbd8jhyl6rgaxsvs"))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-cc-path
(lambda _
(substitute* "prober.py"
(("cmd = .cc")
(string-append "cmd = \"" #$(cc-for-target)))))))))
(home-page "http://semanchuk.com/philip/posix_ipc/")
(synopsis "POSIX IPC primitives for Python")
(description
"This package provides POSIX IPC primitives - semaphores, shared memory and
message queues for Python.")
(license license:bsd-3))) ; BSD like Copyright (c) 2018, Philip Semanchuk
(define-public python-itemadapter
(package
(name "python-itemadapter")
(version "0.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "itemadapter" version))
(sha256
(base32 "083wp3h2brh8x19jbdr8rz3biqwp3jlqd0rfzcyrjyhssffsgdh5"))))
(build-system python-build-system)
(home-page "https://github.com/scrapy/itemadapter")
(synopsis "Common interface for data container classes")
(description "The ItemAdapter class is a wrapper for data container
objects, providing a common interface to handle objects of different
types in an uniform manner, regardless of their underlying implementation.
Currently supported types are:
@itemize
@item scrapy.item.Item
@item dict
@item dataclass-based classes
@item attrs-based classes
@item pydantic-based classes
@end itemize
Additionally, interaction with arbitrary types is supported by
implementing a pre-defined interface.")
(license license:bsd-3)))
(define-public python-itemloaders
(package
(name "python-itemloaders")
(version "1.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "itemloaders" version))
(sha256
(base32 "15hc78h90qhwass1bga1c3xar2dd6j8sxg61zg6jvh74lf6csxqj"))))
(build-system python-build-system)
(propagated-inputs
(list python-itemadapter python-jmespath python-parsel python-w3lib))
(home-page "https://github.com/scrapy/itemloaders")
(synopsis "Base library for scrapy's ItemLoader")
(description "Itemloaders is a library that helps you collect data
from HTML and XML sources. It comes in handy to extract data from web
pages, as it supports data extraction using CSS and XPath Selectors.
It’s specially useful when you need to standardize the data from many
sources. For example, it allows you to have all your casting and
parsing rules in a single place.")
(license license:bsd-3)))
(define-public python-hypy-utils
(package
(name "python-hypy-utils")
(version "1.0.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "hypy_utils" version))
(sha256
(base32
"05csk0x8ivavq88x457cq5hwjcdirfbkzj7bbg5qgnpnf2dxxhiw"))))
(build-system python-build-system)
(home-page "https://github.com/hykilpikonna/HyPyUtils")
(synopsis "Python utility functions for HyDEV")
(description "This module provides Python utility functions for modifying
and setting the color of terminal output, via HyDEV.")
(license license:expat)))
(define-public python-mike
(package
(name "python-mike")
(version "1.1.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "mike" version))
(sha256
(base32
"0yxp816x7s948xsd0fifvq9shg01xdxlifd9rzf5y2rd9iwz3hsn"))))
(build-system python-build-system)
(native-inputs
(list python-coverage python-flake8 python-shtab))
(propagated-inputs
(list python-jinja2 python-mkdocs python-pyyaml python-verspec))
(home-page "https://github.com/jimporter/mike")
(synopsis "Manage multiple versions of MkDocs-powered documentation")
(description
"This package provides a Python utility to easily deploy multiple
versions of MkDocs-powered docs to a Git branch. It is suitable for deploying
to Github via gh-pages.")
(license license:bsd-3)))
(define-public python-arpeggio
(package
(name "python-arpeggio")
(version "2.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "Arpeggio" version))
(sha256
(base32
"0ggdsck1wpladd5bh9drhkmm86bblgk2wagrhn3sdf4v04wkic6n"))))
(build-system python-build-system)
(native-inputs (list python-coverage
python-coveralls
python-flake8
python-mike
python-mkdocs
python-pytest
python-pytest-runner
python-twine
python-wheel))
(home-page "https://github.com/textX/Arpeggio")
(synopsis "Packrat parser interpreter for Python")
(description
"This Python library provides a recursive descent parser with backtracking
and memoization (a.k.a. packrat parser). Arpeggio grammars are based on PEG
formalism. Arpeggio's main use is a foundation for a toolchain for DSL
development but it can be used for all sorts of general purpose parsing.")
(license license:expat)))
(define-public python-flatten-json
(package
(name "python-flatten-json")
(version "0.1.13")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flatten_json" version))
(sha256
(base32 "007m28gfs7pmz2rqqjxpial6skzw26hrfi8vrdy9agi9x0rj6dgf"))))
(build-system python-build-system)
(propagated-inputs (list python-six))
(home-page "https://github.com/amirziai/flatten")
(synopsis "Flatten JSON objects")
(description
"The @code{flatten_json} Python library flattens the hierarchy in your
object, which can be useful if you want to force your objects into a table.")
(license license:expat)))
(define-public python-deepmerge
(package
(name "python-deepmerge")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "deepmerge" version))
(sha256
(base32 "06hagzg8ccmjzqvszdxb52jgx5il8a1jdz41n4dpkyyjsfg7fi2b"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
(list python-setuptools-scm
python-pytest))
(home-page "https://deepmerge.readthedocs.io/en/latest/")
(synopsis "Merge nested data structures")
(description
"The @code{deep-merge} Python library provides a toolset to deeply merge
nested data structures in Python like lists and dictionaries.")
(license license:expat)))
(define-public python-murmurhash3
(package
(name "python-murmurhash3")
(version "2.3.5")
(source (origin
(method url-fetch)
(uri (pypi-uri "murmurhash3" version))
(sha256
(base32
"1gdzys1212dx70byz07ipknbw1awbqskh6aznlkm85js8b8qfczm"))))
(build-system python-build-system)
(native-inputs (list python-cython python-pytest))
(inputs (list python))
(arguments
(list #:modules
'((ice-9 ftw) (ice-9 match)
(guix build utils)
(guix build python-build-system))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-source-file-times-to-1980
(lambda _
(let ((circa-1980 (* 10 366 24 60 60)))
(ftw "."
(lambda (file stat flag)
(utime file circa-1980 circa-1980) #t))))))))
(home-page "https://github.com/veegee/mmh3")
(synopsis "Python wrapper for MurmurHash (MurmurHash3)")
(description
"@code{murmurhash3} is a Python library for MurmurHash (MurmurHash3), a set
of fast and robust hash functions. This library is a Python extension module
written in C.")
(license license:public-domain)))
(define-public python-murmurhash
(package
(name "python-murmurhash")
(version "1.0.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "murmurhash" version))
(sha256
(base32
"0vwkn98c703nvsigl2nz99rax2pafkx3djjfkgc49jiipmp3j2k3"))))
(build-system python-build-system)
(native-inputs (list python-cython python-pytest))
(inputs (list python python-murmurhash3))
(arguments
(list #:modules
'((ice-9 ftw) (ice-9 match)
(guix build utils)
(guix build python-build-system))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-source-file-times-to-1980
(lambda _
(let ((circa-1980 (* 10 366 24 60 60)))
(ftw "."
(lambda (file stat flag)
(utime file circa-1980 circa-1980) #t))))))))
(home-page "https://github.com/explosion/murmurhash")
(synopsis "Cython bindings for MurmurHash2")
(description "This package provides Cython bindings for MurmurHash2.")
(license license:expat)))
;; Scooby requires for its test suite a ‘pyvips’ package that is missing its
;; VIPS dependency.
(define python-pyvips-for-python-scooby
(package
(inherit python-pyvips)
(name "python-pyvips-for-python-scooby")
(arguments
(substitute-keyword-arguments (package-arguments python-pyvips)
((#:phases phases)
#~(modify-phases #$phases
(delete 'fix-paths)
;; The checks won't succeed without VIPS.
(delete 'check)
(delete 'sanity-check)))))
(inputs
(modify-inputs (package-inputs python-pyvips)
(delete "vips")))
(synopsis "pyvips for Scooby's test suite")))
(define-public python-scooby
(package
(name "python-scooby")
(version "0.5.12")
(source
;; The PyPI tarball does not contain the tests.
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/banesullivan/scooby")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1gkpmz8wl3jg8ylf1na35308sznw2g9wx33zqlyq5i2gpy2ml9mw"))))
(build-system python-build-system)
(native-inputs
(list python-beautifulsoup4
python-numpy
python-pytest
python-pytest-cov
python-pyvips-for-python-scooby
python-scipy))
(propagated-inputs
(list python-psutil))
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
(substitute* "tests/test_scooby.py"
;; The test suite uses the no-version PyPI package
;; (https://pypi.org/project/no-version/),
;; but it doesn't seem worth packaging in Guix just for this.
(("scooby\\.report\\.VERSION_NOT_FOUND")
"scooby.report.MODULE_NOT_FOUND")
(("^ +import no_version # noqa.*") ""))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(home-page "https://github.com/banesullivan/scooby")
(synopsis "Report hardware information and Python package versions")
(description
"The Scooby package reports the following information about the currently
running system:
@itemize
@item operating system name;
@item hardware information including machine type (e.g., @samp{i386},
@samp{x86_64}, etc.), CPU count and total RAM;
@item Python environment (e.g., Python, IPython, etc.);
@item file system name;
@item Python version;
@item versions of specified Python packages.
@end itemize
It can generate reports as HTML tables or plain text lists.
Scooby has no required dependencies, and only few optional dependencies.")
(license license:expat)))
(define-public python-cymem
(package
(name "python-cymem")
(version "2.0.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "cymem" version))
(sha256
(base32
"0pkyy60zk9654sj991w111p1l0m8wvz36nslw96x6nb9h6sjb5qn"))))
(build-system python-build-system)
(native-inputs
(list python-cython
python-pytest))
(inputs
(list python))
(arguments
(list
#:modules '((ice-9 ftw)
(ice-9 match)
(guix build utils)
(guix build python-build-system))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-source-file-times-to-1980
;; XXX One of the tests uses a ZIP library to pack up some of the
;; source tree, and fails with "ZIP does not support timestamps
;; before 1980". Work around this by setting the file times in the
;; source tree to sometime in early 1980.
(lambda _
(let ((circa-1980 (* 10 366 24 60 60)))
(ftw "." (lambda (file stat flag)
(utime file circa-1980 circa-1980)
#t))))))))
(home-page "https://github.com/explosion/cymem")
(synopsis "Cython memory pool for RAII-style memory management")
(description
"Cymem provides two small memory-management helpers for Cython. They make it
easy to tie memory to a Python object's life-cycle, so that the memory is freed
when the object is garbage collected.")
(license license:expat)))
(define-public python-preshed
(package
(name "python-preshed")
(version "3.0.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "preshed" version))
(sha256
(base32
"0akpydd23xqxx9d04drsnw9140rb3cv07r1zpzqz5wm0lf47afzv"))))
(build-system python-build-system)
(native-inputs (list python-cython python-cymem python-pytest))
(inputs (list python python-cymem python-murmurhash))
(arguments
(list #:modules
'((ice-9 ftw) (ice-9 match)
(guix build utils)
(guix build python-build-system))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'set-source-file-times-to-1980
(lambda _
(let ((circa-1980 (* 10 366 24 60 60)))
(ftw "."
(lambda (file stat flag)
(utime file circa-1980 circa-1980) #t))))))))
(home-page "https://github.com/explosion/preshed")
(synopsis "Cython hash tables that assume keys are pre-hashed")
(description
"Simple but high performance Cython hash table mapping pre-randomized keys
to void* values.")
(license license:expat)))
(define-public python-catalogue
(package
(name "python-catalogue")
(version "2.0.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "catalogue" version))
(sha256
(base32
"0srdxiil2xys8q1gpc1nvzhvis3a33d8a7amk2i1rlpbg6p36pak"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(inputs (list python python-zipp python-typing-extensions python-mypy))
(home-page "https://github.com/explosion/catalogue")
(synopsis "Lightweight function registries for your library")
(description
"\"catalogue\" is a tiny, zero-dependencies library that
makes it easy to add function (or object) registries to your code. Function
registries are helpful when you have objects that need to be both easily
serializable and fully customizable. Instead of passing a function into your
object, you pass in an identifier name, which the object can use to lookup the
function from the registry. This makes the object easy to serialize, because the
name is a simple string. If you instead saved the function, you'd have to use
Pickle for serialization, which has many drawbacks.")
(license license:expat)))
(define-public python-wasabi
(package
(name "python-wasabi")
(version "0.9.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "wasabi" version))
(sha256
(base32
"1kwqfalq7qxs9f7xb2m055g01qpbznyzxl7sjnzjdvvhkczg39md"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/ines/wasabi")
(synopsis "Console printing and formatting toolkit")
(description
"This package provides a lightweight console printing and formatting
toolkit for Python.")
(license license:expat)))
(define-public python-srt
(package
(name "python-srt")
(version "3.5.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "srt" version))
(sha256
(base32
"0l24710spxarijmv3h7iicvx0lv6m3d4xg77nd9kyv8jwifav93s"))))
(build-system python-build-system)
(home-page "https://github.com/cdown/srt")
(synopsis "SRT parsing library")
(description
"This package provides a Python library for parsing, modifying, and
composing subtitles in the SRT file format.")
(license license:expat)))
(define-public python-gatt
(package
(name "python-gatt")
(version "0.2.7")
(source (origin
(method url-fetch)
(uri (pypi-uri "gatt" version))
(sha256
(base32
"0fjf066jixk30fr8xwfalwfnhqpr56yv0cccyypnx2qp9bi9svb2"))))
(propagated-inputs (list python-dbus python-pygobject))
(build-system python-build-system)
(home-page "https://github.com/getsenic/gatt-python")
(synopsis "Bluetooth GATT SDK for Python")
(description "The Bluetooth @acronym{GATT, Generic ATTribute Profile}
@acronym{SDK, Software Development Kit} for Python helps you implement and
communicate with any Bluetooth Low Energy device that has a GATT
profile. It supports:
@itemize @bullet
@item Discovering nearby Bluetooth Low Energy devices
@item Connecting and disconnecting devices
@item Implementing your custom GATT profile
@item Accessing all GATT services
@item Accessing all GATT characteristics
@item Reading characteristic values
@item Writing characteristic values
@item Subscribing for characteristic value change notifications
@end itemize
Currently, Linux is the only platform supported by this library.")
(license license:expat)))
(define-public python-clrprint
(package
(name "python-clrprint")
(version "2.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "clrprint" version))
(sha256
(base32
"0xfn8d1by2w7pjiji887qljk1avn4fylbnz1mj28gysm5g0zvy43"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;there are no tests
(propagated-inputs (list python-colorama python-termcolor))
(home-page "https://github.com/AbhijithAJ/clrprint")
(synopsis "Print colorful output in the terminal")
(description "@code{clrprint} is developed to print colorful output in the
terminal. It has red, blue, green, yellow, purple and black/white (default)
colors.")
(license license:expat)))
(define-public python-musical-scales
(package
(name "python-musical-scales")
(version "1.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "musical-scales" version))
(sha256
(base32
"1ckn8n37i7b65h0i385ycn0w8sg9na0iabz0kmhxxc1wj0hddkw9"))))
(build-system python-build-system)
(native-inputs (list python-wheel))
(home-page "https://github.com/hmillerbakewell/musical-scale")
(synopsis "Retrieve a scale based on a given mode and starting note")
(description
"Retrieve a scale based on a given mode and starting note.
Information about these scales can be
@url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found on
Wikipedia}.")
(license license:expat)))
(define-public python-langcodes
(package
(name "python-langcodes")
(version "3.3.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "langcodes" version))
(sha256
(base32
"1xkyh3qdcigb18qiimbwl2669y22hhdmd89mqcd270c7lbahfkbr"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(home-page "https://github.com/rspeer/langcodes")
(synopsis "Python library for working with language codes")
(description
"This package provides a Python library for working with and comparing
language codes.
@code{python-langcodes} implements @url{http://tools.ietf.org/html/bcp47, BCP
47}, the IETF Best Current Practices on Tags for Identifying Languages. BCP
47 is also known as RFC 5646. It subsumes ISO 639 and is backward compatible
with it, and it also implements recommendations from the
@url{http://cldr.unicode.org/, Unicode CLDR}.
@code{python-langcodes} can also refer to a database of language properties
and names, built from Unicode CLDR and the IANA subtag registry, if you
install @code{python-language-data}.")
(license license:expat)))
(define-public python-geomet
(package
(name "python-geomet")
(version "0.3.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "geomet" version))
(sha256
(base32
"06rfvadx5dr5xrgsc5bsmqil9c9kff6i13xl988gy0gfg0cl2lnb"))))
(build-system python-build-system)
(propagated-inputs (list python-click python-six))
(home-page "https://github.com/geomet/geomet")
(synopsis "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary) or
GeoPackage Binary")
(description "This package provides utilities and functions for converting
GeoJSON to WKT/WKB (Well-Known Text/Binary) or GeoPackage Binary, and vice
versa. Extended WKB/WKT are also supported.")
(license license:asl2.0)))
(define-public python-bsdiff4
(package
(name "python-bsdiff4")
(version "1.2.2")
(home-page "https://github.com/ilanschnell/bsdiff4")
(source (origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1fa0vkmbr0a9xifq7i5gfcf7ifn739i1fdij8awynm299fsqvvhx"))))
(build-system python-build-system)
(synopsis "Binary diff and patch using the BSDIFF4 format")
(description "This package provides a Python library for the @code{bsdiff}
binary diff utility. It also provides two command-line tools, @code{bsdiff4}
and @code{bspatch4}.")
(license license:bsd-2)))
(define-public python-mpv
(package
(name "python-mpv")
(version "1.0.1")
(source
(origin
;; python-mpv from pypi does not include the tests directory.
(method git-fetch)
(uri (git-reference
(url "https://github.com/jaseg/python-mpv")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"10w6j3n62ap45sf6q487kz8z6g58sha37i14fa2hhng794z7a8jh"))
(modules '((guix build utils)))
(snippet
#~(begin
;; One of the tests never completes, so neutering it using
;; early return allows other test to run without issue.
(substitute* "tests/test_mpv.py"
;; Note the typo in "prooperty" - this was fixed later in
;; upstream but has no effect on whether the tests hangs or not.
(("test_wait_for_prooperty_event_overflow.*" line)
;; The long whitespace between \n and return is to match the
;; identation level, which is significant in python.
(string-append line "\n return\n")))))))
(build-system python-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(add-before 'build 'patch-reference-to-mpv
(lambda* (#:key inputs #:allow-other-keys)
;; Without an absolute path it is not able find and
;; load the libmpv library.
(substitute* "mpv.py"
(("sofile = .*")
(string-append "sofile = \""
(search-input-file inputs "/lib/libmpv.so")
"\"\n")))))
(add-before 'check 'prepare-for-tests
(lambda _
;; Fontconfig throws errors when it has no cache dir to use.
(setenv "XDG_CACHE_HOME" (getcwd))
;; Some tests fail without a writable and readable HOME.
(setenv "HOME" (getcwd)))))))
(native-inputs
(list python-xvfbwrapper)) ; needed for tests only
(inputs (list mpv))
(propagated-inputs (list python-pillow)) ; for raw screenshots
(home-page "https://github.com/jaseg/python-mpv")
(synopsis "Python interface to the mpv media player")
(description
"python-mpv is a ctypes-based python interface to the mpv media player.
It gives you more or less full control of all features of the player, just
as the lua interface does.")
;; From the project's README:
;; python-mpv inherits the underlying libmpv's license, which can be either
;; GPLv2 or later (default) or LGPLv2.1 or later. For details, see the mpv
;; copyright page.
(license license:gpl2+)))
(define-public python-biblib
(let ((upstream-version "0.1.0")
(commit "ab0e857b9198fe425ec9b02fcc293b5d9fd0c406")
(revision "1"))
(package
(name "python-biblib")
(version (git-version upstream-version revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/aclements/biblib")
(commit commit)))
(sha256
(base32 "1ym1gwxys9gl5a7fjs6xh5z9w50pnq4z3rs6fx7kpv78hlrbjlip"))
(file-name (git-file-name name version))))
(build-system python-build-system)
(home-page "https://github.com/aclements/biblib")
(synopsis "BibTeX parsing and transformation library")
(description
"Biblib provides a simple, standalone Python 3 package for parsing
BibTeX bibliographic databases, as well as algorithms for manipulating BibTeX
entries in BibTeX-y ways. Biblib's parser is derived directly from the WEB
source code for BibTeX and hence (barring bugs in translation) should be fully
compatible with BibTeX's own parser.")
;; N.B. It seems the parser was translated from WEB by hand: this
;; package does not contain any generated files.
(license license:expat))))
(define-public python-i3ipc
(package
(name "python-i3ipc")
(version "2.2.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/altdesktop/i3ipc-python")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"))))
(build-system python-build-system)
(arguments (list #:tests? #f)) ;FIXME: some tests are unable to run
(propagated-inputs (list python-xlib))
(home-page "https://github.com/altdesktop/i3ipc-python")
(synopsis "Python library for controlling i3 and Sway")
(description
"This package provides a Python library for controlling the i3 and Sway
window managers.")
(license license:bsd-3)))
(define-public i3-autotiling
(package
(name "i3-autotiling")
(version "1.8")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nwg-piotr/autotiling")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1nsm0gd45ys4ghlzrvjrf0lvcyhvpx58lz8gg325a762wn5a4a72"))))
(build-system python-build-system)
(arguments (list #:tests? #f)) ;no tests
(native-inputs (list python-wheel))
(propagated-inputs (list python-i3ipc))
(home-page "https://github.com/nwg-piotr/autotiling")
(synopsis "Automatically tile windows in i3 and Sway")
(description
"Script for Sway and i3 to automatically switch the horizontal/vertical
window split orientation.")
(license license:gpl3)))
(define-public python-cyclic
(package
(name "python-cyclic")
(version "1.0.0")
(source (origin
;; Use git, as there are some test files missing from the PyPI
;; release, see https://github.com/neurobin/cyclic/issues/1
(method git-fetch)
(uri (git-reference
(url "https://github.com/neurobin/cyclic")
;; Release is not tagged on github, see
;; https://github.com/neurobin/cyclic/issues/2
(commit "bf616c47ea49a43500ea55a1e6f4890323be0679")))
(file-name (git-file-name name version))
(sha256
(base32
"0r8zzjdv70fpxssxps62rlgpii8fr9gh8gykdygqn6mkdnfjwgjc"))))
(build-system python-build-system)
(home-page "https://github.com/neurobin/cyclic")
(synopsis "Handle cyclic relations")
(description "This package handles cyclic relations compared by value.")
(license license:bsd-3)))
(define-public python-rcslice
(package
(name "python-rcslice")
(version "1.1.0")
(source (origin
;; Use git, as there are some test files missing from the PyPI
;; release, see https://github.com/neurobin/rcslice/issues/1
(method git-fetch)
(uri (git-reference
(url "https://github.com/neurobin/rcslice")
;; Releases are not tagged on github, see
;; https://github.com/neurobin/rcslice/issues/2
(commit "1e1ef42cd262db76b67ded430630d5b499790f42")))
(file-name (git-file-name name version))
(sha256
(base32
"1lmhcgghh60kvdlx0cin1phhgfy9jivc6l0mb4ibnpa1x1md0zvv"))))
(build-system python-build-system)
(home-page "https://github.com/neurobin/rcslice")
(synopsis "Slice a list of sliceables")
(description "This package provides Python module to slice a list of
sliceables (1 indexed, both start and end index are inclusive). Helps to
slice file content line by line or column by column or a combination of
both.")
(license license:bsd-3)))
(define-public python-types-orjson
(package
(name "python-types-orjson")
(version "3.6.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "types-orjson" version))
(sha256
(base32
"0f66lf2qrl9d4vad42db3dmnzv89h4rr05r5zxx5qcl6kb3zr6ng"))))
(build-system python-build-system)
(home-page "https://github.com/python/typeshed")
(synopsis "Typing stubs for orjson")
(description "This is a PEP 561 type stub package for the @code{orjson}
package. It can be used by type-checking tools like mypy, PyCharm, pytype
etc. to check code that uses @code{orjson}.")
(license license:asl2.0)))
(define-public python-nanoid
;; There are no tests on PyPi.
(let ((commit "061f9a598f310b0e2e91b9ed6ce725a22770da64")
(revision "0"))
(package
(name "python-nanoid")
(version "2.0.0")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/puyuan/py-nanoid")
(commit commit)))
(file-name (git-file-name name commit))
(sha256
(base32 "0y1bcw0h27g8rkqq7cp33ywn0i0lp0q3rjixzkh4191y1dp9yf8s"))))
(build-system python-build-system)
(native-inputs (list python-pytest))
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(home-page "https://github.com/puyuan/py-nanoid")
(synopsis "Unique string ID generator")
(description
"This package provides a tiny, secure, URL-friendly, unique string ID
generator for Python.")
(license license:expat))))
(define-public python-misskey
(package
(name "python-misskey")
(version "4.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/YuzuRyo61/Misskey.py")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0rma8pdsjsy00cg76q6q4qki4xpldykmz1m6dl3w2bjjxfhlbaz5"))))
(build-system python-build-system)
(arguments (list #:tests? #f)) ;needs network
(propagated-inputs (list python-requests))
(home-page "https://misskeypy.readthedocs.io")
(synopsis "Python bindings for Misskey's API")
(description
"This package provides access to Misskey's API. Misskey is a SNS
platform using the ActivityPub protocol.")
(license license:expat)))
(define-public python-lief
(package
(name "python-lief")
(version "0.12.3")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lief-project/LIEF")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"11i6hqmcjh56y554kqhl61698n9v66j2qk1c1g63mv2w07h2z661"))))
(build-system python-build-system)
(native-inputs (list cmake))
(arguments
(list
#:tests? #f ;needs network
#:phases #~(modify-phases %standard-phases
(replace 'build
(lambda _
(invoke
"python" "setup.py" "--sdk" "build"
(string-append
"-j" (number->string (parallel-job-count)))))))))
(home-page "https://github.com/lief-project/LIEF")
(synopsis "Library to instrument executable formats")
(description
"@code{python-lief} is a cross platform library which can parse, modify
and abstract ELF, PE and MachO formats.")
(license license:asl2.0)))
(define-public python-eris
(package
(name "python-eris")
(version "0.0.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "eris" version))
(sha256
(base32
"16wbmahmfzdzrsjbn8jzi79vhghrzvvlcgnym20q0v3p3i4x47pq"))))
(build-system python-build-system)
(propagated-inputs (list python-pycryptodome))
(home-page "https://codeberg.org/eris/python-eris")
(synopsis "Python implementation of ERIS")
(description
"Python implementation of the @acronym{ERIS, Encoding for Robust Immutable
Storage}.")
(license license:lgpl3+)))
(define-public shrinkwrap
(package
(name "shrinkwrap")
(version "0.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/fzakaria/shrinkwrap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(modules '((guix build utils)))
(snippet '(substitute* "pyproject.toml"
(("lief = \"0\\.12\\.0\"") "lief = \"*\"")))
(sha256
(base32
"1f3qrygj16y767q2c7pn9j6m95ggcmj9s5cx9v92ygygly4mr3jp"))))
(build-system python-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-v" "tests"))))
;; XXX: PEP 517 manual build copied from python-isort.
(replace 'build
(lambda _
(invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
(replace 'install
(lambda _
(let ((whl (car (find-files "dist" "\\.whl$"))))
(invoke "pip" "--no-cache-dir" "--no-input"
"install" "--no-deps" "--prefix" #$output whl)))))))
(native-inputs
(list python-click
python-poetry-core
python-pypa-build
python-pytest))
(inputs (list python-lief python-sh))
(home-page "https://github.com/fzakaria/shrinkwrap")
(synopsis "Emboss needed dependencies on the top level executable")
(description
"@code{shrinkwrap} is a tool which will discover all transitive dynamic
shared objects, and lift them up to the executable referenced by absolute
path.")
(license license:expat)))
(define-public python-pymonad
(package
(name "python-pymonad")
(version "2.4.0")
;; The tests are incomplete in the PyPI archive.
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jasondelaat/pymonad")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0ci1mpydldiyg9qv6d19ljhfh7wxlrl2k4mlvqd9bm7dqvpdjsx7"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "./run_tests.sh")))))))
(home-page "https://github.com/jasondelaat/pymonad")
(synopsis "Monadic style functional programming for Python")
(description "@code{python-pymonad} implements data structures typically
available in purely functional or functional first programming languages such
as Haskell and F#. Included are
@itemize
@item Monad and Monoid data types with several common monads such as Maybe and
State
@item Useful tools such as the @code{@@curry} decorator for defining curried
functions
@item Type annotations to help ensure correct usage
@end itemize")
(license license:bsd-3)))
;;;
;;; 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.
;;;
|