1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #327691 from ruby0b/pyload/py312

pyload-ng: fix build for python312
This commit is contained in:
Peder Bergebakken Sundt 2024-07-21 01:32:06 +02:00 committed by GitHub
commit 79f66c6839
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,9 @@
{ lib, fetchPypi, nixosTests, python3 }:
{
lib,
fetchPypi,
nixosTests,
python3,
}:
python3.pkgs.buildPythonApplication rec {
version = "0.5.0b3.dev85";
@ -22,48 +27,48 @@ python3.pkgs.buildPythonApplication rec {
postPatch = ''
# relax version bounds
sed -i 's/\([A-z0-9]*\)~=.*$/\1/' setup.cfg
sed -i -E 's/([A-z0-9]*)~=[^;]*(.*)/\1\2/' setup.cfg
'';
propagatedBuildInputs = with python3.pkgs; [
bitmath
certifi
cheroot
cryptography
filetype
flask
flask-babel
flask-caching
flask-compress
flask-session
flask-themes2
js2py
pycurl
semver
setuptools
];
dependencies =
with python3.pkgs;
[
bitmath
certifi
cheroot
cryptography
filetype
flask
flask-babel
flask-caching
flask-compress
flask-session
flask-themes2
pycurl
semver
setuptools
]
++ (if pythonOlder "3.12" then [ js2py ] else [ dukpy ]);
passthru = {
optional-dependencies = {
plugins = with python3.pkgs; [
beautifulsoup4 # for some plugins
colorlog # colorful console logging
pillow # for some CAPTCHA plugin
send2trash # send some files to trash instead of deleting them
slixmpp # XMPP plugin
];
};
tests = {
inherit (nixosTests) pyload;
};
optional-dependencies = {
plugins = with python3.pkgs; [
beautifulsoup4 # for some plugins
colorlog # colorful console logging
pillow # for some CAPTCHA plugin
send2trash # send some files to trash instead of deleting them
slixmpp # XMPP plugin
];
};
meta = with lib; {
passthru.tests = {
inherit (nixosTests) pyload;
};
meta = {
description = "Free and open-source download manager with support for 1-click-hosting sites";
homepage = "https://github.com/pyload/pyload";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ ruby0b ];
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ ruby0b ];
mainProgram = "pyload";
};
}