pkgs/by-name/{o,p,q}*: migrate to pyproject = true

This commit is contained in:
TomaSajt 2025-07-11 22:13:59 +02:00
parent 90c068fb42
commit ec6994d319
No known key found for this signature in database
GPG Key ID: F011163C050122A1
47 changed files with 262 additions and 108 deletions

View File

@ -26,7 +26,7 @@ in
py.pkgs.buildPythonApplication rec {
pname = "oci-cli";
version = "3.62.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "oracle";
@ -37,7 +37,11 @@ py.pkgs.buildPythonApplication rec {
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = with py.pkgs; [
build-system = with py.pkgs; [
setuptools
];
dependencies = with py.pkgs; [
arrow
certifi
click
@ -55,6 +59,7 @@ py.pkgs.buildPythonApplication rec {
];
pythonRelaxDeps = [
"click"
"PyYAML"
"cryptography"
"oci"

View File

@ -11,7 +11,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "onioncircuits";
version = "0.8.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.tails.boum.org";
@ -25,10 +25,14 @@ python3.pkgs.buildPythonApplication rec {
gobject-introspection
intltool
wrapGAppsHook3
python3.pkgs.distutils-extra
];
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [
setuptools
distutils-extra
];
dependencies = with python3.pkgs; [
pygobject3
stem
];

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec {
pname = "onlykey-cli";
version = "1.2.10";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit version;
@ -16,10 +16,14 @@ python3Packages.buildPythonApplication rec {
};
build-system = with python3Packages; [
cython
setuptools
];
propagatedBuildInputs = with python3Packages; [
pythonRemoveDeps = [
"Cython" # don't know why cython is listed as a runtime dependency, let's just remove it
];
dependencies = with python3Packages; [
aenum
ecdsa
hidapi

View File

@ -6,7 +6,7 @@
}:
python3Packages.buildPythonApplication {
format = "setuptools";
pyproject = true;
pname = "opensnitch-ui";
inherit (opensnitch) src version;
@ -18,7 +18,6 @@ python3Packages.buildPythonApplication {
'';
nativeBuildInputs = [
python3Packages.pyqt5
qt5.wrapQtAppsHook
];
@ -26,6 +25,11 @@ python3Packages.buildPythonApplication {
qt5.qtwayland
];
build-system = with python3Packages; [
setuptools
pyqt5
];
dependencies = with python3Packages; [
grpcio-tools
notify2
@ -59,6 +63,8 @@ python3Packages.buildPythonApplication {
# All tests are sandbox-incompatible and disabled for now
doCheck = false;
pythonImportsCheck = [ "opensnitch" ];
meta = {
description = "Application firewall";
mainProgram = "opensnitch-ui";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "opentimestamps-client";
version = "0.7.2";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "opentimestamps";
@ -16,7 +16,11 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-ny2svB8WcoUky8UfeilANo1DlS+f3o9RtV4YNmUwjJk=";
};
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
appdirs
gitpython
opentimestamps

View File

@ -8,7 +8,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "outputcheck";
version = "0.4.2";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "stp";
@ -23,16 +23,18 @@ python3.pkgs.buildPythonApplication rec {
# - Fix version number cannot find error
postPatch = ''
substituteInPlace OutputCheck/Driver.py \
--replace "argparse.FileType('rU')" "argparse.FileType('r')"
--replace-fail "argparse.FileType('rU')" "argparse.FileType('r')"
substituteInPlace tests/invalid-regex-syntax.smt2 \
--replace "unbalanced parenthesis" "missing ), unterminated subpattern"
--replace-fail "unbalanced parenthesis" "missing ), unterminated subpattern"
echo ${version} > RELEASE-VERSION
'';
nativeCheckInputs = [ lit ];
build-system = with python3.pkgs; [ setuptools ];
checkPhase = ''
runHook preCheck

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication {
pname = "parsero";
version = "0.81";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "behindthefirewalls";
@ -16,7 +16,13 @@ python3Packages.buildPythonApplication {
sha256 = "rqupeJxslL3AfQ+CzBWRb4ZS32VoYd8hlA+eACMKGPY=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
pythonRemoveDeps = [
"pip" # this dependency is never actually used
];
dependencies = with python3Packages; [
beautifulsoup4
urllib3
];

View File

@ -15,7 +15,7 @@ python3.pkgs.buildPythonApplication {
# seemingly abandoned D-Bus package pydbus and started using maintained
# dbus-next. So let's use latest from GitHub.
version = "0-unstable-2023-12-16";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "mdellweg";
@ -28,14 +28,13 @@ python3.pkgs.buildPythonApplication {
# /etc/ in check phase.
postPatch = ''
substituteInPlace Makefile \
--replace "dbus-run-session" "dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf" \
--replace '-p $(relpassstore)' '-p $(PASSWORD_STORE_DIR)' \
--replace 'pytest-3' 'pytest'
--replace-fail "dbus-run-session" "dbus-run-session --config-file=${dbus}/share/dbus-1/session.conf" \
--replace-fail '-p $(relpassstore)' '-p $(PASSWORD_STORE_DIR)'
substituteInPlace systemd/org.freedesktop.secrets.service \
--replace "/bin/false" "${coreutils}/bin/false"
--replace-fail "/bin/false" "${coreutils}/bin/false"
substituteInPlace systemd/dbus-org.freedesktop.secrets.service \
--replace "/usr/local" "$out"
--replace-fail "/usr/local" "$out"
'';
postInstall = ''
@ -44,7 +43,11 @@ python3.pkgs.buildPythonApplication {
cp systemd/dbus-org.freedesktop.secrets.service "$out/lib/systemd/user/"
'';
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
click
cryptography
dbus-next
@ -67,6 +70,8 @@ python3.pkgs.buildPythonApplication {
checkTarget = "test";
pythonImportsCheck = [ "pass_secret_service" ];
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version=branch" ];

View File

@ -7,17 +7,23 @@
python3Packages.buildPythonApplication rec {
pname = "patatt";
version = "0.6.3";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-mAgm9lKdJXbCZ8ofVk1b7wRstH5UIVu1mO1sS5stCig=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
pynacl
];
pythonImportsCheck = [ "patatt" ];
meta = with lib; {
homepage = "https://git.kernel.org/pub/scm/utils/patatt/patatt.git/about/";
license = licenses.mit0;

View File

@ -8,7 +8,7 @@
python312.pkgs.buildPythonApplication rec {
pname = "patray";
version = "0.1.2";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit version pname;
@ -21,6 +21,8 @@ python312.pkgs.buildPythonApplication rec {
sed -i '/pyside2/d' requirements/production.in
'';
build-system = with python312.pkgs; [ setuptools ];
dependencies = with python312.pkgs; [
pulsectl
loguru

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "pentestgpt";
version = "unstable-2023-06-27";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "GreyDGL";
@ -16,6 +16,8 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-m0R/kMmbr5Ixuqvw6ZRoaAGCnI3j86Iwk4+TYqv0WbU=";
};
build-system = with python3.pkgs; [ setuptools ];
pythonRelaxDeps = [ "playwright" ];
pythonRemoveDeps = [
"beautifulsoup4"
@ -23,7 +25,7 @@ python3.pkgs.buildPythonApplication rec {
"pytest"
];
propagatedBuildInputs = with python3.pkgs; [
dependencies = with python3.pkgs; [
beautifulsoup4
colorama
google

View File

@ -6,7 +6,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "perfect-hash";
version = "0.4.1";
format = "setuptools";
pyproject = true;
# Archive on pypi does not contain examples, which are very helpful to
# understand how to use this program, so we use git source.
@ -17,6 +17,8 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "0gkc3n613hl0q4jknrh2nm1n96j97p36q9jjgarb9d8yii9q7792";
};
build-system = with python3.pkgs; [ setuptools ];
postInstall = ''
mkdir -p $out/share/doc/perfect-hash
cp README.md $out/share/doc/perfect-hash

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec {
pname = "peru";
version = "1.3.3";
format = "setuptools";
pyproject = true;
disabled = python3Packages.pythonOlder "3.5";
@ -18,7 +18,9 @@ python3Packages.buildPythonApplication rec {
sha256 = "FCyR14jcFjI6epoFPNVyFZ4k1URZ1NraX1+ajVcCQ2A=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pyyaml
docopt
];
@ -26,6 +28,8 @@ python3Packages.buildPythonApplication rec {
# No tests in archive
doCheck = false;
pythonImportsCheck = [ "peru" ];
meta = with lib; {
homepage = "https://github.com/buildinspace/peru";
description = "Tool for including other people's code in your projects";

View File

@ -4,22 +4,24 @@
fetchPypi,
}:
with python3.pkgs;
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "pew";
version = "1.2.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "04anak82p4v9w0lgfs55s7diywxil6amq8c8bhli143ca8l2fcdq";
};
propagatedBuildInputs = [
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
virtualenv
virtualenv-clone
setuptools
setuptools # pkg_resources is imported during runtime
];
# no tests are packaged

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec {
pname = "pg_activity";
version = "3.6.0";
format = "setuptools";
pyproject = true;
disabled = python3Packages.pythonOlder "3.8";
src = fetchFromGitHub {
@ -17,7 +17,9 @@ python3Packages.buildPythonApplication rec {
sha256 = "sha256-7nHtJl/b2pZqiJbpWArMS5jh7B8dv8V1esic6uFPV/0=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
attrs
blessed
humanize

View File

@ -11,7 +11,7 @@
python3Packages.buildPythonApplication rec {
pname = "photocollage";
version = "1.4.6";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "adrienverge";
@ -20,7 +20,9 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-jDb2mFsok8TNi9+A/FAieqo7YbAUsmrFRBGwdGv71Xg=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pillow
pycairo
pygobject3
@ -50,6 +52,8 @@ python3Packages.buildPythonApplication rec {
cp -r ./data/icons $out/share/icons
'';
pythonImportsCheck = [ "photocollage" ];
meta = {
description = "Graphical tool to make photo collage posters";
homepage = "https://github.com/adrienverge/PhotoCollage";

View File

@ -8,7 +8,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "pianotrans";
version = "1.0.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "azuwis";
@ -17,7 +17,9 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-gRbyUQmPtGvx5QKAyrmeJl0stp7hwLBWwjSbJajihdE=";
};
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
piano-transcription-inference
resampy
tkinter

View File

@ -11,7 +11,7 @@
python3Packages.buildPythonPackage {
pname = "pick-colour-picker";
version = "unstable-2022-05-08";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "stuartlangridge";
@ -31,6 +31,8 @@ python3Packages.buildPythonPackage {
wrapGAppsHook3
];
build-system = with python3Packages; [ setuptools ];
pythonPath = with python3Packages; [
pygobject3
pycairo
@ -41,6 +43,8 @@ python3Packages.buildPythonPackage {
gtk3
];
pythonImportsCheck = [ "pick" ];
meta = with lib; {
homepage = "https://kryogenix.org/code/pick/";
license = licenses.mit;

View File

@ -8,14 +8,19 @@
python3Packages.buildPythonApplication rec {
pname = "pifpaf";
version = "3.3.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-xXkMj1sP1xXf6Ad/71BFbq8SHz/uHcaSqv6RQN0Ca1o=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies = with python3Packages; [
click
daiquiri
fixtures

View File

@ -4,19 +4,19 @@
fetchPypi,
}:
with python3.pkgs;
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "pipreqs";
version = "0.4.13";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-oX8WeIC2khvjdTPOTIHdxuIrRlwQeq1VfbQ7Gt1WqZs=";
};
propagatedBuildInputs = [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
yarg
docopt
];
@ -24,6 +24,8 @@ buildPythonApplication rec {
# Tests requires network access. Works fine without sandboxing
doCheck = false;
pythonImportsCheck = [ "pipreqs" ];
meta = with lib; {
description = "Generate requirements.txt file for any project based on imports";
homepage = "https://github.com/bndr/pipreqs";

View File

@ -9,19 +9,23 @@ with python3Packages;
buildPythonApplication rec {
pname = "pirate-get";
version = "0.4.2";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-VtnVyJqrdGXTqcyzpHCOMUI9G7/BkXzihDrBrsxl7Eg=";
};
propagatedBuildInputs = [
build-system = with python3Packages; [ setuptools ];
dependencies = [
colorama
veryprettytable
pyperclip
];
pythonImportsCheck = [ "pirate" ];
meta = with lib; {
description = "Command line interface for The Pirate Bay";
mainProgram = "pirate-get";

View File

@ -9,7 +9,7 @@ let
version = "0.5.3";
in
python3Packages.buildPythonApplication {
format = "setuptools";
pyproject = true;
inherit pname version;
src = fetchPypi {
@ -17,13 +17,18 @@ python3Packages.buildPythonApplication {
hash = "sha256-6TvMznd5obkn/gsQTyZ6Pc/dF55I53987EbuSNAlY58=";
};
build-system = with python3Packages; [ setuptools ];
dependencies =
with python3Packages;
[
pymupdf
img2pdf
]
++ lib.optional guiSupport tkinter;
pythonImportsCheck = [ "plakativ" ];
meta = {
description = "Convert a PDF into a large poster that can be printed on multiple smaller pages";
mainProgram = "plakativ";

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication {
pname = "plecost";
version = "1.1.4";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "iniqua";
@ -27,7 +27,9 @@ python3Packages.buildPythonApplication {
})
];
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
aiohttp
async-timeout
termcolor
@ -37,6 +39,8 @@ python3Packages.buildPythonApplication {
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "plecost_lib" ];
meta = with lib; {
description = "Vulnerability fingerprinting and vulnerability finder for Wordpress blog engine";
mainProgram = "plecost";

View File

@ -7,15 +7,16 @@
python3.pkgs.buildPythonPackage rec {
pname = "polygon-cli";
version = "1.1.11";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-gEz3kcXbXj9dXnMCx0Q8TjCQemXvJne9EwFsPt14xV4=";
};
propagatedBuildInputs = with python3.pkgs; [
setuptools
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
requests
prettytable
colorama
@ -24,6 +25,8 @@ python3.pkgs.buildPythonPackage rec {
doCheck = false;
pythonImportsCheck = [ "polygon_cli" ];
meta = {
description = "Command-line tool for polygon.codeforces.com";
mainProgram = "polygon-cli";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication {
pname = "pqos-wrapper";
version = "unstable-2022-01-31";
format = "setuptools";
pyproject = true;
src = fetchFromGitLab {
group = "sosy-lab";
@ -17,8 +17,12 @@ python3.pkgs.buildPythonApplication {
hash = "sha256-SaYr6lVucpJjVtGgxRbDGYbOoBwdfEDVKtvD+M1L0o4=";
};
build-system = with python3.pkgs; [ setuptools ];
makeWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ intel-cmt-cat ]}" ];
pythonImportsCheck = [ "pqos_wrapper" ];
meta = with lib; {
description = "Wrapper for Intel PQoS for the purpose of using it in BenchExec";
homepage = "https://gitlab.com/sosy-lab/software/pqos-wrapper";

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication rec {
pname = "pre-commit-hook-ensure-sops";
version = "1.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "yuvipanda";
@ -26,8 +26,12 @@ python3Packages.buildPythonApplication rec {
})
];
propagatedBuildInputs = [
python3Packages.ruamel-yaml
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
ruamel-yaml
];
pythonImportsCheck = [

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication {
pname = "config-visualizer";
version = "unstable-2022-02-23";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "precice";
@ -16,7 +16,9 @@ python3Packages.buildPythonApplication {
hash = "sha256-2dnpkec9hN4oAqwu+1WmDJrfeu+JbfqZ6guv3bC4H1c=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
lxml
pydot
];

View File

@ -18,14 +18,16 @@ in
python3Packages.buildPythonPackage rec {
pname = "present";
version = "0.6.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-l9W5L4LD9qRo3rLBkgd2I/aDaj+ucib5UYg+X4RYg6c=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
click
pyyaml
pyfiglet

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication {
pname = "deluge-exporter";
version = "2.4.0-unstable-2024-06-02";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "ibizaman";
@ -16,7 +16,9 @@ python3.pkgs.buildPythonApplication {
hash = "sha256-1brLWx6IEGffcvHPCkz10k9GCNQIXXJ9PYZuEzlKHTA=";
};
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
deluge-client
loguru
prometheus-client

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication {
pname = "protocol";
version = "unstable-2019-03-28";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "luismartingarcia";
@ -18,9 +18,11 @@ python3.pkgs.buildPythonApplication {
postPatch = ''
substituteInPlace setup.py \
--replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
--replace-fail "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
'';
build-system = with python3.pkgs; [ setuptools ];
meta = with lib; {
description = "ASCII Header Generator for Network Protocols";
homepage = "https://github.com/luismartingarcia/protocol";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "proxmove";
version = "1.2";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "ossobv";
@ -16,7 +16,11 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-8xzsmQsogoMrdpf8+mVZRWPGQt9BO0dBT0aKt7ygUe4=";
};
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
proxmoxer
];

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec {
pname = "ps_mem";
version = "3.14";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "pixelb";
@ -16,6 +16,10 @@ python3Packages.buildPythonApplication rec {
hash = "sha256-jCfPtPSky/QFk9Xo/tq3W7609Pie1yLC4iS4dqjCa+E=";
};
build-system = with python3Packages; [ setuptools ];
pythonImportsCheck = [ "ps_mem" ];
meta = {
description = "Utility to accurately report the in core memory usage for a program";
homepage = "https://github.com/pixelb/ps_mem";

View File

@ -12,7 +12,7 @@
python3Packages.buildPythonApplication rec {
pname = "pulsemeeter";
version = "1.2.14";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "theRealCarneiro";
@ -47,6 +47,8 @@ python3Packages.buildPythonApplication rec {
dontWrapGApps = true;
pythonImportsCheck = [ "pulsemeeter" ];
passthru.tests.version = callPackage ./version-test.nix { inherit version; };
meta = {

View File

@ -11,7 +11,7 @@ in
buildPythonApplication rec {
pname = "pwgen-secure";
version = "0.9.1";
format = "setuptools";
pyproject = true;
# it needs `secrets` which was introduced in 3.6
disabled = pythonOlder "3.6";
@ -35,7 +35,9 @@ buildPythonApplication rec {
--replace-fail "os.path.join(path, 'words.txt')" "os.path.join('$shareDir', 'words.txt')"
'';
propagatedBuildInputs = with python3Packages; [ docopt ];
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [ docopt ];
postInstall = ''
install -Dm555 spwgen.py $out/bin/spwgen
@ -45,6 +47,8 @@ buildPythonApplication rec {
# there are no checks
doCheck = false;
pythonImportsCheck = [ "pwgen_secure" ];
meta = with lib; {
description = "Secure password generation library to replace pwgen";
homepage = "https://github.com/mjmunger/pwgen_secure/";

View File

@ -49,7 +49,7 @@ in
python3.pkgs.buildPythonApplication rec {
pname = "pyca";
version = "4.5";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "opencast";
@ -58,7 +58,9 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-cTkWkOmgxJZlddqaSYKva2wih4Mvsdrd7LD4NggxKQk=";
};
propagatedBuildInputs = with python.pkgs; [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python.pkgs; [
pycurl
python-dateutil
configobj
@ -73,6 +75,8 @@ python3.pkgs.buildPythonApplication rec {
sed -i -e 's#static_folder=.*#static_folder="${frontend}/static")#' pyca/ui/__init__.py
'';
pythonImportsCheck = [ "pyca" ];
passthru = {
inherit frontend;
};

View File

@ -9,7 +9,7 @@
python3Packages.buildPythonApplication rec {
pname = "pyamlboot";
version = "1.0.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "superna9999";
@ -24,10 +24,11 @@ python3Packages.buildPythonApplication rec {
dependencies = with python3Packages; [
pyusb
wheel
setuptools
setuptools # pkg_resources is imported during runtime
];
pythonImportsCheck = [ "pyamlboot" ];
passthru.tests.version = testers.testVersion {
package = pyamlboot;
command = "boot.py -v";

View File

@ -14,7 +14,7 @@
python3Packages.buildPythonApplication rec {
pname = "pychess";
version = "1.0.5";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "pychess";
@ -36,7 +36,9 @@ python3Packages.buildPythonApplication rec {
gtksourceview
];
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
pygobject3
pycairo
sqlalchemy
@ -65,6 +67,8 @@ python3Packages.buildPythonApplication rec {
# No tests available.
doCheck = false;
pythonImportsCheck = [ "pychess" ];
meta = {
description = "Advanced GTK chess client written in Python";
homepage = "https://pychess.github.io/";

View File

@ -7,13 +7,15 @@
python3Packages.buildPythonPackage rec {
pname = "pydf";
version = "12";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "7f47a7c3abfceb1ac04fc009ded538df1ae449c31203962a1471a4eb3bf21439";
};
build-system = with python3Packages; [ setuptools ];
postInstall = ''
mkdir -p $out/share/man/man1 $out/share/pydf
install -t $out/share/pydf -m 444 pydfrc

View File

@ -9,7 +9,7 @@
python3Packages.buildPythonApplication rec {
pname = "pykickstart";
version = "3.65";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "pykickstart";
@ -35,6 +35,8 @@ python3Packages.buildPythonApplication rec {
# Can't package it and not really necessary so disable them.
doCheck = false;
pythonImportsCheck = [ "pykickstart" ];
meta = {
description = "Python package to interact with Kickstart files commonly found in the RPM world";
homepage = "https://github.com/pykickstart/pykickstart";

View File

@ -7,7 +7,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "pylode";
version = "2.13.3";
format = "setuptools";
pyproject = true;
disabled = python3.pythonOlder "3.6";
@ -18,7 +18,9 @@ python3.pkgs.buildPythonApplication rec {
sha256 = "sha256-AtqkxnpEL+580S/iKCaRcsQO6LLYhkJxyNx6fi3atbE=";
};
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
beautifulsoup4
falcon
jinja2

View File

@ -16,7 +16,7 @@
python3Packages.buildPythonApplication rec {
pname = "pympress";
version = "1.8.6";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "cimbali";
@ -64,6 +64,8 @@ python3Packages.buildPythonApplication rec {
doCheck = false; # there are no tests
pythonImportsCheck = [ "pympress" ];
meta = {
description = "Simple yet powerful PDF reader designed for dual-screen presentations";
mainProgram = "pympress";

View File

@ -8,7 +8,7 @@
python3Packages.buildPythonApplication rec {
pname = "pyradio";
version = "0.9.3.11.15";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "coderholic";
@ -21,7 +21,9 @@ python3Packages.buildPythonApplication rec {
installShellFiles
];
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
dnspython
netifaces
psutil

View File

@ -8,7 +8,7 @@ let
pgdbconn = python3Packages.buildPythonPackage rec {
pname = "pgdbconn";
version = "0.8.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "perseas";
@ -17,12 +17,13 @@ let
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
};
build-system = with python3Packages; [ setuptools ];
# The tests are impure (they try to access a PostgreSQL server)
doCheck = false;
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [
psycopg2
pytest
];
};
in
@ -30,7 +31,7 @@ in
python3Packages.buildPythonApplication rec {
pname = "pyrseas";
version = "0.9.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "perseas";
@ -39,9 +40,10 @@ python3Packages.buildPythonApplication rec {
sha256 = "sha256-+MxnxvbLMxK1Ak+qKpKe3GHbzzC+XHO0eR7rl4ON9H4=";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
psycopg2
pytest
pyyaml
pgdbconn
];
@ -49,6 +51,8 @@ python3Packages.buildPythonApplication rec {
# The tests are impure (they try to access a PostgreSQL server)
doCheck = false;
pythonImportsCheck = [ "pyrseas" ];
meta = {
description = "Declarative language to describe PostgreSQL databases";
homepage = "https://perseas.github.io/";

View File

@ -32,7 +32,7 @@ in
python.pkgs.buildPythonApplication rec {
pname = "pytrainer";
version = "2.2.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "pytrainer";
@ -41,12 +41,13 @@ python.pkgs.buildPythonApplication rec {
hash = "sha256-t61vHVTKN5KsjrgbhzljB7UZdRask7qfYISd+++QbV0=";
};
propagatedBuildInputs = with python.pkgs; [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python.pkgs; [
sqlalchemy
python-dateutil
matplotlib
lxml
setuptools
requests
gdal
];
@ -88,7 +89,7 @@ python.pkgs.buildPythonApplication rec {
postPatch = ''
substituteInPlace pytrainer/platform.py \
--replace 'sys.prefix' "\"$out\""
--replace-fail 'sys.prefix' "\"$out\""
'';
checkPhase = ''

View File

@ -6,7 +6,7 @@
python3.pkgs.buildPythonApplication {
pname = "pywalfox-native";
version = "2.7.4";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "Frewacom";
@ -15,6 +15,8 @@ python3.pkgs.buildPythonApplication {
hash = "sha256-i1DgdYmNVvG+mZiFiBmVHsQnFvfDFOFTGf0GEy81lpE=";
};
build-system = with python3.pkgs; [ setuptools ];
pythonImportsCheck = [ "pywalfox" ];
meta = with lib; {

View File

@ -7,7 +7,7 @@
python3Packages.buildPythonApplication rec {
pname = "q-text-as-data";
version = "2.0.19";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "harelba";
@ -16,8 +16,11 @@ python3Packages.buildPythonApplication rec {
sha256 = "18cwyfjgxxavclyd08bmb943c8bvzp1gnqp4klkq5xlgqwivr4sv";
};
propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
six
];
@ -28,7 +31,7 @@ python3Packages.buildPythonApplication rec {
rm bin/qtextasdata.py
# not considered good practice pinning in install_requires
substituteInPlace setup.py --replace 'six==' 'six>='
substituteInPlace setup.py --replace-fail 'six==' 'six>='
'';
meta = with lib; {

View File

@ -10,7 +10,7 @@
python3.pkgs.buildPythonApplication rec {
pname = "quisk";
version = "4.2.42";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
@ -23,13 +23,19 @@ python3.pkgs.buildPythonApplication rec {
pulseaudio
];
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [
setuptools
];
dependencies = with python3.pkgs; [
pyusb
wxpython
];
doCheck = false;
pythonImportsCheck = [ "quisk" ];
meta = with lib; {
description = "SDR transceiver for radios that use the Hermes protocol";
longDescription = ''