pkgs/by-name/{u,v,w,x,y,z}*: migrate to pyproject = true

This commit is contained in:
TomaSajt 2025-07-13 17:03:16 +02:00
parent 214bf60564
commit 3f6d337be6
No known key found for this signature in database
GPG Key ID: F011163C050122A1
42 changed files with 261 additions and 129 deletions

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "uddup"; pname = "uddup";
version = "0.9.3"; version = "0.9.3";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rotemreiss"; owner = "rotemreiss";
@ -16,7 +16,11 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "1f5dm3772hiik9irnyvbs7wygcafbwi7czw3b47cwhb90b8fi5hg"; sha256 = "1f5dm3772hiik9irnyvbs7wygcafbwi7czw3b47cwhb90b8fi5hg";
}; };
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
colorama colorama
]; ];

View File

@ -10,7 +10,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "udocker"; pname = "udocker";
version = "1.3.17"; version = "1.3.17";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "indigo-dc"; owner = "indigo-dc";
@ -30,6 +30,10 @@ python3Packages.buildPythonApplication rec {
singularity singularity
]; ];
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [ dependencies = with python3Packages; [
pycurl pycurl
]; ];
@ -49,6 +53,8 @@ python3Packages.buildPythonApplication rec {
"tests/unit/test_dockerioapi.py" "tests/unit/test_dockerioapi.py"
]; ];
pythonImportsCheck = [ "udocker" ];
passthru = { passthru = {
tests.version = testers.testVersion { package = udocker; }; tests.version = testers.testVersion { package = udocker; };
}; };

View File

