-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archivebox: fix build and add singlefile #358588
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not remove yt-dlp
from the inputs instead?
Also, the commit message doesn't make sense since we're merging this into master first.
e61b23c
to
5a426ea
Compare
Fixed the commit message. We need |
Use |
Fixes NixOS#358580. Override any django-extensions patches. Add distutils dependency for Python 3.12 and above. Convert buildPythonApplication to use build-system and dependencies. Fix a scoping error with yt-dlp. Note: if neither python.pkgs.yt-dlp nor pkgs.yt-dlp are in archivebox's dependencies, then there is a missing runtime dependency error. If pkgs.yt-dlp is in dependencies instead of python.pkgs.yt-dlp, (as was the case) there is a cryptic error about 'pdm.backend' not being available. Fix this by just using `python.pkgs.yt-dlp` everywhere.
5a426ea
to
018bd5d
Compare
|
|
@@ -34,6 +34,7 @@ let | |||
"CVE-2022-28346" | |||
]; | |||
}; | |||
dependencies = (old.dependencies or [ ]) ++ (lib.optionals (python.pythonAtLeast "3.12") [ python.pkgs.distutils ]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is distutils in dependencies rather than build-system?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This version of django uses distutils for parsing version strings. https://github.com/django/django/blob/stable/3.1.x/django/utils/version.py#L6
@@ -34,6 +34,7 @@ let | |||
"CVE-2022-28346" | |||
]; | |||
}; | |||
dependencies = (old.dependencies or [ ]) ++ (lib.optionals (python.pythonAtLeast "3.12") [ python.pkgs.distutils ]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dependencies = (old.dependencies or [ ]) ++ (lib.optionals (python.pythonAtLeast "3.12") [ python.pkgs.distutils ]); | |
build-system = (old.build-system or [ ]) ++ (lib.optionals (self.pythonAtLeast "3.12") [ self.distutils ]); |
Successfully created backport PR for |
Fixes #358580.
Override any django-extensions patches.
Downgrade to Python 3.11 as django needs distutils.Avoid a scoping error with yt-dlp. If
pkgs.yt-dlp
is in dependencies instead ofpython.pkgs.yt-dlp
, there isa cryptic error about 'pdm.backend' not being available. Change to just using
python.pkgs.yt-dlp
everywhere.Also update
buildPythonApplication
to usebuild-system
anddependencies
.Add SingleFile support too.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.