-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmisc.nix
1272 lines (1062 loc) · 30.2 KB
/
misc.nix
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
final: prev:
let
inherit (final) buildPythonPackage fetchPypi;
inherit (final) poetry-core;
inherit (final.lib) licenses maintainers;
inherit (final.pkgs) fetchFromGitHub rustPlatform autoPatchelfHook bash;
in
rec {
systemdunitparser = buildPythonPackage rec {
pname = "systemdunitparser";
version = "0.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-GgcqTlX8VXOCPgqRBJcWTbltnhZkiw9UDVRs1Vkd6Q4=";
};
nativeBuildInputs = with final; [
setuptools
wheel
];
pythonImportsCheck = [ "SystemdUnitParser" ];
meta = {
description = "Parser to read and create unit files for systemd";
homepage = "https://pypi.org/project/systemdunitparser/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ jpetrucciani ];
};
};
systemdlint = buildPythonPackage rec {
pname = "systemdlint";
version = "1.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-iJqWXL1lKc6CY3TRH2GB5CarmEYhSJdNeJCWO/28MOA=";
};
nativeBuildInputs = with final;[
setuptools
wheel
];
propagatedBuildInputs = with final;[
anytree
systemdunitparser
];
pythonImportsCheck = [ "systemdlint" ];
meta = {
description = "Systemd Unitfile Linter";
homepage = "https://pypi.org/project/systemdlint/";
maintainers = with maintainers; [ jpetrucciani ];
mainProgram = "systemdlint";
};
};
tesla-py = buildPythonPackage rec {
pname = "tesla-py";
version = "2.9.0";
format = "setuptools";
src = fetchPypi {
pname = "TeslaPy";
inherit version;
hash = "sha256-8k7l8aYK+7DNzoZJeIJl9mAtagzVGqfWyTPVLzv8V1c=";
};
propagatedBuildInputs = with final; [
requests
requests-oauthlib
websocket-client
];
pythonImportsCheck = [ "teslapy" ];
meta = {
description = "A Python module to use the Tesla Motors Owner API";
homepage = "https://github.com/tdorssers/TeslaPy";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
osrsreboxed = buildPythonPackage {
pname = "osrsreboxed";
version = "2.3.5";
pyproject = true;
src = fetchFromGitHub {
owner = "0xNeffarion";
repo = "osrsreboxed-db";
rev = "93346b7678d1cf741a00a67f9ed802eb88639dc2";
hash = "sha256-4eyXlTIOrcbm2ZZ7s5OCKbnag4Gi1dX1DLFVQQtuEOc=";
};
preBuild = ''
sed -i '/dataclasses/d' ./pyproject.toml
'';
propagatedBuildInputs = [
poetry-core
];
meta = {
description = "A complete and up-to-date database of Old School Runescape (OSRS) items";
homepage = "https://github.com/0xNeffarion/osrsreboxed-db";
};
};
falconn = buildPythonPackage rec {
pname = "falconn";
version = "1.3.1";
src = fetchFromGitHub {
owner = "falconn-lib";
repo = pname;
rev = "v${version}";
hash = "sha256-kz4w3uW3Y45ov7g86MPA3x2WlvBP8EKLVhqeHDKiemk=";
};
nativeBuildInputs = with final; [ pkgs.eigen ];
propagatedBuildInputs = with final; [ numpy ];
postPatch = ''
sed -i -E 's#(cd FALCONN\-\*)#\1\/#g' ./Makefile
make python_package
'';
preBuild = ''
cd ./python_package/dist/FALCONN-*/
'';
pythonImportsCheck = [
"falconn"
];
meta = {
description = "";
homepage = "https://github.com/FALCONN-LIB/FALCONN";
changelog = "https://github.com/FALCONN-LIB/FALCONN/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
starred = buildPythonPackage rec {
pname = "starred";
version = "4.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "maguowei";
repo = pname;
rev = "v${version}";
hash = "sha256-ugseXFiDQXLCg9wImpLCPmRJp31/OI8VuxxYD4JJ8mg=";
};
propagatedBuildInputs = with final; [
aiohttp
click
github3_py
gql
poetry-core
requests
];
pythonCheckImports = [
"starred"
];
meta = {
description = "Create your own Awesome List by GitHub stars";
homepage = "https://github.com/maguowei/starred";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
milli = buildPythonPackage rec {
pname = "milli";
version = "1.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "AlexAltea";
repo = "milli-py";
rev = "v${version}";
hash = "sha256-l8WS8B7w57RFYppDsl/6QAOA32m+xO/zs5JV1qBzfJ0=";
fetchSubmodules = true;
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = "${src}/Cargo.lock";
outputHashes = {
"heed-0.12.5" = "sha256-atkKiK8rzqji47tJvUzbIXMw8U1uddHkHakPuEUvmFg=";
"lmdb-rkv-sys-0.15.1" = "sha256-zLHTprwF7aa+2jaD7dGYmOZpJYFijMTb4I3ODflNUII=";
};
};
sourceRoot = "";
pythonImportsCheck = [
"milli"
];
buildInputs = with final; [
pkgs.libiconv
];
nativeBuildInputs = with final; [
setuptools-rust
] ++ (with rustPlatform; [
cargoSetupHook
maturinBuildHook
rust.cargo
rust.rustc
]);
meta = {
description = "Python bindings for Milli, the embeddable Rust-based search engine powering Meilisearch";
homepage = "https://github.com/AlexAltea/milli-py";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
speechrecognition = buildPythonPackage rec {
pname = "speech_recognition";
version = "3.9.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Uberi";
repo = pname;
rev = version;
hash = "sha256-FsiAa+cQbomFkRvoFscceVBJUW3mW6EyiizfFfqB/u8=";
};
doCheck = false;
propagatedBuildInputs = with final; [
requests
soundfile
google-cloud-speech
openai-whisper
pkgs.flac
];
pythonCheckImports = [
"speech_recognition"
];
meta = {
description = "Speech recognition module for Python, supporting several engines and APIs, online and offline";
homepage = "https://github.com/Uberi/speech_recognition";
license = licenses.bsd3;
maintainers = with maintainers; [ jpetrucciani ];
};
};
roadmapper = buildPythonPackage rec {
pname = "roadmapper";
version = "1.2.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Sb3gomE5LDrxRM1U/QkrSQ2IemJ5Xhab4l4Ty6grNyM=";
};
nativeBuildInputs = with final; [
setuptools
];
propagatedBuildInputs = with final; [
pillow
python-dateutil
];
pythonImportsCheck = [ "roadmapper" ];
meta = {
description = "Roadmapper. A Roadmap-as-Code (RaC) python library for generating a roadmap by using python code";
homepage = "https://github.com/csgoh/roadmapper";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
pixoo = buildPythonPackage {
pname = "pixoo";
version = "0.6.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "SomethingWithComputers";
repo = "pixoo";
rev = "dc477493125dd2f57081e997fc1bb95e800dfee8";
hash = "sha256-EDdwP8TBaHNbjcXS6QwN4PrtH3+4kWgxfqd0E4dZT8U=";
};
postPatch = let sed = "sed -i -E"; in ''
${sed} 's#(requests)\~\=(2.28.1)#\1>=\2#g' ./setup.py
${sed} 's#(Pillow)\~\=(9.2.0)#\1>=\2#g' ./setup.py
'';
propagatedBuildInputs = with final; [
pillow
requests
tkinter
];
pythonImportsCheck = [ "pixoo" ];
meta = {
description = "A library to help you make the most out of your Pixoo 64 (and hopefully soon other Wi-Fi enabled Pixoos";
homepage = "https://github.com/SomethingWithComputers/pixoo";
license = with licenses; [ ];
maintainers = with maintainers; [ jpetrucciani ];
};
};
kaleido =
let
pname = "kaleido";
version = "0.2.1";
format = "wheel";
dists = {
aarch64-darwin = {
dist = "macosx_11_0_arm64";
hash = "01bwg2fdlhjbgf0ka2b17r614vcacpv0w97f6badamq3f4gmv6mv";
};
aarch64-linux = {
dist = "manylinux2014_aarch64";
hash = "0ajinsc7ylm8r1paiy3y4cmmry7v44kf85wwkm3ck0l09j21jn44";
};
x86_64-darwin = {
dist = "macosx_10_11_x86_64";
hash = "19s9a1w1afmqfvz96404yl797qfdpb9z2wrzhkrfpah0zzkp6vya";
};
x86_64-linux = {
dist = "manylinux1_x86_64";
hash = "1a63pnalnd5zzdy7c2pysv9pnf1w03hlazcz1ajqz3y7y4dwy8da";
};
};
wheelUrl = dist: "${repo}/releases/download/v${version}/kaleido-${version}-py2.py3-none-${dist}.whl";
repo = "https://github.com/plotly/Kaleido";
src =
let d = dists.${final.stdenv.hostPlatform.system} or (throw "Unsupported system: ${final.stdenv.hostPlatform.system}");
in
builtins.fetchurl {
url = wheelUrl d.dist;
sha256 = d.hash;
};
in
buildPythonPackage {
inherit pname src version format;
nativeBuildInputs = [ autoPatchelfHook ];
propagatedBuildInputs = [ ];
pythonImportsCheck = [ "kaleido" ];
postInstall = ''
sed -i -E '1s#!/bin/bash#!${bash}/bin/bash#' $out/${final.python.sitePackages}/kaleido/executable/kaleido
'';
meta = {
description = "cross-platform library for generating static images for web-based visualization libraries";
homepage = repo;
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
coolname = buildPythonPackage rec {
pname = "coolname";
version = "2.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-bF1XMXWRBEeefKGVqbZPeQCsW+rUAYPAkyPH0L6edcc=";
};
pythonImportsCheck = [ "coolname" ];
meta = {
description = "Random name and slug generator";
homepage = "https://github.com/alexanderlukanin13/coolname";
license = licenses.bsd2;
maintainers = with maintainers; [ jpetrucciani ];
};
};
poetry2setup = buildPythonPackage rec {
pname = "poetry2setup";
version = "1.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-h1kVePwLaOFxYmHF8+9+1DbNwOEXTmKaNt5CRMJFvus=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
poetry-core
];
pythonImportsCheck = [ "poetry2setup" ];
meta = {
description = "Convert python-poetry to setup.py";
homepage = "https://github.com/abersheeran/poetry2setup";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
gaffe = buildPythonPackage rec {
pname = "gaffe";
version = "0.2.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-GUiwERbRfjgcQEFcfc1nmcSJS9uA/382vqrVD8aY89A=";
};
nativeBuildInputs = with final; [
setuptools
];
pythonImportsCheck = [ "gaffe" ];
meta = {
description = "Simple structured exceptions for python";
homepage = "https://github.com/kodemore/gaffe";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
chili = buildPythonPackage rec {
pname = "chili";
version = "2.4.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-9wLfVoihy299YIUsTQL2uZojqjwzY9puI1EgUN8GBZ8=";
};
nativeBuildInputs = with final; [
setuptools
];
propagatedBuildInputs = with final; [
gaffe
typing-extensions
];
pythonImportsCheck = [ "chili" ];
meta = {
description = "Serialise/deserialise almost any object";
homepage = "https://github.com/kodemore/chili";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
yagmail = buildPythonPackage rec {
pname = "yagmail";
version = "0.15.293";
src = fetchPypi {
inherit pname version;
sha256 = "15jjb00z89ck82q50g82xl6gv5r1snb91k0296hj4gpnlk6x1s24";
};
propagatedBuildInputs = with final; [ premailer ];
meta = {
description = "Yet Another GMAIL client";
homepage = "https://github.com/kootenpv/yagmail";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
itomate = buildPythonPackage rec {
pname = "itomate";
version = "0.3.9";
pyproject = true;
src = fetchFromGitHub {
owner = "kamranahmedse";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-kZyYfZ8x/mDtYM8+7H3outrgdomCilMDRbf7jFmPkz0=";
};
nativeBuildInputs = with final;[
setuptools
wheel
];
propagatedBuildInputs = with final;[
iterm2
pyyaml
];
pythonImportsCheck = [ "itomate" ];
meta = {
description = "Automate your iTerm layouts and workflows";
homepage = "https://github.com/kamranahmedse/itomate";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
recurrent = buildPythonPackage {
pname = "recurrent";
version = "0.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "kvh";
repo = "recurrent";
rev = "13fb7ac7e0060937e5f7e4e13a644a3e2b6f7021";
hash = "sha256-I1FRmyJjs6We7qeCcyJlcFlUVQfjYUNHKj80KO0E7tk=";
};
propagatedBuildInputs = with final; [
parsedatetime
];
nativeBuildInputs = with final; [
setuptools
wheel
];
pythonImportsCheck = [ "recurrent" ];
meta = {
description = "Natural language parsing of dates and recurring events";
homepage = "https://github.com/kvh/recurrent";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
python-logging-loki = buildPythonPackage rec {
pname = "python-logging-loki";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "GreyZmeem";
repo = "python-logging-loki";
rev = "v${version}";
hash = "sha256-1qHuv+xzATo11au+QAhD1lHcLJtnVKZDdQDGohHUhiI=";
};
nativeBuildInputs = with final; [
setuptools
wheel
];
propagatedBuildInputs = with final; [
requests
rfc3339
];
pythonImportsCheck = [ "logging_loki" ];
meta = {
description = "Python logging handler for Loki";
homepage = "https://github.com/GreyZmeem/python-logging-loki";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
uhttp = buildPythonPackage {
pname = "uhttp";
version = "unstable-2023-12-09";
pyproject = true;
src = fetchFromGitHub {
owner = "0x67757300";
repo = "uHTTP";
rev = "312fc01049c6795a3684516f7e9418c2f11e7157";
hash = "sha256-V8WiZVV7oGVj6bi1lPZ2fixZuqnGIdF8EZ3QZBDFZMk=";
};
nativeBuildInputs = with final; [
poetry-core
];
pythonImportsCheck = [ "uhttp" ];
meta = {
description = "Pythonic web development";
homepage = "https://github.com/0x67757300/uHTTP";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
pypiserver-pluggable-backends = buildPythonPackage rec {
pname = "pypiserver";
version = "2.0.1";
format = "setuptools";
disabled = final.pythonOlder "3.7";
src = fetchFromGitHub {
owner = "estheruary";
repo = "pypiserver-pluggable-backends";
rev = "14f8182a5647437b72f6fd874d85b46ff099de44";
hash = "sha256-EzkcJB7OtcaZDkzzvAbHKQohx98nhGrStgJVylD+G+0=";
};
nativeBuildInputs = with final; [
setuptools
setuptools-git
wheel
];
propagatedBuildInputs = with final; [
pip
setuptools
];
passthru.optional-dependencies = with final; {
passlib = [
passlib
];
cache = [
watchdog
];
};
__darwinAllowLocalNetworking = true;
# Tests need these permissions in order to use the FSEvents API on macOS.
sandboxProfile = ''
(allow mach-lookup (global-name "com.apple.FSEvents"))
'';
preCheck = ''
export HOME=$TMPDIR
'';
nativeCheckInputs = with final; [
pip
pytestCheckHook
setuptools
twine
webtest
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
disabledTests = [
# Fails to install the package
"test_hash_algos"
"test_pip_install_authed_succeeds"
"test_pip_install_open_succeeds"
];
disabledTestPaths = [
# Test requires docker service running
"docker/test_docker.py"
];
pythonImportsCheck = [
"pypiserver"
];
meta = {
description = "fork of a Minimal PyPI server for use with pip/easy_install";
homepage = "https://github.com/estheruary/pypiserver-pluggable-backends";
changelog = "https://github.com/estheruary/pypiserver-pluggable-backends/releases/tag/v${version}";
license = with licenses; [ mit zlib ];
maintainers = with maintainers; [ austinbutler ];
};
};
pypiserver-backend-s3 = buildPythonPackage {
pname = "pypiserver-backend-s3";
version = "unstable-2023-08-24";
pyproject = true;
src = fetchFromGitHub {
owner = "estheruary";
repo = "pypiserver-backend-s3";
rev = "c7331c0df40c8881a2ffb3b9755e378c91b436c1";
hash = "sha256-elItLLeN/v8ooDk8qedlqSGDHyZbwEr3Ze2e6idmDCM=";
};
nativeBuildInputs = with final; [
pythonRelaxDepsHook
setuptools
setuptools-scm
wheel
];
pythonRelaxDeps = [
"boto3"
];
propagatedBuildInputs = with final; [
boto3
];
pythonImportsCheck = [ "pypiserver_backend_s3" ];
meta = {
description = "A pypiserver backend for storing packages directly to S3 (using boto3";
homepage = "https://github.com/estheruary/pypiserver-backend-s3";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
horology = buildPythonPackage rec {
pname = "horology";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mjmikulski";
repo = "horology";
rev = "v${version}";
hash = "sha256-ZUcJax+cV9Lyn6oEGLqDRM2SAo/81BncH4KfT1+K9dw=";
};
nativeBuildInputs = with final; [
poetry-core
];
pythonImportsCheck = [ "horology" ];
meta = {
description = "Timing functions, contexts and for-loops";
homepage = "https://github.com/mjmikulski/horology";
changelog = "https://github.com/mjmikulski/horology/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
findblas = buildPythonPackage {
pname = "findblas";
version = "unstable-2024-01-13";
pyproject = true;
src = fetchFromGitHub {
owner = "david-cortes";
repo = "findblas";
rev = "29c29ec13d6e89ee977e87554aeef219c5db2552";
hash = "sha256-VMiys4pa3X/uN5yJK4vBuigGObJeamXPipEjz3jZ6jo=";
};
postPatch =
let
BLAS = "${prev.pkgs.blas}/lib";
BLAS_DEV = "${prev.pkgs.blas.dev}/include";
find_blas = ''"${BLAS}", "libblas.so", "${BLAS_DEV}", "cblas.h", ["HAS_OPENBLAS"]'';
in
''
sed -i -E 's#\#\# Possible file names for each library in different OSes#return ${find_blas}#g' ./findblas/__init__.py
'';
nativeBuildInputs = with prev; [
setuptools
wheel
];
pythonImportsCheck = [ "findblas" ];
meta = {
description = "Python module for finding available BLAS libraries in the system and linking wrapped C/C++ or FORTRAN code to it";
homepage = "https://github.com/david-cortes/findblas";
license = licenses.bsd2;
maintainers = with maintainers; [ jpetrucciani ];
};
};
mesop =
buildPythonPackage rec {
pname = "mesop";
version = "0.7.2";
format = "wheel";
src = fetchPypi {
inherit pname version;
format = "wheel";
python = "py3";
dist = "py3";
platform = "any";
hash = "sha256-yZnen4/zwE1KDe75/uWbkXMuUCilU+6cqk10OEsydlU=";
};
propagatedBuildInputs = with final; [
absl-py
flask
gunicorn
libcst
markdown
protobuf
pydantic
watchdog
werkzeug
];
pythonImportsCheck = [ "mesop" ];
meta = {
description = "UI framework that allows you to rapidly build web apps like demos and internal apps";
homepage = "https://github.com/google/mesop";
license = licenses.asl20;
maintainers = with maintainers; [ jpetrucciani ];
};
};
shandy-sqlfmt = buildPythonPackage rec {
pname = "shandy-sqlfmt";
version = "0.21.3";
pyproject = true;
src = fetchPypi {
pname = "shandy_sqlfmt";
inherit version;
hash = "sha256-UAqIoTNYVDKuz3dhlkITubdWq/1vM/XVPgUtLh0FhNo=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = with final; [
click
importlib-metadata
jinja2
platformdirs
tomli
tqdm
];
passthru.optional-dependencies = with final; {
jinjafmt = [
black
];
sqlfmt_primer = [
gitpython
];
};
pythonImportsCheck = [ "sqlfmt" ];
meta = {
description = "Sqlfmt formats your dbt SQL files so you don't have to";
homepage = "https://pypi.org/project/shandy-sqlfmt/";
license = licenses.asl20;
mainProgram = "sqlfmt";
maintainers = with maintainers; [ jpetrucciani ];
};
};
textual-fastdatatable = buildPythonPackage rec {
pname = "textual-fastdatatable";
version = "0.7.1";
pyproject = true;
src = fetchPypi {
pname = "textual_fastdatatable";
inherit version;
hash = "sha256-Atkp3ddV59I5NuqAkMVJCQgW6eymPMFKBqwqgqVWt2M=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = with final; [
pyarrow
pytz
textual
tzdata
];
pythonImportsCheck = [ "textual_fastdatatable" ];
meta = {
description = "A performance-focused reimplementation of Textual's DataTable widget, with a pluggable data storage backend";
homepage = "https://pypi.org/project/textual-fastdatatable/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
textual-textarea = buildPythonPackage rec {
pname = "textual-textarea";
version = "0.13.0";
pyproject = true;
src = fetchPypi {
pname = "textual_textarea";
inherit version;
hash = "sha256-xCzwGMZ0AHirZDwXok2DqKlBXPssntpqs7hDk6Qim9c=";
};
nativeBuildInputs = with final; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"textual"
];
propagatedBuildInputs = with final; [
pyperclip
textual
];
pythonImportsCheck = [ "textual_textarea" ];
meta = {
description = "A text area (multi-line input) with syntax highlighting for Textual";
homepage = "https://pypi.org/project/textual-textarea/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
harlequin-mysql = buildPythonPackage rec {
pname = "harlequin-mysql";
version = "0.2.0";
pyproject = true;
src = fetchPypi {
pname = "harlequin_mysql";
inherit version;
hash = "sha256-8YTtlcCXd6nb9BEM1axe4G/VsnX7HjABFQCARxPXIEs=";
};
nativeBuildInputs = with final; [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"mysql-connector-python"
];
propagatedBuildInputs = with final; [
harlequin
mysql-connector
];
pythonImportsCheck = [ "harlequin_mysql" ];
meta = {
description = "A Harlequin adapter for MySQL";
homepage = "https://pypi.org/project/harlequin-mysql/";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
};
};
harlequin-postgres = buildPythonPackage rec {
pname = "harlequin-postgres";
version = "0.2.2";
pyproject = true;
src = fetchPypi {
pname = "harlequin_postgres";
inherit version;
hash = "sha256-IF8ueqYjwaG9I1S4+h04sz4pYpIxgxaFhspGiPsay4E=";
};
nativeBuildInputs = [
poetry-core
];
dontCheckRuntimeDeps = true;
propagatedBuildInputs = with final; [
harlequin
psycopg2
];
pythonImportsCheck = [ "harlequin_postgres" ];
meta = {
description = "A Harlequin adapter for Postgres";
homepage = "https://pypi.org/project/harlequin-postgres/";