File tree Expand file tree Collapse file tree 4 files changed +175
-0
lines changed
development/python-modules Expand file tree Collapse file tree 4 files changed +175
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ python3Packages ,
4+ fetchFromGitHub ,
5+ meson ,
6+ ninja ,
7+ pkg-config ,
8+ wrapGAppsHook4 ,
9+ gobject-introspection ,
10+ desktop-file-utils ,
11+ libadwaita ,
12+ vte-gtk4 ,
13+ gsettings-desktop-schemas ,
14+ gtksourceview5 ,
15+ lsb-release ,
16+ bash ,
17+ ffmpeg ,
18+ nix-update-script ,
19+ } :
20+
21+ python3Packages . buildPythonApplication rec {
22+ pname = "newelle" ;
23+ version = "0.9.7" ;
24+ pyproject = false ; # uses meson
25+
26+ src = fetchFromGitHub {
27+ owner = "qwersyk" ;
28+ repo = "Newelle" ;
29+ tag = version ;
30+ hash = "sha256-h0dWjnUqWcPdSbR60HF2KvQxUyYeR3qHf2GMHt/kSm0=" ;
31+ } ;
32+
33+ postPatch = ''
34+ substituteInPlace src/utility/pip.py \
35+ --replace-fail "# Manage pip path locking" "return None"
36+ '' ;
37+
38+ nativeBuildInputs = [
39+ meson
40+ ninja
41+ gobject-introspection
42+ wrapGAppsHook4
43+ desktop-file-utils
44+ pkg-config
45+ ] ;
46+
47+ buildInputs = [
48+ libadwaita
49+ vte-gtk4
50+ gsettings-desktop-schemas
51+ gtksourceview5
52+ ] ;
53+
54+ dependencies = with python3Packages ; [
55+ pygobject3
56+ libxml2
57+ pydub
58+ gtts
59+ speechrecognition
60+ numpy
61+ matplotlib
62+ pylatexenc
63+ pyaudio
64+ pip-install-test
65+ newspaper3k
66+ tiktoken
67+ openai
68+ ollama
69+ llama-index-core
70+ llama-index-readers-file
71+ google-genai
72+ anthropic
73+ ] ;
74+
75+ strictDeps = true ;
76+
77+ postInstallCheck = ''
78+ mesonCheckPhase
79+ '' ;
80+
81+ dontWrapGApps = true ;
82+
83+ makeWrapperArgs = [
84+ "\ ${gappsWrapperArgs[@]}"
85+ "--prefix PATH : ${
86+ lib . makeBinPath [
87+ lsb-release
88+ bash
89+ ffmpeg
90+ ]
91+ } "
92+ ] ;
93+
94+ passthru . updateScript = nix-update-script { } ;
95+
96+ meta = {
97+ homepage = "https://github.com/qwersyk/Newelle" ;
98+ description = "Ultimate Virtual Assistant" ;
99+ mainProgram = "newelle" ;
100+ license = lib . licenses . gpl3Plus ;
101+ platforms = lib . platforms . linux ;
102+ maintainers = with lib . maintainers ; [ emaryn ] ;
103+ } ;
104+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchPypi ,
5+ feedparser ,
6+ requests ,
7+ pillow ,
8+ tldextract ,
9+ lxml ,
10+ lxml-html-clean ,
11+ beautifulsoup4 ,
12+ python-dateutil ,
13+ } :
14+
15+ buildPythonPackage rec {
16+ pname = "newspaper3k" ;
17+ version = "0.2.8" ;
18+
19+ src = fetchPypi {
20+ inherit pname version ;
21+ hash = "sha256-nxvT4ftI9ADHFav4dcx7Cme33c2H9Qya7rj8u72QBPs=" ;
22+ } ;
23+
24+ dependencies = [
25+ feedparser
26+ requests
27+ pillow
28+ tldextract
29+ lxml
30+ lxml-html-clean
31+ beautifulsoup4
32+ python-dateutil
33+ ] ;
34+
35+ pythonImportsCheck = [ "newspaper" ] ;
36+
37+ meta = {
38+ description = "Simplified python article discovery & extraction" ;
39+ homepage = "https://pypi.org/project/newspaper3k" ;
40+ license = lib . licenses . mit ;
41+ maintainers = with lib . maintainers ; [ emaryn ] ;
42+ } ;
43+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchPypi ,
5+ } :
6+
7+ buildPythonPackage rec {
8+ pname = "pip-install-test" ;
9+ version = "0.5" ;
10+
11+ src = fetchPypi {
12+ inherit pname version ;
13+ hash = "sha256-wzxGztmGW1mWPoblSQGUdSC9tzv5GEnN27AAdCWYu2c=" ;
14+ } ;
15+
16+ pythonImportsCheck = [ "pip_install_test" ] ;
17+
18+ meta = {
19+ description = "Minimal stub package to test success of pip install" ;
20+ homepage = "https://pypi.org/project/pip-install-test" ;
21+ license = lib . licenses . mit ;
22+ maintainers = with lib . maintainers ; [ emaryn ] ;
23+ } ;
24+ }
Original file line number Diff line number Diff line change @@ -10089,6 +10089,8 @@ self: super: with self; {
1008910089
1009010090 newick = callPackage ../development/python-modules/newick { };
1009110091
10092+ newspaper3k = callPackage ../development/python-modules/newspaper3k { };
10093+
1009210094 newversion = callPackage ../development/python-modules/newversion { };
1009310095
1009410096 nexia = callPackage ../development/python-modules/nexia { };
@@ -11367,6 +11369,8 @@ self: super: with self; {
1136711369
1136811370 pip-chill = callPackage ../development/python-modules/pip-chill { };
1136911371
11372+ pip-install-test = callPackage ../development/python-modules/pip-install-test { };
11373+
1137011374 pip-requirements-parser = callPackage ../development/python-modules/pip-requirements-parser { };
1137111375
1137211376 pip-system-certs = callPackage ../development/python-modules/pip-system-certs { };
You can’t perform that action at this time.
0 commit comments