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
Fix paperless and other Python pkgs #97283
Conversation
Result of 11 packages built:- mailman-web (python38Packages.mailman-web) - paperless - python37Packages.django-picklefield - python37Packages.django-q - python37Packages.django_extensions - python37Packages.hyperkitty - python37Packages.mailman-web - python38Packages.django-picklefield - python38Packages.django-q - python38Packages.django_extensions - python38Packages.hyperkitty |
@@ -0,0 +1,34 @@ | |||
pyPkgs: fetchFromGitHub: | |||
{ | |||
django_2_0 = pyPkgs.django_2_2.overrideDerivation (_: rec { |
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.
overrideDerivation should be avoided, please use overrideAttrs
, or in the case of python packages, overridePythonAttrs
# The PyPi source is missing test files | ||
doCheck = false; | ||
|
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.
There are no tests included. Please try to checkout from source and check if they have unit tests, and try to run them. Unit tests give a good indication that they package has a high degree of validity and correctness given the python package set.
If tests are not available, then please use pythonImportsCheck
to import the most important modules. This isn't as good as unit tests, but will usually give a good indication of run-time errors. Please see pythonImportsCheck documentation for more information.
Paperless was dependent on older older versions of recently updated Python packages.
2ae2eb3
to
dd7405a
Compare
checkInputs = [ pytest pytest-django ]; | ||
|
||
checkPhase = '' | ||
PYTHONPATH="$(pwd):$PYTHONPATH" \ |
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 is default behavior of python
, but doesn't really affect the build
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.
No, when removing PYTHONPATH="$(pwd):$PYTHONPATH"
, the test fails with ImportError: No module named 'tests'
.
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.
LGTM
Result of nixpkgs-review pr 97283 1
11 packages built:
- mailman-web (python38Packages.mailman-web)
- paperless
- python37Packages.django-picklefield
- python37Packages.django-q
- python37Packages.django_extensions
- python37Packages.hyperkitty
- python37Packages.mailman-web
- python38Packages.django-picklefield
- python38Packages.django-q
- python38Packages.django_extensions
- python38Packages.hyperkitty
please backport this :) |
ZHF: #97479 |
This fixes:
factory_boy
,factory_boy
anddjango_extensions
.This also fixes the corresponding NixOS test.
This is the complete closure of dependents/referrers of all changed pkgs:
All pkgs in this graph are now building again. This PR is strictly fixing pkgs and introduces no new breakage.