treewide: use callPackage instead of python3Packages.callPackage

This commit is contained in:
TomaSajt
2025-07-24 17:43:19 +02:00
parent 17e0b1bb0c
commit ec490ec3ba
42 changed files with 261 additions and 471 deletions
@@ -1,6 +1,6 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
gdk-pixbuf,
glib,
@@ -9,12 +9,9 @@
gtksourceview,
pango,
webkitgtk_4_1,
pygobject3,
pyyaml,
setuptools,
}:
buildPythonApplication (finalAttrs: {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "rednotebook";
version = "2.42";
pyproject = true;
@@ -31,7 +28,7 @@ buildPythonApplication (finalAttrs: {
nativeBuildInputs = [ gobject-introspection ];
build-system = [ setuptools ];
build-system = with python3Packages; [ setuptools ];
propagatedBuildInputs = [
gdk-pixbuf
@@ -40,9 +37,11 @@ buildPythonApplication (finalAttrs: {
gtksourceview
pango
webkitgtk_4_1
]
++ (with python3Packages; [
pygobject3
pyyaml
];
]);
makeWrapperArgs = [
"--set GI_TYPELIB_PATH $GI_TYPELIB_PATH"
@@ -1,14 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchPypi,
hatch-vcs,
hatchling,
pynput,
xdg-base-dirs,
}:
buildPythonApplication (finalAttrs: {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "bitwarden-menu";
version = "0.4.5";
pyproject = true;
@@ -19,12 +15,12 @@ buildPythonApplication (finalAttrs: {
hash = "sha256-vUlNqSVdGhfN5WjDjf1ub32Y2WoBndIdFzfCNwo5+Vg=";
};
nativeBuildInputs = [
nativeBuildInputs = with python3Packages; [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
pynput
xdg-base-dirs
];
@@ -1,11 +1,10 @@
{
lib,
python3Packages,
fetchFromGitHub,
buildPythonApplication,
pybluez,
}:
buildPythonApplication (finalAttrs: {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "bluetooth_battery";
version = "1.3.1";
@@ -16,7 +15,7 @@ buildPythonApplication (finalAttrs: {
sha256 = "067qfxh228cy1x95bnjp88dx4k00ajj7ay7fz5vr1gkj2yfa203s";
};
propagatedBuildInputs = [ pybluez ];
propagatedBuildInputs = with python3Packages; [ pybluez ];
pyproject = false;
+3 -4
View File
@@ -1,14 +1,13 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
pytestCheckHook,
git,
testers,
mu-repo,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "mu-repo";
version = "1.9.0";
format = "setuptools";
@@ -23,7 +22,7 @@ buildPythonApplication rec {
dependencies = [ git ];
nativeCheckInputs = [
pytestCheckHook
python3Packages.pytestCheckHook
git
];
@@ -1,16 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
libevdev,
paramiko,
pynput,
setuptools,
screeninfo,
tkinter,
}:
buildPythonApplication {
python3Packages.buildPythonApplication {
pname = "remarkable-mouse";
version = "unstable-2024-02-23";
@@ -22,9 +16,9 @@ buildPythonApplication {
};
pyproject = true;
build-system = [ setuptools ];
build-system = with python3Packages; [ setuptools ];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
screeninfo
paramiko
pynput
+5 -11
View File
@@ -1,19 +1,11 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
bibtool,
pybtex,
pymupdf,
pynvim,
pyperclip,
roman,
pdfrw,
pagelabels,
setuptools,
}:
buildPythonApplication {
python3Packages.buildPythonApplication {
pname = "termpdf.py";
version = "2022-03-28";
format = "setuptools";
@@ -27,6 +19,8 @@ buildPythonApplication {
propagatedBuildInputs = [
bibtool
]
++ (with python3Packages; [
pybtex
pymupdf
pyperclip
@@ -35,7 +29,7 @@ buildPythonApplication {
pdfrw
pynvim
setuptools
];
]);
# upstream doesn't contain tests
doCheck = false;
+3 -8
View File
@@ -1,15 +1,10 @@
{
lib,
python3Packages,
fetchurl,
buildPythonApplication,
python-dateutil,
sqlalchemy,
setproctitle,
icalendar,
colorama,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "yokadi";
version = "1.3.0";
format = "setuptools";
@@ -19,7 +14,7 @@ buildPythonApplication rec {
hash = "sha256-zF2ffHeU+i7wzu1u4DhQ5zJXr8AjXboiyFAisXNX6TM=";
};
dependencies = [
dependencies = with python3Packages; [
python-dateutil
sqlalchemy
setproctitle
@@ -1,9 +1,9 @@
{
stdenv,
lib,
stdenv,
fetchFromGitHub,
wrapPython,
fetchpatch,
python3Packages,
}:
stdenv.mkDerivation {
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
})
];
nativeBuildInputs = [ wrapPython ];
nativeBuildInputs = [ python3Packages.wrapPython ];
installPhase = ''
install -vD droopy $out/bin/droopy
@@ -43,5 +43,4 @@ stdenv.mkDerivation {
maintainers = [ ];
mainProgram = "droopy";
};
}
@@ -1,22 +1,11 @@
{
lib,
python3Packages,
fetchFromGitHub,
buildPythonApplication,
cacert,
setuptools,
matrix-nio,
python-magic,
markdown,
pillow,
aiofiles,
notify2,
dbus-python,
pyxdg,
python-olm,
emoji,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "matrix-commander";
version = "8.0.5";
@@ -41,6 +30,8 @@ buildPythonApplication rec {
propagatedBuildInputs = [
cacert
]
++ (with python3Packages; [
setuptools
(matrix-nio.override { withOlm = true; })
python-magic
@@ -52,7 +43,7 @@ buildPythonApplication rec {
pyxdg
python-olm
emoji
];
]);
meta = {
description = "Simple but convenient CLI-based Matrix client app for sending and receiving";
@@ -1,24 +1,13 @@
{
stdenv,
lib,
billiard,
buildPythonApplication,
stdenv,
python3Packages,
fetchFromGitHub,
fetchpatch,
gnureadline,
lxml,
matplotlib,
numpy,
opencv-python,
pymavlink,
pynmeagps,
pyserial,
setuptools,
versionCheckHook,
wxpython,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "MAVProxy";
version = "1.8.74";
pyproject = true;
@@ -38,23 +27,25 @@ buildPythonApplication rec {
})
];
build-system = [ setuptools ];
build-system = with python3Packages; [ setuptools ];
dependencies = [
lxml
matplotlib
numpy
opencv-python
pymavlink
pynmeagps
pyserial
setuptools # Imports `pkg_resources` at runtime
wxpython
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
billiard
gnureadline
];
dependencies =
with python3Packages;
[
lxml
matplotlib
numpy
opencv-python
pymavlink
pynmeagps
pyserial
setuptools # Imports `pkg_resources` at runtime
wxpython
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
billiard
gnureadline
];
pythonImportsCheck = [ "MAVProxy" ];
@@ -1,12 +1,9 @@
{
lib,
stdenv,
python,
python3Packages,
qt5,
fetchFromGitHub,
wrapPython,
pyqt5,
pyserial,
dos2unix,
}:
@@ -21,14 +18,15 @@ stdenv.mkDerivation rec {
sha256 = "07snhwmqqp52vdgr66vx50zxx0nmpmns5cdjgh50hzlhji2z1fl9";
};
buildInputs = [ python ];
pythonPath = [
buildInputs = [ python3Packages.python ];
pythonPath = with python3Packages; [
pyqt5.dev
pyserial
];
nativeBuildInputs = [
wrapPython
python3Packages.wrapPython
qt5.wrapQtAppsHook
dos2unix
];
@@ -1,25 +1,14 @@
{
lib,
buildPythonApplication,
python3Packages,
copyDesktopItems,
fetchPypi,
gobject-introspection,
jellyfin-apiclient-python,
jinja2,
makeDesktopItem,
mpv,
pillow,
pystray,
python,
python-mpv-jsonipc,
pywebview,
setuptools,
tkinter,
wrapGAppsHook3,
pypresence,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "jellyfin-mpv-shim";
version = "2.9.0";
pyproject = true;
@@ -35,9 +24,9 @@ buildPythonApplication rec {
gobject-introspection
];
build-system = [ setuptools ];
build-system = with python3Packages; [ setuptools ];
dependencies = [
dependencies = with python3Packages; [
jellyfin-apiclient-python
mpv
pillow
@@ -51,7 +40,7 @@ buildPythonApplication rec {
jinja2
pywebview
# discord rich presence dependencie
# discord rich presence dependency
pypresence
];
@@ -80,7 +69,7 @@ buildPythonApplication rec {
postInstall = ''
for s in 16 32 48 64 128 256; do
mkdir -p $out/share/icons/hicolor/''${s}x''${s}/apps
ln -s $out/${python.sitePackages}/jellyfin_mpv_shim/integration/jellyfin-''${s}.png \
ln -s $out/${python3Packages.python.sitePackages}/jellyfin_mpv_shim/integration/jellyfin-''${s}.png \
$out/share/icons/hicolor/''${s}x''${s}/apps/${pname}.png
done
'';
@@ -1,20 +1,13 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
fetchpatch,
python,
mpv,
requests,
python-mpv-jsonipc,
pystray,
tkinter,
wrapGAppsHook3,
gobject-introspection,
mpv-shim-default-shaders,
}:
buildPythonApplication {
python3Packages.buildPythonApplication {
pname = "plex-mpv-shim";
version = "1.11.0-unstable-2025-03-17";
format = "setuptools";
@@ -31,7 +24,7 @@ buildPythonApplication {
gobject-introspection
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
mpv
requests
python-mpv-jsonipc
@@ -47,7 +40,7 @@ buildPythonApplication {
postInstall = ''
# put link to shaders where upstream package expects them
ln -s ${mpv-shim-default-shaders}/share/mpv-shim-default-shaders $out/${python.sitePackages}/plex_mpv_shim/default_shader_pack
ln -s ${mpv-shim-default-shaders}/share/mpv-shim-default-shaders $out/${python3Packages.python.sitePackages}/plex_mpv_shim/default_shader_pack
'';
# does not contain tests
@@ -1,15 +1,12 @@
{
lib,
buildPythonPackage,
python3Packages,
fetchFromGitHub,
hatchling,
more-itertools,
click,
hyprland,
makeWrapper,
}:
buildPythonPackage (finalAttrs: {
python3Packages.buildPythonPackage (finalAttrs: {
pname = "hyprshade";
version = "4.0.1";
pyproject = true;
@@ -22,11 +19,11 @@ buildPythonPackage (finalAttrs: {
};
nativeBuildInputs = [
hatchling
python3Packages.hatchling
makeWrapper
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
more-itertools
click
];
@@ -1,16 +1,11 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitLab,
makeWrapper,
cmake,
six,
pyparsing,
asn1ate,
colored,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "asn2quickder";
version = "1.7.1";
format = "setuptools";
@@ -33,10 +28,10 @@ buildPythonApplication rec {
nativeBuildInputs = [
makeWrapper
cmake
python3Packages.cmake
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
pyparsing
asn1ate
six
@@ -1,25 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchPypi,
certifi,
charset-normalizer,
enochecker-core,
exceptiongroup,
idna,
iniconfig,
jsons,
packaging,
pluggy,
pytest,
requests,
tomli,
typish,
urllib3,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "enochecker-test";
version = "0.9.0";
format = "setuptools";
@@ -35,7 +20,7 @@ buildPythonApplication rec {
pythonRelaxDeps = true;
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
certifi
charset-normalizer
enochecker-core
+5 -10
View File
@@ -1,23 +1,18 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
clang-tools,
cmake,
colordiff,
flex,
libclang,
llvm,
unifdef,
chardet,
pebble,
psutil,
pytestCheckHook,
testers,
cvise,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "cvise";
version = "2.12.0";
pyproject = false;
@@ -46,7 +41,7 @@ buildPythonApplication rec {
'';
nativeBuildInputs = [
cmake
python3Packages.cmake # TODO: swap this out for the non-python cmake
flex
llvm.dev
];
@@ -58,14 +53,14 @@ buildPythonApplication rec {
unifdef
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
chardet
pebble
psutil
];
nativeCheckInputs = [
pytestCheckHook
python3Packages.pytestCheckHook
unifdef
];
@@ -1,23 +1,19 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchPypi,
gdb,
eventlet,
flask-compress,
flask-socketio,
pygdbmi,
pygments,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "gdbgui";
version = "0.15.3.0";
format = "setuptools";
buildInputs = [ gdb ];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
eventlet
flask-compress
flask-socketio
+7 -16
View File
@@ -1,22 +1,11 @@
{
lib,
buildPythonApplication,
fetchPypi,
stdenv,
click,
coloredlogs,
mido,
psutil,
pycyphal,
pysdl2,
python-rtmidi,
ruamel-yaml,
requests,
scipy,
simplejson,
python3Packages,
fetchPypi,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "yakut";
version = "0.14.2";
format = "setuptools";
@@ -29,7 +18,8 @@ buildPythonApplication rec {
buildInputs = [
(lib.getLib stdenv.cc.cc)
];
dependencies = [
dependencies = with python3Packages; [
click
coloredlogs
psutil
@@ -39,7 +29,8 @@ buildPythonApplication rec {
scipy
simplejson
];
optional-dependencies.joystick = [
optional-dependencies.joystick = with python3Packages; [
pysdl2
mido
python-rtmidi
@@ -1,10 +1,9 @@
{
lib,
python3Packages,
fetchFromGitHub,
fetchpatch,
buildPythonApplication,
appstream-glib,
dbus-python,
desktop-file-utils,
gettext,
glib,
@@ -14,14 +13,11 @@
libappindicator,
libhandy,
meson,
ninja,
pkg-config,
pygobject3,
pyxdg,
wrapGAppsHook3,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "cpupower-gui";
version = "1.0.0";
@@ -57,15 +53,13 @@ buildPythonApplication rec {
gobject-introspection # need for gtk namespace to be available
hicolor-icon-theme # needed for postinstall script
meson
ninja
python3Packages.ninja # TODO: maybe swap out for the non-python package
pkg-config
wrapGAppsHook3
# Python packages
dbus-python
python3Packages.dbus-python
libappindicator
pygobject3
pyxdg
python3Packages.pygobject3
python3Packages.pyxdg
];
buildInputs = [
@@ -75,10 +69,10 @@ buildPythonApplication rec {
];
propagatedBuildInputs = [
dbus-python
python3Packages.dbus-python
libappindicator
pygobject3
pyxdg
python3Packages.pygobject3
python3Packages.pyxdg
];
mesonFlags = [
@@ -1,8 +1,7 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
pkgconfig,
wrapGAppsHook3,
gettext,
gtk3,
@@ -10,12 +9,6 @@
dbus,
gobject-introspection,
xmodmap,
pygobject3,
setuptools,
evdev,
pydantic,
pydbus,
psutil,
procps,
gtksourceview4,
bash,
@@ -37,7 +30,7 @@
let
maybeXmodmap = lib.optional withXmodmap xmodmap;
in
(buildPythonApplication rec {
(python3Packages.buildPythonApplication rec {
pname = "input-remapper";
version = "2.2.0";
format = "setuptools";
@@ -66,11 +59,11 @@ in
gtk3
glib
gobject-introspection
pygobject3
python3Packages.pygobject3
]
++ maybeXmodmap;
dependencies = [
dependencies = with python3Packages; [
setuptools # needs pkg_resources
pygobject3
evdev
@@ -86,7 +79,7 @@ in
udevCheckHook
versionCheckHook
]
++ lib.optionals withDoCheck [ psutil ];
++ lib.optionals withDoCheck [ python3Packages.psutil ];
versionCheckProgram = "${placeholder "out"}/bin/input-remapper-control";
@@ -1,21 +1,10 @@
{
lib,
buildPythonApplication,
appdirs,
beautifulsoup4,
colorlog,
python3Packages,
fetchFromGitHub,
mako,
online-judge-api-client,
online-judge-tools,
ply,
pyyaml,
requests,
setuptools,
toml,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "online-judge-template-generator";
version = "4.8.1";
format = "setuptools";
@@ -27,7 +16,7 @@ buildPythonApplication rec {
sha256 = "sha256-cS1ED1a92fEFqy6ht8UFjxocWIm35IA/VuaPSLsdlqg=";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
appdirs
beautifulsoup4
colorlog
+4 -6
View File
@@ -1,9 +1,7 @@
{
buildPythonApplication,
fetchPypi,
pandocfilters,
panflute,
lib,
python3Packages,
fetchPypi,
pandoc,
pandoc-acro,
texliveTeTeX,
@@ -19,11 +17,11 @@ let
hash = "sha256-JMfSQXX+BCGdFQYPFB+r08WRnhT3aXfnBNINROxCUA0=";
};
in
buildPythonApplication {
python3Packages.buildPythonApplication {
format = "setuptools";
inherit pname version src;
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
pandocfilters
panflute
];
@@ -1,10 +1,9 @@
{
buildPythonApplication,
drawio-headless,
fetchFromGitHub,
lib,
python3Packages,
fetchFromGitHub,
drawio-headless,
pandoc,
pandocfilters,
runCommand,
texliveTeTeX,
}:
@@ -19,7 +18,7 @@ let
sha256 = "sha256-2XJSAfxqEmmamWIAM3vZqi0mZjUUugmR3zWw8Imjadk=";
};
pandoc-drawio-filter = buildPythonApplication {
pandoc-drawio-filter = python3Packages.buildPythonApplication {
format = "setuptools";
pname = "pandoc-drawio-filter";
@@ -27,7 +26,7 @@ let
propagatedBuildInputs = [
drawio-headless
pandocfilters
python3Packages.pandocfilters
];
passthru.tests.example-doc =
+5 -7
View File
@@ -1,12 +1,10 @@
{
buildPythonApplication,
fetchFromGitHub,
lib,
pandoc-xnos,
setuptools,
python3Packages,
fetchFromGitHub,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-eqnos";
version = "2.5.0";
pyproject = true;
@@ -18,11 +16,11 @@ buildPythonApplication rec {
hash = "sha256-7GQdfGHhtQs6LZK+ZyMmcPSkoFfBWmATTMejMiFcS7Y=";
};
nativeBuildInputs = [
nativeBuildInputs = with python3Packages; [
setuptools
];
propagatedBuildInputs = [ pandoc-xnos ];
propagatedBuildInputs = with python3Packages; [ pandoc-xnos ];
# Different pandoc executables are not available
doCheck = false;
+5 -7
View File
@@ -1,12 +1,10 @@
{
buildPythonApplication,
fetchFromGitHub,
lib,
pandoc-xnos,
setuptools,
python3Packages,
fetchFromGitHub,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-fignos";
version = "2.4.0";
pyproject = true;
@@ -18,11 +16,11 @@ buildPythonApplication rec {
sha256 = "sha256-eDwAW0nLB4YqrWT3Ajt9bmX1A43wl+tOPm2St5VpCLk=";
};
nativeBuildInputs = [
nativeBuildInputs = with python3Packages; [
setuptools
];
propagatedBuildInputs = [ pandoc-xnos ];
propagatedBuildInputs = with python3Packages; [ pandoc-xnos ];
# Different pandoc executables are not available
doCheck = false;
+4 -6
View File
@@ -1,12 +1,10 @@
{
fetchFromGitHub,
buildPythonApplication,
lib,
pandocfilters,
six,
python3Packages,
fetchFromGitHub,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-imagine";
version = "0.1.7";
format = "setuptools";
@@ -18,7 +16,7 @@ buildPythonApplication rec {
sha256 = "sha256-IJAXrJakKjROF2xi9dsLvGzyGIyB+GDnx/Z7BRlwSqc=";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
pandocfilters
six
];
+5 -9
View File
@@ -1,15 +1,11 @@
{
buildPythonApplication,
fetchFromGitHub,
lib,
natsort,
panflute,
lxml,
setuptools,
python3Packages,
fetchFromGitHub,
nix-update-script,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-include";
version = "1.4.4";
pyproject = true;
@@ -21,13 +17,13 @@ buildPythonApplication rec {
hash = "sha256-M0frQGg2nHbgY53ejMdbXKLJjXQgx8aNUVxeDDIHdp4=";
};
build-system = [
build-system = with python3Packages; [
setuptools
];
passthru.updateScript = nix-update-script { };
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
natsort
panflute
lxml
@@ -1,13 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchPypi,
setuptools,
setuptools-scm,
pandocfilters,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-plantuml-filter";
version = "0.1.5";
pyproject = true;
@@ -17,12 +14,12 @@ buildPythonApplication rec {
hash = "sha256-9qXeIZuCu44m9EoPCPL7MgEboEwN91OylLfbkwhkZYQ=";
};
build-system = [
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies = [ pandocfilters ];
dependencies = with python3Packages; [ pandocfilters ];
meta = {
homepage = "https://github.com/timofurrer/pandoc-plantuml-filter";
+5 -7
View File
@@ -1,12 +1,10 @@
{
buildPythonApplication,
fetchFromGitHub,
lib,
pandoc-xnos,
setuptools,
python3Packages,
fetchFromGitHub,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-secnos";
version = "2.2.2";
pyproject = true;
@@ -18,11 +16,11 @@ buildPythonApplication rec {
sha256 = "sha256-J9KLZvioYM3Pl2UXjrEgd4PuLTwCLYy9SsJIzgw5/jU=";
};
nativeBuildInputs = [
nativeBuildInputs = with python3Packages; [
setuptools
];
propagatedBuildInputs = [ pandoc-xnos ];
propagatedBuildInputs = with python3Packages; [ pandoc-xnos ];
patches = [
./patch/fix-manifest.patch
+5 -7
View File
@@ -1,12 +1,10 @@
{
buildPythonApplication,
fetchFromGitHub,
lib,
pandoc-xnos,
setuptools,
python3Packages,
fetchFromGitHub,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pandoc-tablenos";
version = "2.3.0";
pyproject = true;
@@ -18,11 +16,11 @@ buildPythonApplication rec {
hash = "sha256-FwzsRziY3PoySo9hIFuLw6tOO9oQij6oQEyoY8HgnII=";
};
nativeBuildInputs = [
nativeBuildInputs = with python3Packages; [
setuptools
];
propagatedBuildInputs = [ pandoc-xnos ];
propagatedBuildInputs = with python3Packages; [ pandoc-xnos ];
# Different pandoc executables are not available
doCheck = false;
+3 -4
View File
@@ -1,11 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
python-dateutil,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pdd";
version = "1.7";
pyproject = false;
@@ -27,7 +26,7 @@ buildPythonApplication rec {
mkdir -p $out/share/fish/vendor_completions.d
'';
dependencies = [ python-dateutil ];
dependencies = with python3Packages; [ python-dateutil ];
installFlags = [ "PREFIX=$(out)" ];
+4 -10
View File
@@ -1,19 +1,13 @@
{
lib,
stdenv,
python3Packages,
fetchpatch,
fetchFromGitHub,
buildPythonApplication,
click,
pydantic,
toml,
watchdog,
pytestCheckHook,
pytest-cov-stub,
rsync,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "remote-exec";
version = "1.13.3";
format = "setuptools";
@@ -40,7 +34,7 @@ buildPythonApplication rec {
--replace-fail '"mremote' '#"mremote'
'';
dependencies = [
dependencies = with python3Packages; [
click
pydantic
toml
@@ -53,7 +47,7 @@ buildPythonApplication rec {
rsync
];
checkInputs = [
checkInputs = with python3Packages; [
pytestCheckHook
pytest-cov-stub
];
+3 -5
View File
@@ -1,12 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchPypi,
markdown,
pygments,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
version = "0.4.1";
format = "setuptools";
pname = "vimwiki-markdown";
@@ -16,7 +14,7 @@ buildPythonApplication rec {
hash = "sha256-hJl0OTE6kHucVGOxgOZBG0noYRfxma3yZSrUWEssLN4=";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
markdown
pygments
];
@@ -1,14 +1,14 @@
{
lib,
python3Packages,
fetchFromGitHub,
buildPythonPackage,
openvpn,
iproute2,
iptables,
util-linux,
}:
buildPythonPackage rec {
python3Packages.buildPythonPackage rec {
pname = "namespaced-openvpn";
version = "0.6.0";
pyproject = false;
+3 -5
View File
@@ -1,12 +1,10 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
python-magic,
python-dateutil,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "s3cmd";
version = "2.4.0";
format = "setuptools";
@@ -18,7 +16,7 @@ buildPythonApplication rec {
sha256 = "sha256-cxwf6+9WFt3U7+JdKRgZxFElD+Dgf2P2VyejHVoiDJk=";
};
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
python-magic
python-dateutil
];
+4 -7
View File
@@ -1,18 +1,15 @@
{
lib,
stdenv,
buildPythonApplication,
python3Packages,
nix-update-script,
fetchFromGitHub,
dnspython,
iproute2,
iptables,
setproctitle,
setuptools,
unixtools,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "vpn-slice";
version = "0.16.1";
pyproject = true;
@@ -35,11 +32,11 @@ buildPythonApplication rec {
--replace-fail "'/sbin/iptables'" "'${iptables}/bin/iptables'"
'';
build-system = [
build-system = with python3Packages; [
setuptools
];
dependencies = [
dependencies = with python3Packages; [
setuptools # can be removed with next package update, upstream no longer has a dependency on distutils
setproctitle
dnspython
+31 -58
View File
@@ -1,37 +1,8 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
aiohttp,
beautifulsoup4,
brotlipy,
cvss,
distro,
filetype,
jinja2,
jsonschema,
lib4sbom,
lib4vex,
packageurl-python,
packaging,
plotly,
python-gnupg,
pyyaml,
requests,
rich,
rpmfile,
xmlschema,
zipp,
zstandard,
# optional-dependencies
reportlab,
# runtime-dependencies
google-cloud-sdk,
@@ -39,7 +10,7 @@
versionCheckHook,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "cve-bin-tool";
version = "3.4";
pyproject = true;
@@ -51,35 +22,37 @@ buildPythonApplication rec {
hash = "sha256-pv8XjKjZBUw5FmmUn1dakGeS1uw2xzF3wSIZOYQ2/3c=";
};
build-system = [ setuptools ];
build-system = with python3Packages; [ setuptools ];
dependencies = [
aiohttp
beautifulsoup4
brotlipy
cvss
distro
filetype
jinja2
jsonschema
lib4sbom
lib4vex
packageurl-python
packaging
plotly
python-gnupg
pyyaml
requests
rich
rpmfile
setuptools
xmlschema
zipp
zstandard
]
++ aiohttp.optional-dependencies.speedups;
dependencies =
with python3Packages;
[
aiohttp
beautifulsoup4
brotlipy
cvss
distro
filetype
jinja2
jsonschema
lib4sbom
lib4vex
packageurl-python
packaging
plotly
python-gnupg
pyyaml
requests
rich
rpmfile
setuptools
xmlschema
zipp
zstandard
]
++ aiohttp.optional-dependencies.speedups;
optional-dependencies = {
optional-dependencies = with python3Packages; {
pdf = [ reportlab ];
};
@@ -1,13 +1,8 @@
{
lib,
stdenv,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
poetry-core,
fido2,
nitrokey,
pyside6,
usb-monitor,
qt6,
}:
@@ -20,7 +15,7 @@ let
;
in
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "nitrokey-app2";
version = "2.5.2";
pyproject = true;
@@ -44,11 +39,11 @@ buildPythonApplication rec {
qtsvg
];
build-system = [
build-system = with python3Packages; [
poetry-core
];
dependencies = [
dependencies = with python3Packages; [
fido2
nitrokey
pyside6
+5 -7
View File
@@ -1,12 +1,10 @@
{
buildPythonApplication,
fetchPypi,
lib,
python-gnupg,
setuptools,
python3Packages,
fetchPypi,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pass2csv";
version = "1.2.0";
pyproject = true;
@@ -16,11 +14,11 @@ buildPythonApplication rec {
hash = "sha256-IdcSwQ9O2HmCvT8p4tC7e2GQuhkE3kvMINszZH970og=";
};
nativeBuildInputs = [
nativeBuildInputs = with python3Packages; [
setuptools
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
python-gnupg
];
+3 -8
View File
@@ -1,19 +1,14 @@
{
lib,
buildPythonApplication,
python3Packages,
fetchFromGitHub,
atk,
gobject-introspection,
wrapGAppsHook3,
click,
hidapi,
psutil,
pygobject3,
udevCheckHook,
stdenv,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "cm-rgb";
version = "0.3.6";
format = "setuptools";
@@ -34,7 +29,7 @@ buildPythonApplication rec {
udevCheckHook
];
propagatedBuildInputs = [
propagatedBuildInputs = with python3Packages; [
click
hidapi
psutil
+41 -50
View File
@@ -407,7 +407,7 @@ with pkgs;
dnf4 = python3Packages.callPackage ../development/python-modules/dnf4/wrapper.nix { };
enochecker-test = with python3Packages; callPackage ../development/tools/enochecker-test { };
enochecker-test = callPackage ../development/tools/enochecker-test { };
inherit (gridlock) nyarr;
@@ -1433,7 +1433,7 @@ with pkgs;
bitwarden-directory-connector
;
bitwarden-menu = python3Packages.callPackage ../applications/misc/bitwarden-menu { };
bitwarden-menu = callPackage ../applications/misc/bitwarden-menu { };
blocksat-cli = with python3Packages; toPythonApplication blocksat-cli;
@@ -1746,7 +1746,7 @@ with pkgs;
cairo = cairo.override { xcbSupport = true; };
};
hyprshade = python3Packages.callPackage ../applications/window-managers/hyprwm/hyprshade { };
hyprshade = callPackage ../applications/window-managers/hyprwm/hyprshade { };
hyprlandPlugins = recurseIntoAttrs (
callPackage ../applications/window-managers/hyprwm/hyprland-plugins { }
@@ -1754,7 +1754,7 @@ with pkgs;
intensity-normalization = with python3Packages; toPythonApplication intensity-normalization;
jellyfin-mpv-shim = python3Packages.callPackage ../applications/video/jellyfin-mpv-shim { };
jellyfin-mpv-shim = callPackage ../applications/video/jellyfin-mpv-shim { };
klaus = with python3Packages; toPythonApplication klaus;
@@ -1823,9 +1823,7 @@ with pkgs;
ocrmypdf = with python3.pkgs; toPythonApplication ocrmypdf;
online-judge-template-generator =
python3Packages.callPackage ../tools/misc/online-judge-template-generator
{ };
online-judge-template-generator = callPackage ../tools/misc/online-judge-template-generator { };
online-judge-tools = with python3.pkgs; toPythonApplication online-judge-tools;
@@ -1835,7 +1833,7 @@ with pkgs;
pixcat = with python3Packages; toPythonApplication pixcat;
remarkable-mouse = python3Packages.callPackage ../applications/misc/remarkable/remarkable-mouse { };
remarkable-mouse = callPackage ../applications/misc/remarkable/remarkable-mouse { };
ropgadget = with python3Packages; toPythonApplication ropgadget;
@@ -1997,7 +1995,7 @@ with pkgs;
blacken-docs = with python3Packages; toPythonApplication blacken-docs;
bluetooth_battery = python3Packages.callPackage ../applications/misc/bluetooth_battery { };
bluetooth_battery = callPackage ../applications/misc/bluetooth_battery { };
cffconvert = python3Packages.toPythonApplication python3Packages.cffconvert;
@@ -2072,7 +2070,7 @@ with pkgs;
ngtcp2 = ngtcp2-gnutls;
};
cve-bin-tool = python3Packages.callPackage ../tools/security/cve-bin-tool { };
cve-bin-tool = callPackage ../tools/security/cve-bin-tool { };
dconf2nix = callPackage ../development/tools/haskell/dconf2nix { };
@@ -2427,7 +2425,7 @@ with pkgs;
infisical = callPackage ../development/tools/infisical { };
input-remapper = python3Packages.callPackage ../tools/inputmethods/input-remapper { };
input-remapper = callPackage ../tools/inputmethods/input-remapper { };
internetarchive = with python3Packages; toPythonApplication internetarchive;
@@ -2788,21 +2786,20 @@ with pkgs;
nvfetcher = haskell.lib.compose.justStaticExecutables haskellPackages.nvfetcher;
pandoc-acro = python3Packages.callPackage ../tools/misc/pandoc-acro { };
pandoc-acro = callPackage ../tools/misc/pandoc-acro { };
pandoc-imagine = python3Packages.callPackage ../tools/misc/pandoc-imagine { };
pandoc-imagine = callPackage ../tools/misc/pandoc-imagine { };
pandoc-include = python3Packages.callPackage ../tools/misc/pandoc-include { };
pandoc-include = callPackage ../tools/misc/pandoc-include { };
pandoc-drawio-filter = python3Packages.callPackage ../tools/misc/pandoc-drawio-filter { };
pandoc-drawio-filter = callPackage ../tools/misc/pandoc-drawio-filter { };
pandoc-plantuml-filter = python3Packages.callPackage ../tools/misc/pandoc-plantuml-filter { };
pandoc-plantuml-filter = callPackage ../tools/misc/pandoc-plantuml-filter { };
# pandoc-*nos is a filter suite, where pandoc-xnos has all functionality and the others are used for only specific functionality
pandoc-eqnos = python3Packages.callPackage ../tools/misc/pandoc-eqnos { };
pandoc-fignos = python3Packages.callPackage ../tools/misc/pandoc-fignos { };
pandoc-secnos = python3Packages.callPackage ../tools/misc/pandoc-secnos { };
pandoc-tablenos = python3Packages.callPackage ../tools/misc/pandoc-tablenos { };
pandoc-eqnos = callPackage ../tools/misc/pandoc-eqnos { };
pandoc-fignos = callPackage ../tools/misc/pandoc-fignos { };
pandoc-secnos = callPackage ../tools/misc/pandoc-secnos { };
pandoc-tablenos = callPackage ../tools/misc/pandoc-tablenos { };
pgbadger = perlPackages.callPackage ../tools/misc/pgbadger { };
@@ -2872,7 +2869,7 @@ with pkgs;
inherit (llvmPackages) stdenv;
};
namespaced-openvpn = python3Packages.callPackage ../tools/networking/namespaced-openvpn { };
namespaced-openvpn = callPackage ../tools/networking/namespaced-openvpn { };
update-dotdee = with python3Packages; toPythonApplication update-dotdee;
@@ -2931,7 +2928,7 @@ with pkgs;
polkitSupport = true;
};
pdd = python3Packages.callPackage ../tools/misc/pdd { };
pdd = callPackage ../tools/misc/pdd { };
pdfminer = with python3Packages; toPythonApplication pdfminer-six;
@@ -3039,7 +3036,7 @@ with pkgs;
recoll-nox = recoll.override { withGui = false; };
remote-exec = python3Packages.callPackage ../tools/misc/remote-exec { };
remote-exec = callPackage ../tools/misc/remote-exec { };
reptor = with python3.pkgs; toPythonApplication reptor;
@@ -3065,7 +3062,7 @@ with pkgs;
ruby-lsp = rubyPackages.ruby-lsp;
s3cmd = python3Packages.callPackage ../tools/networking/s3cmd { };
s3cmd = callPackage ../tools/networking/s3cmd { };
s3-credentials = with python3Packages; toPythonApplication s3-credentials;
@@ -3115,9 +3112,7 @@ with pkgs;
strip-nondeterminism = perlPackages.strip-nondeterminism;
sumorobot-manager =
python3Packages.callPackage ../applications/science/robotics/sumorobot-manager
{ };
sumorobot-manager = callPackage ../applications/science/robotics/sumorobot-manager { };
sslscan = callPackage ../tools/security/sslscan {
openssl = openssl.override { withZlib = true; };
@@ -3207,12 +3202,12 @@ with pkgs;
vimpager = callPackage ../tools/misc/vimpager { };
vimpager-latest = callPackage ../tools/misc/vimpager/latest.nix { };
vimwiki-markdown = python3Packages.callPackage ../tools/misc/vimwiki-markdown { };
vimwiki-markdown = callPackage ../tools/misc/vimwiki-markdown { };
voxtype-vulkan = callPackage ../by-name/vo/voxtype/package.nix { vulkanSupport = true; };
voxtype-onnx = callPackage ../by-name/vo/voxtype/package.nix { onnxSupport = true; };
vpn-slice = python3Packages.callPackage ../tools/networking/vpn-slice { };
vpn-slice = callPackage ../tools/networking/vpn-slice { };
openconnectPackages = callPackage ../tools/networking/openconnect { };
@@ -5041,7 +5036,7 @@ with pkgs;
ansible-builder = with python3Packages; toPythonApplication ansible-builder;
yakut = python3Packages.callPackage ../development/tools/misc/yakut { };
yakut = callPackage ../development/tools/misc/yakut { };
### DEVELOPMENT / TOOLS / LANGUAGE-SERVERS
@@ -5073,7 +5068,7 @@ with pkgs;
apacheKafka = apacheKafka_4_2;
asn2quickder = python3Packages.callPackage ../development/tools/asn2quickder { };
asn2quickder = callPackage ../development/tools/asn2quickder { };
libastyle = astyle.override { asLibrary = true; };
@@ -5348,7 +5343,7 @@ with pkgs;
css-html-js-minify = with python3Packages; toPythonApplication css-html-js-minify;
cvise = python3Packages.callPackage ../development/tools/misc/cvise {
cvise = callPackage ../development/tools/misc/cvise {
# cvise needs a port to latest llvm-21:
# https://github.com/marxin/cvise/issues/340
inherit (llvmPackages_20) llvm libclang;
@@ -5425,7 +5420,7 @@ with pkgs;
haskellPackages.callPackage ../tools/misc/fffuu { }
);
gdbgui = python3Packages.callPackage ../development/tools/misc/gdbgui { };
gdbgui = callPackage ../development/tools/misc/gdbgui { };
flex_2_5_35 = callPackage ../development/tools/parsing/flex/2.5.35.nix { };
flex = callPackage ../development/tools/parsing/flex { };
@@ -5486,7 +5481,7 @@ with pkgs;
maven3 = maven;
inherit (maven) buildMaven;
mavproxy = python3Packages.callPackage ../applications/science/robotics/mavproxy { };
mavproxy = callPackage ../applications/science/robotics/mavproxy { };
python-matter-server =
with python3Packages;
@@ -8054,7 +8049,7 @@ with pkgs;
};
busybox-sandbox-shell = callPackage ../os-specific/linux/busybox/sandbox-shell.nix { };
cm-rgb = python3Packages.callPackage ../tools/system/cm-rgb { };
cm-rgb = callPackage ../tools/system/cm-rgb { };
conky = callPackage ../os-specific/linux/conky (
{
@@ -8064,9 +8059,7 @@ with pkgs;
// config.conky or { }
);
cpupower-gui = python3Packages.callPackage ../os-specific/linux/cpupower-gui {
inherit (pkgs) meson;
};
cpupower-gui = callPackage ../os-specific/linux/cpupower-gui { };
# Darwin package set
#
@@ -8867,7 +8860,7 @@ with pkgs;
drawterm-wayland = callPackage ../by-name/dr/drawterm/package.nix { withWayland = true; };
droopy = python3Packages.callPackage ../applications/networking/droopy { };
droopy = callPackage ../applications/networking/droopy { };
evilwm = callPackage ../applications/window-managers/evilwm {
patches = config.evilwm.patches or [ ];
@@ -9184,7 +9177,7 @@ with pkgs;
ocamlPackages = ocaml-ng.ocamlPackages_4_14;
};
pass2csv = python3Packages.callPackage ../tools/security/pass2csv { };
pass2csv = callPackage ../tools/security/pass2csv { };
pinboard = with python3Packages; toPythonApplication pinboard;
@@ -9374,9 +9367,7 @@ with pkgs;
shelfMultiBand = callPackage ../applications/audio/magnetophonDSP/shelfMultiBand { };
};
matrix-commander =
python3Packages.callPackage ../applications/networking/instant-messengers/matrix-commander
{ };
matrix-commander = callPackage ../applications/networking/instant-messengers/matrix-commander { };
mediaelch-qt5 = callPackage ../by-name/me/mediaelch/package.nix { qtVersion = 5; };
mediaelch-qt6 = mediaelch;
@@ -9443,7 +9434,7 @@ with pkgs;
mpvScripts = callPackage ../by-name/mp/mpv/scripts.nix { };
mu-repo = python3Packages.callPackage ../applications/misc/mu-repo { };
mu-repo = callPackage ../applications/misc/mu-repo { };
murmur =
(callPackages ../applications/networking/mumble {
@@ -9583,7 +9574,7 @@ with pkgs;
inherit (pidginPackages) pidgin;
plex-mpv-shim = python3Packages.callPackage ../applications/video/plex-mpv-shim { };
plex-mpv-shim = callPackage ../applications/video/plex-mpv-shim { };
# perhaps there are better apps for this task? It's how I had configured my previous system.
# And I don't want to rewrite all rules
@@ -9671,7 +9662,7 @@ with pkgs;
withXineBackend = true;
};
rednotebook = python3Packages.callPackage ../applications/editors/rednotebook { };
rednotebook = callPackage ../applications/editors/rednotebook { };
ringboard-wayland = callPackage ../by-name/ri/ringboard/package.nix { displayServer = "wayland"; };
@@ -10191,7 +10182,7 @@ with pkgs;
ydiff = with python3.pkgs; toPythonApplication ydiff;
yokadi = python3Packages.callPackage ../applications/misc/yokadi { };
yokadi = callPackage ../applications/misc/yokadi { };
your-editor = callPackage ../applications/editors/your-editor { stdenv = gccStdenv; };
@@ -11341,7 +11332,7 @@ with pkgs;
hasktags = haskellPackages.hasktags;
};
termpdfpy = python3Packages.callPackage ../applications/misc/termpdf.py { };
termpdfpy = callPackage ../applications/misc/termpdf.py { };
inherit (callPackage ../applications/networking/cluster/terraform { })
mkTerraform
@@ -11453,7 +11444,7 @@ with pkgs;
torcs-without-data = callPackage ../by-name/to/torcs/without-data.nix { };
nitrokey-app2 = python3Packages.callPackage ../tools/security/nitrokey-app2 { };
nitrokey-app2 = callPackage ../tools/security/nitrokey-app2 { };
hy = with python3Packages; toPythonApplication hy;