@ -23,15 +23,14 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "ulauncher"; pname = "ulauncher";
version = "5.15.7"; version = "5.15.7";
format = "setuptools"; pyproject = true;
src = fetchurl { src = fetchurl {
url = "https://github.com/Ulauncher/Ulauncher/releases/download/${version}/ulauncher_${version}.tar.gz"; url = "https://github.com/Ulauncher/Ulauncher/releases/download/${version}/ulauncher_${version}.tar.gz";
hash = "sha256-YgOw3Gyy/o8qorWAnAlQrAZ2ZTnyP3PagLs2Qkdg788="; hash = "sha256-YgOw3Gyy/o8qorWAnAlQrAZ2ZTnyP3PagLs2Qkdg788=";
}; };
nativeBuildInputs = with python3Packages; [ nativeBuildInputs = [
distutils-extra
gobject-introspection gobject-introspection
intltool intltool
wrapGAppsHook3 wrapGAppsHook3
@ -50,7 +49,12 @@ python3Packages.buildPythonApplication rec {
wmctrl wmctrl
]; ];
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [
setuptools
distutils-extra
];
dependencies = with python3Packages; [
mock mock
dbus-python dbus-python
pygobject3 pygobject3
@ -102,6 +106,8 @@ python3Packages.buildPythonApplication rec {
runHook postCheck runHook postCheck
''; '';
pythonImportsCheck = [ "ulauncher" ];
# do not double wrap # do not double wrap
dontWrapGApps = true; dontWrapGApps = true;
preFixup = '' preFixup = ''

View File

@ -5,9 +5,9 @@
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
version = "0.4.0";
format = "setuptools";
pname = "undervolt"; pname = "undervolt";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "georgewhewell"; owner = "georgewhewell";
@ -16,6 +16,10 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-G+CK/lnZXkQdyNZPqY9P3owVJsd22H3K8wSpjHFG0ow="; hash = "sha256-G+CK/lnZXkQdyNZPqY9P3owVJsd22H3K8wSpjHFG0ow=";
}; };
build-system = with python3Packages; [ setuptools ];
pythonImportsCheck = [ "undervolt" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/georgewhewell/undervolt/"; homepage = "https://github.com/georgewhewell/undervolt/";
description = "Program for undervolting Intel CPUs on Linux"; description = "Program for undervolting Intel CPUs on Linux";

View File

@ -10,7 +10,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "unicode"; pname = "unicode";
version = "2.9"; version = "2.9";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "garabik"; owner = "garabik";
@ -26,9 +26,11 @@ python3Packages.buildPythonApplication rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
build-system = with python3Packages; [ setuptools ];
postFixup = '' postFixup = ''
substituteInPlace "$out/bin/.unicode-wrapped" \ substituteInPlace "$out/bin/.unicode-wrapped" \
--replace "/usr/share/unicode/UnicodeData.txt" "$ucdtxt" --replace-fail "/usr/share/unicode/UnicodeData.txt" "$ucdtxt"
''; '';
postInstall = '' postInstall = ''

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
pname = "unsilence"; pname = "unsilence";
version = "1.0.9"; version = "1.0.9";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lagmoellertim"; owner = "lagmoellertim";
@ -16,13 +16,12 @@ python3Packages.buildPythonPackage rec {
hash = "sha256-M4Ek1JZwtr7vIg14aTa8h4otIZnPQfKNH4pZE4GpiBQ="; hash = "sha256-M4Ek1JZwtr7vIg14aTa8h4otIZnPQfKNH4pZE4GpiBQ=";
}; };
nativeBuildInputs = with python3Packages; [ build-system = with python3Packages; [
rich setuptools
]; ];
propagatedBuildInputs = [ dependencies = with python3Packages; [
python3Packages.rich rich
python3Packages.setuptools # imports pkg_resources.parse_version
]; ];
makeWrapperArgs = [ makeWrapperArgs = [

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "urlwatch"; pname = "urlwatch";
version = "2.29"; version = "2.29";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "thp"; owner = "thp";
@ -16,7 +16,9 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-X1UR9JrQuujOIUg87W0YqfXsM3A5nttWjjJMIe3hgk8="; hash = "sha256-X1UR9JrQuujOIUg87W0YqfXsM3A5nttWjjJMIe3hgk8=";
}; };
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
cssselect cssselect
jq jq
keyring keyring
@ -35,6 +37,8 @@ python3Packages.buildPythonApplication rec {
# no tests # no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "urlwatch" ];
meta = with lib; { meta = with lib; {
description = "Tool for monitoring webpages for updates"; description = "Tool for monitoring webpages for updates";
mainProgram = "urlwatch"; mainProgram = "urlwatch";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
pname = "usbrip"; pname = "usbrip";
version = "unstable-2021-07-02"; version = "unstable-2021-07-02";
format = "setuptools"; pyproject = true;
disabled = python3.pythonOlder "3.6"; disabled = python3.pythonOlder "3.6";
@ -18,7 +18,9 @@ python3.pkgs.buildPythonApplication {
sha256 = "1vws8ybhv7szpqvlbmv0hrkys2fhhaa5bj9dywv3q2y1xmljl0py"; sha256 = "1vws8ybhv7szpqvlbmv0hrkys2fhhaa5bj9dywv3q2y1xmljl0py";
}; };
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
termcolor termcolor
terminaltables terminaltables
tqdm tqdm
@ -27,9 +29,8 @@ python3.pkgs.buildPythonApplication {
postPatch = '' postPatch = ''
# Remove install helpers which we don't need # Remove install helpers which we don't need
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "parse_requirements('requirements.txt')," "[]," \ --replace-fail "resolve('wheel')" "" \
--replace "resolve('wheel')" "" \ --replace-fail "'install': LocalInstallCommand," ""
--replace "'install': LocalInstallCommand," ""
''; '';
# Project has no tests # Project has no tests

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "usbsdmux"; pname = "usbsdmux";
version = "24.1.1"; version = "24.1.1";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -22,6 +22,8 @@ python3Packages.buildPythonApplication rec {
--replace-fail 'TAG+="uaccess", GROUP="plugdev"' 'TAG+="uaccess"' --replace-fail 'TAG+="uaccess", GROUP="plugdev"' 'TAG+="uaccess"'
''; '';
build-system = with python3Packages; [ setuptools ];
nativeBuildInputs = [ nativeBuildInputs = [
udevCheckHook udevCheckHook
]; ];
@ -32,6 +34,8 @@ python3Packages.buildPythonApplication rec {
install -Dm0444 -t $out/lib/udev/rules.d/ contrib/udev/99-usbsdmux.rules install -Dm0444 -t $out/lib/udev/rules.d/ contrib/udev/99-usbsdmux.rules
''; '';
pythonImportsCheck = [ "usbsdmux" ];
meta = with lib; { meta = with lib; {
description = "Control software for the LXA USB-SD-Mux"; description = "Control software for the LXA USB-SD-Mux";
homepage = "https://github.com/linux-automation/usbsdmux"; homepage = "https://github.com/linux-automation/usbsdmux";

View File

@ -6,7 +6,9 @@
python312Packages.buildPythonApplication { python312Packages.buildPythonApplication {
pname = "vanguards"; pname = "vanguards";
version = "0.3.1-unstable-2023-10-31"; version = "0.3.1-unstable-2023-10-31";
format = "setuptools"; pyproject = true;
build-system = [ python312Packages.setuptools ];
dependencies = [ python312Packages.stem ]; dependencies = [ python312Packages.stem ];
#tries to access the network during the tests, which fails #tries to access the network during the tests, which fails
@ -25,6 +27,8 @@ python312Packages.buildPythonApplication {
'import stem.response.events' 'import stem.socket; import stem.control; import stem.response.events' 'import stem.response.events' 'import stem.socket; import stem.control; import stem.response.events'
''; '';
pythonImportsCheck = [ "vanguards" ];
meta = { meta = {
maintainers = with lib.maintainers; [ ForgottenBeast ]; maintainers = with lib.maintainers; [ ForgottenBeast ];
mainProgram = "vanguards"; mainProgram = "vanguards";

View File

@ -23,7 +23,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "variety"; pname = "variety";
version = "0.8.13"; version = "0.8.13";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "varietywalls"; owner = "varietywalls";
@ -46,6 +46,8 @@ python3Packages.buildPythonApplication rec {
librsvg librsvg
] ++ lib.optional appindicatorSupport libayatana-appindicator; ] ++ lib.optional appindicatorSupport libayatana-appindicator;
build-system = with python3Packages; [ setuptools ];
dependencies = dependencies =
with python3Packages; with python3Packages;
[ [
@ -85,6 +87,8 @@ python3Packages.buildPythonApplication rec {
--replace-fail "{VARIETY_PATH}" "variety" --replace-fail "{VARIETY_PATH}" "variety"
''; '';
pythonImportsCheck = [ "variety" ];
meta = { meta = {
homepage = "https://github.com/varietywalls/variety"; homepage = "https://github.com/varietywalls/variety";
description = "Wallpaper manager for Linux systems"; description = "Wallpaper manager for Linux systems";

View File

@ -12,16 +12,18 @@ with python3Packages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "vcstool"; pname = "vcstool";
version = "0.3.0"; version = "0.3.0";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "04b3a963e15386660f139e5b95d293e43e3cb414e3b13e14ee36f5223032ee2c"; sha256 = "04b3a963e15386660f139e5b95d293e43e3cb414e3b13e14ee36f5223032ee2c";
}; };
propagatedBuildInputs = [ build-system = with python3Packages; [ setuptools ];
dependencies = [
pyyaml pyyaml
setuptools setuptools # pkg_resources is imported during runtime
]; ];
makeWrapperArgs = [ makeWrapperArgs = [
@ -37,6 +39,8 @@ buildPythonApplication rec {
doCheck = false; # requires network doCheck = false; # requires network
pythonImportsCheck = [ "vcstool" ];
meta = with lib; { meta = with lib; {
description = "Provides a command line tool to invoke vcs commands on multiple repositories"; description = "Provides a command line tool to invoke vcs commands on multiple repositories";
homepage = "https://github.com/dirk-thomas/vcstool"; homepage = "https://github.com/dirk-thomas/vcstool";

View File

@ -4,12 +4,10 @@
fetchFromGitHub, fetchFromGitHub,
}: }:
with python3Packages; python3Packages.buildPythonApplication rec {
buildPythonApplication rec {
pname = "vim-vint"; pname = "vim-vint";
version = "0.3.21"; version = "0.3.21";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Vimjas"; owner = "Vimjas";
@ -18,18 +16,18 @@ buildPythonApplication rec {
hash = "sha256-A0yXDkB/b9kEEXSoLeqVdmdm4p2PYL2QHqbF4FgAn30="; hash = "sha256-A0yXDkB/b9kEEXSoLeqVdmdm4p2PYL2QHqbF4FgAn30=";
}; };
# For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails. build-system = with python3Packages; [ setuptools ];
disabled = !pythonAtLeast "3.5";
nativeCheckInputs = [ dependencies = with python3Packages; [
pytestCheckHook
pytest-cov-stub
];
propagatedBuildInputs = [
ansicolor ansicolor
chardet chardet
pyyaml pyyaml
setuptools setuptools # pkg_resources is imported during runtime
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
pytest-cov-stub
]; ];
preCheck = '' preCheck = ''

View File

@ -10,7 +10,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "vimiv-qt"; pname = "vimiv-qt";
version = "0.9.0"; version = "0.9.0";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "karlch"; owner = "karlch";
@ -19,13 +19,14 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-28sk5qDVmrgXYX2wm5G8zv564vG6GwxNp+gjrFHCRfU="; sha256 = "sha256-28sk5qDVmrgXYX2wm5G8zv564vG6GwxNp+gjrFHCRfU=";
}; };
build-system = with python3.pkgs; [ setuptools ];
nativeBuildInputs = [ nativeBuildInputs = [
installShellFiles installShellFiles
qt5.wrapQtAppsHook qt5.wrapQtAppsHook
python3.pkgs.setuptools
]; ];
propagatedBuildInputs = with python3.pkgs; [ dependencies = with python3.pkgs; [
pyqt5 pyqt5
py3exiv2 py3exiv2
]; ];
@ -44,6 +45,8 @@ python3.pkgs.buildPythonApplication rec {
done done
''; '';
pythonImportsCheck = [ "vimiv" ];
# Vimiv has to be wrapped manually because it is a non-ELF executable. # Vimiv has to be wrapped manually because it is a non-ELF executable.
dontWrapQtApps = true; dontWrapQtApps = true;
preFixup = '' preFixup = ''

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "virtnbdbackup"; pname = "virtnbdbackup";
version = "2.29"; version = "2.29";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "abbbi"; owner = "abbbi";
@ -38,6 +38,8 @@ python3Packages.buildPythonApplication rec {
versionCheckProgramArg = "-V"; versionCheckProgramArg = "-V";
pythonImportsCheck = [ "libvirtnbdbackup" ];
meta = { meta = {
description = "Backup utility for Libvirt/qemu/kvm"; description = "Backup utility for Libvirt/qemu/kvm";
homepage = "https://github.com/abbbi/virtnbdbackup"; homepage = "https://github.com/abbbi/virtnbdbackup";

View File

@ -11,7 +11,7 @@ with python3Packages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "vit"; pname = "vit";
version = "2.3.3"; version = "2.3.3";
format = "setuptools"; pyproject = true;
disabled = lib.versionOlder python.version "3.7"; disabled = lib.versionOlder python.version "3.7";
src = fetchPypi { src = fetchPypi {
@ -19,7 +19,9 @@ buildPythonApplication rec {
hash = "sha256-+lrXGfhoB4z5IWkJTXMIm3GGVPfNGO9lUB3uFTx8hDY="; hash = "sha256-+lrXGfhoB4z5IWkJTXMIm3GGVPfNGO9lUB3uFTx8hDY=";
}; };
propagatedBuildInputs = [ build-system = with python3Packages; [ setuptools ];
dependencies = [
tasklib tasklib
urwid urwid
]; ];
@ -37,6 +39,8 @@ buildPythonApplication rec {
export TERM=''${TERM-linux} export TERM=''${TERM-linux}
''; '';
pythonImportsCheck = [ "vit" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/scottkosty/vit"; homepage = "https://github.com/scottkosty/vit";
description = "Visual Interactive Taskwarrior"; description = "Visual Interactive Taskwarrior";

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "vkbasalt-cli"; pname = "vkbasalt-cli";
version = "3.1.1"; version = "3.1.1";
format = "setuptools"; pyproject = true;
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "TheEvilSkeleton"; owner = "TheEvilSkeleton";
@ -19,9 +19,11 @@ python3Packages.buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace vkbasalt/lib.py \ substituteInPlace vkbasalt/lib.py \
--replace /usr ${vkbasalt} --replace-fail /usr ${vkbasalt}
''; '';
build-system = with python3Packages; [ setuptools ];
pythonImportsCheck = [ "vkbasalt.lib" ]; pythonImportsCheck = [ "vkbasalt.lib" ];
meta = with lib; { meta = with lib; {

View File

@ -16,7 +16,8 @@ in
python.pkgs.buildPythonApplication rec { python.pkgs.buildPythonApplication rec {
pname = "waagent"; pname = "waagent";
version = "2.14.0.0"; version = "2.14.0.0";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Azure"; owner = "Azure";
repo = "WALinuxAgent"; repo = "WALinuxAgent";
@ -47,7 +48,9 @@ python.pkgs.buildPythonApplication rec {
--replace-fail '/usr/bin/openssl' '${openssl}/bin/openssl' --replace-fail '/usr/bin/openssl' '${openssl}/bin/openssl'
''; '';
propagatedBuildInputs = [ python.pkgs.distro ]; build-system = with python.pkgs; [ setuptools ];
dependencies = with python.pkgs; [ distro ];
# The udev rules are placed to the wrong place. # The udev rules are placed to the wrong place.
# Move them to their default location. # Move them to their default location.

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "wad"; pname = "wad";
version = "0.4.6"; version = "0.4.6";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "CERN-CERT"; owner = "CERN-CERT";
@ -16,7 +16,9 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-/mlmOzFkyKpmK/uk4813Wk0cf/+ynX3Qxafnd1mGR5k="; hash = "sha256-/mlmOzFkyKpmK/uk4813Wk0cf/+ynX3Qxafnd1mGR5k=";
}; };
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
six six
]; ];

View File

@ -6,12 +6,10 @@
fetchpatch, fetchpatch,
}: }:
with python3.pkgs; python3.pkgs.buildPythonApplication rec {
buildPythonApplication rec {
pname = "watson"; pname = "watson";
version = "2.1.0"; version = "2.1.0";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jazzband"; owner = "jazzband";
@ -29,25 +27,31 @@ buildPythonApplication rec {
}) })
]; ];
nativeBuildInputs = [ installShellFiles ];
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
arrow
click
click-didyoumean
requests
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
pytest-mock
mock
pytest-datafiles
];
postInstall = '' postInstall = ''
installShellCompletion --bash --name watson watson.completion installShellCompletion --bash --name watson watson.completion
installShellCompletion --zsh --name _watson watson.zsh-completion installShellCompletion --zsh --name _watson watson.zsh-completion
installShellCompletion --fish watson.fish installShellCompletion --fish watson.fish
''; '';
nativeCheckInputs = [ pythonImportsCheck = [ "watson" ];
pytestCheckHook
pytest-mock
mock
pytest-datafiles
];
propagatedBuildInputs = [
arrow
click
click-didyoumean
requests
];
nativeBuildInputs = [ installShellFiles ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jazzband/Watson"; homepage = "https://github.com/jazzband/Watson";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "wayback-machine-archiver"; pname = "wayback-machine-archiver";
version = "1.9.1"; version = "1.9.1";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "agude"; owner = "agude";
@ -16,8 +16,13 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "0dnnqx507gpj8wsx6f2ivfmha969ydayiqsvxh23p9qcixw9257x"; sha256 = "0dnnqx507gpj8wsx6f2ivfmha969ydayiqsvxh23p9qcixw9257x";
}; };
nativeBuildInputs = with python3.pkgs; [ pypandoc ]; build-system = with python3.pkgs; [
propagatedBuildInputs = with python3.pkgs; [ requests ]; setuptools
pypandoc
];
dependencies = with python3.pkgs; [ requests ];
nativeCheckInputs = with python3.pkgs; [ nativeCheckInputs = with python3.pkgs; [
pytestCheckHook pytestCheckHook
requests-mock requests-mock
@ -25,7 +30,7 @@ python3.pkgs.buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace \"pytest-runner\", "" --replace-fail \"pytest-runner\", ""
''; '';
pythonImportsCheck = [ "wayback_machine_archiver" ]; pythonImportsCheck = [ "wayback_machine_archiver" ];

View File

@ -9,7 +9,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "waymore"; pname = "waymore";
version = "4.7"; version = "4.7";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xnl-h4ck3r"; owner = "xnl-h4ck3r";
@ -26,6 +26,11 @@ python3Packages.buildPythonApplication rec {
setuptools setuptools
]; ];
pythonRemoveDeps = [
# python already provides urllib.parse
"urlparse3"
];
dependencies = with python3Packages; [ dependencies = with python3Packages; [
requests requests
termcolor termcolor
@ -35,6 +40,8 @@ python3Packages.buildPythonApplication rec {
tldextract tldextract
]; ];
pythonImportsCheck = [ "waymore.waymore" ];
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = waymore; package = waymore;
command = "waymore --version"; command = "waymore --version";

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
pname = "win2xcur"; pname = "win2xcur";
version = "0.1.2"; version = "0.1.2";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "quantum5"; owner = "quantum5";
@ -16,11 +16,18 @@ python3Packages.buildPythonPackage rec {
hash = "sha256-OjLj+QYg8YOJzDq3Y6/uyEXlNWbPm8VA/b1yP9jT6Jo="; hash = "sha256-OjLj+QYg8YOJzDq3Y6/uyEXlNWbPm8VA/b1yP9jT6Jo=";
}; };
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
numpy numpy
wand wand
]; ];
pythonImportsCheck = [
"win2xcur.main.win2xcur"
"win2xcur.main.x2wincur"
];
meta = { meta = {
description = "Tools that convert cursors between the Windows (*.cur, *.ani) and Xcursor format"; description = "Tools that convert cursors between the Windows (*.cur, *.ani) and Xcursor format";
homepage = "https://github.com/quantum5/win2xcur"; homepage = "https://github.com/quantum5/win2xcur";

View File

@ -4,19 +4,19 @@
fetchPypi, fetchPypi,
}: }:
with python3.pkgs; python3.pkgs.buildPythonPackage rec {
buildPythonPackage rec {
pname = "wlc"; pname = "wlc";
version = "1.15"; version = "1.15";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-0T8cMq5Mrv/Ygo6BfYho3sjFuu8dYZyUMtJc5gabuG4="; hash = "sha256-0T8cMq5Mrv/Ygo6BfYho3sjFuu8dYZyUMtJc5gabuG4=";
}; };
propagatedBuildInputs = [ build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
argcomplete argcomplete
python-dateutil python-dateutil
requests requests
@ -25,10 +25,12 @@ buildPythonPackage rec {
twine twine
]; ];
nativeCheckInputs = [ nativeCheckInputs = with python3.pkgs; [
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "wlc" ];
meta = with lib; { meta = with lib; {
description = "Weblate commandline client using Weblate's REST API"; description = "Weblate commandline client using Weblate's REST API";
homepage = "https://github.com/WeblateOrg/wlc"; homepage = "https://github.com/WeblateOrg/wlc";

View File

@ -5,15 +5,19 @@
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
version = "1.3.1";
format = "setuptools";
pname = "wllvm"; pname = "wllvm";
version = "1.3.1";
pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-PgV6V18FyezIZpqMQEbyv98MaVM7h7T7/Kvg3yMMwzE="; hash = "sha256-PgV6V18FyezIZpqMQEbyv98MaVM7h7T7/Kvg3yMMwzE=";
}; };
build-system = with python3Packages; [ setuptools ];
pythonImportsCheck = [ "wllvm.wllvm" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/travitch/whole-program-llvm"; homepage = "https://github.com/travitch/whole-program-llvm";
description = "Wrapper script to build whole-program LLVM bitcode files"; description = "Wrapper script to build whole-program LLVM bitcode files";

View File

@ -7,15 +7,17 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "wpm"; pname = "wpm";
version = "1.51.5"; version = "1.51.5";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-swT9E5Tto4yWnm0voowcJXtY3cIY3MNqAdfrTnuGbdg="; hash = "sha256-swT9E5Tto4yWnm0voowcJXtY3cIY3MNqAdfrTnuGbdg=";
}; };
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
setuptools
dependencies = with python3.pkgs; [
setuptools # pkg_resources is imported during runtime
]; ];
pythonImportsCheck = [ "wpm" ]; pythonImportsCheck = [ "wpm" ];

View File

@ -13,7 +13,7 @@
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
pname = "xborders"; pname = "xborders";
version = "3.4"; # in version.txt version = "3.4"; # in version.txt
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "deter0"; owner = "deter0";
@ -33,7 +33,9 @@ python3Packages.buildPythonPackage rec {
gobject-introspection gobject-introspection
]; ];
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pycairo pycairo
requests requests
pygobject3 pygobject3

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication { python3Packages.buildPythonApplication {
pname = "xdxf2slob"; pname = "xdxf2slob";
version = "unstable-2015-06-30"; version = "unstable-2015-06-30";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "itkach"; owner = "itkach";
@ -16,11 +16,15 @@ python3Packages.buildPythonApplication {
sha256 = "0m3dnc3816ja3kmik1wabb706dkqdf5sxvabwgf2rcrq891xcddd"; sha256 = "0m3dnc3816ja3kmik1wabb706dkqdf5sxvabwgf2rcrq891xcddd";
}; };
propagatedBuildInputs = [ build-system = with python3Packages; [ setuptools ];
python3Packages.pyicu
python3Packages.slob dependencies = with python3Packages; [
pyicu
slob
]; ];
pythonImportsCheck = [ "xdxf2slob" ];
meta = with lib; { meta = with lib; {
description = "Tool to convert XDXF dictionary files to slob format"; description = "Tool to convert XDXF dictionary files to slob format";
homepage = "https://github.com/itkach/xdxf2slob/"; homepage = "https://github.com/itkach/xdxf2slob/";

View File

@ -13,7 +13,7 @@ let
mbuild = python3Packages.buildPythonPackage rec { mbuild = python3Packages.buildPythonPackage rec {
pname = "mbuild"; pname = "mbuild";
version = "2024.11.04"; version = "2024.11.04";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "intelxed"; owner = "intelxed";
@ -22,6 +22,8 @@ let
hash = "sha256-iQVykBG3tEPxI1HmqBkvO1q+K8vi64qBfVC63/rcTOk="; hash = "sha256-iQVykBG3tEPxI1HmqBkvO1q+K8vi64qBfVC63/rcTOk=";
}; };
build-system = with python3Packages; [ setuptools ];
meta = { meta = {
description = "Python-based build system used for building XED"; description = "Python-based build system used for building XED";
homepage = "https://github.com/intelxed/mbuild"; homepage = "https://github.com/intelxed/mbuild";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "xenomapper"; pname = "xenomapper";
version = "1.0.2"; version = "1.0.2";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "genomematt"; owner = "genomematt";
@ -16,7 +16,14 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "0mnmfzlq5mhih6z8dq5bkx95vb8whjycz9mdlqwbmlqjb3gb3zhr"; sha256 = "0mnmfzlq5mhih6z8dq5bkx95vb8whjycz9mdlqwbmlqjb3gb3zhr";
}; };
propagatedBuildInputs = with python3.pkgs; [ statistics ]; build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [ statistics ];
pythonImportsCheck = [
"xenomapper.xenomapper"
"xenomapper.mappability"
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/genomematt/xenomapper"; homepage = "https://github.com/genomematt/xenomapper";

View File

@ -11,7 +11,7 @@ in
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
inherit pname version; inherit pname version;
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -20,12 +20,16 @@ python3.pkgs.buildPythonApplication {
doCheck = false; doCheck = false;
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
requests requests
radon radon
pyaml pyaml
]; ];
pythonImportsCheck = [ "xenon" ];
meta = with lib; { meta = with lib; {
description = "Monitoring tool based on radon"; description = "Monitoring tool based on radon";
homepage = "https://github.com/rubik/xenon"; homepage = "https://github.com/rubik/xenon";

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication { python3Packages.buildPythonApplication {
pname = "xkeysnail"; pname = "xkeysnail";
version = "0.4"; version = "0.4";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mooz"; owner = "mooz";
@ -24,7 +24,9 @@ python3Packages.buildPythonApplication {
}) })
]; ];
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
evdev evdev
xlib xlib
inotify-simple inotify-simple
@ -38,6 +40,8 @@ python3Packages.buildPythonApplication {
--add-flags "-q" --add-flags "$out/share/browser.py" --add-flags "-q" --add-flags "$out/share/browser.py"
''; '';
pythonImportsCheck = [ "xkeysnail" ];
meta = { meta = {
description = "Yet another keyboard remapping tool for X environment"; description = "Yet another keyboard remapping tool for X environment";
homepage = "https://github.com/mooz/xkeysnail"; homepage = "https://github.com/mooz/xkeysnail";

View File

@ -14,13 +14,15 @@ let
}; };
in in
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
format = "setuptools";
pname = "xmldiff"; pname = "xmldiff";
inherit version src; inherit version src;
pyproject = true;
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
lxml lxml
setuptools setuptools # pkg_resources is imported during runtime
]; ];
meta = { meta = {

View File

@ -11,7 +11,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "xonsh-direnv"; pname = "xonsh-direnv";
version = "1.6.5"; version = "1.6.5";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "74th"; owner = "74th";

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "xpaste"; pname = "xpaste";
version = "1.6"; version = "1.6";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ossobv"; owner = "ossobv";
@ -16,7 +16,9 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-eVnoLG+06UTOkvGhzL/XS4JBrEwbXYZ1fuNTIW7YAfE="; hash = "sha256-eVnoLG+06UTOkvGhzL/XS4JBrEwbXYZ1fuNTIW7YAfE=";
}; };
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
xlib xlib
]; ];

View File

@ -8,7 +8,7 @@ python3Packages.buildPythonPackage rec {
pname = "yams"; pname = "yams";
# nixpkgs-update: no auto update # nixpkgs-update: no auto update
version = "0.7.3"; version = "0.7.3";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Berulacks"; owner = "Berulacks";
@ -17,7 +17,9 @@ python3Packages.buildPythonPackage rec {
sha256 = "1zkhcys9i0s6jkaz24an690rvnkv1r84jxpaa84sf46abi59ijh8"; sha256 = "1zkhcys9i0s6jkaz24an690rvnkv1r84jxpaa84sf46abi59ijh8";
}; };
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pyyaml pyyaml
psutil psutil
mpd2 mpd2
@ -26,6 +28,8 @@ python3Packages.buildPythonPackage rec {
doCheck = false; doCheck = false;
pythonImportsCheck = [ "yams.scrobble" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/Berulacks/yams"; homepage = "https://github.com/Berulacks/yams";
description = "Last.FM scrobbler for MPD"; description = "Last.FM scrobbler for MPD";

View File

@ -10,7 +10,7 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "you-get"; pname = "you-get";
version = "0.4.1700"; version = "0.4.1700";
format = "setuptools"; pyproject = true;
# Tests aren't packaged, but they all hit the real network so # Tests aren't packaged, but they all hit the real network so
# probably aren't suitable for a build environment anyway. # probably aren't suitable for a build environment anyway.
@ -31,6 +31,8 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
build-system = with python3.pkgs; [ setuptools ];
postInstall = '' postInstall = ''
installShellCompletion --cmd you-get \ installShellCompletion --cmd you-get \
--zsh contrib/completion/_you-get \ --zsh contrib/completion/_you-get \

View File

@ -2,14 +2,14 @@
lib, lib,
python3Packages, python3Packages,
fetchPypi, fetchPypi,
yt-dlp,
ffmpeg, ffmpeg,
writableTmpDirAsHomeHook,
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "ytmdl"; pname = "ytmdl";
version = "2023.11.26"; version = "2023.11.26";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname; inherit pname;
@ -19,13 +19,13 @@ python3Packages.buildPythonApplication rec {
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "bs4" "beautifulsoup4" \ --replace-fail "/etc/bash_completion.d" "share/bash-completion/completions" \
--replace "/etc/bash_completion.d" "share/bash-completion/completions" \ --replace-fail "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
--replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
sed -i '/python_requires=/d' setup.py
''; '';
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
ffmpeg-python ffmpeg-python
musicbrainzngs musicbrainzngs
rich rich
@ -51,8 +51,11 @@ python3Packages.buildPythonApplication rec {
(lib.makeBinPath [ ffmpeg ]) (lib.makeBinPath [ ffmpeg ])
]; ];
# This application has no tests nativeCheckInputs = [
doCheck = false; writableTmpDirAsHomeHook # the app tries to log stuff into xdg_cache_home
];
pythonImportsCheck = [ "ytmdl" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/deepjyoti30/ytmdl"; homepage = "https://github.com/deepjyoti30/ytmdl";

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "zapzap"; pname = "zapzap";
version = "6.1"; version = "6.1";
format = "setuptools"; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rafatosta"; owner = "rafatosta";
@ -17,8 +17,7 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-g3J9oVIRiar0QoksRjJZsbvSKiFBILaUdSUscNs1VXE="; hash = "sha256-g3J9oVIRiar0QoksRjJZsbvSKiFBILaUdSUscNs1VXE=";
}; };
nativeBuildInputs = with python3Packages; [ nativeBuildInputs = [
setuptools
qt6.wrapQtAppsHook qt6.wrapQtAppsHook
]; ];
@ -31,7 +30,9 @@ python3Packages.buildPythonApplication rec {
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
''; '';
propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
dbus-python dbus-python
pyqt6 pyqt6
pyqt6-webengine pyqt6-webengine
@ -51,6 +52,8 @@ python3Packages.buildPythonApplication rec {
# has no tests # has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "zapzap" ];
meta = with lib; { meta = with lib; {
description = "WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine."; description = "WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine.";
homepage = "https://rtosta.com/zapzap-web/"; homepage = "https://rtosta.com/zapzap-web/";

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "zfs-autobackup"; pname = "zfs-autobackup";
version = "3.3"; version = "3.3";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
@ -15,7 +15,9 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-nAc1mdrtIEmUS0uMqOdvV07xP02MFj6F5uCTiCXtnMs="; hash = "sha256-nAc1mdrtIEmUS0uMqOdvV07xP02MFj6F5uCTiCXtnMs=";
}; };
propagatedBuildInputs = with python3Packages; [ colorama ]; build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [ colorama ];
pythonRemoveDeps = [ "argparse" ]; pythonRemoveDeps = [ "argparse" ];

View File

@ -19,7 +19,7 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "zim"; pname = "zim";
version = "0.76.3"; version = "0.76.3";
format = "setuptools"; pyproject = true;
src = fetchurl { src = fetchurl {
url = "https://zim-wiki.org/downloads/zim-${version}.tar.gz"; url = "https://zim-wiki.org/downloads/zim-${version}.tar.gz";
@ -36,6 +36,8 @@ python3Packages.buildPythonApplication rec {
adwaita-icon-theme adwaita-icon-theme
]; ];
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [ dependencies = with python3Packages; [
pyxdg pyxdg
pygobject3 pygobject3

View File

@ -7,14 +7,16 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "zsh-history-to-fish"; pname = "zsh-history-to-fish";
version = "0.3.0"; version = "0.3.0";
format = "setuptools"; pyproject = true;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-expPuffZttyXNRreplPC5Ee/jfWAyOnmjTIMXONtrnw="; hash = "sha256-expPuffZttyXNRreplPC5Ee/jfWAyOnmjTIMXONtrnw=";
}; };
propagatedBuildInputs = with python3.pkgs; [ build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
click click
]; ];