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
django-picklefield: Source from Github, fix test and build #97300
Conversation
|
||
# Taken from project's tox.ini | ||
checkPhase = '' | ||
python3 -m django test -v3 --settings=tests.settings |
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.
to support alt interpreters such as pypy
python3 -m django test -v3 --settings=tests.settings | |
${python.interpreter} -m django test -v3 --settings=tests.settings |
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.
Do I also need to add an import for this?
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.
you would, if it's not already imported
src = fetchFromGitHub { | ||
owner = "gintas"; | ||
repo = "django-picklefield"; | ||
rev = "4d5e3b2995df6597d45ad59d92ead38abc5c34af"; |
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.
please use official releases
rev = "4d5e3b2995df6597d45ad59d92ead38abc5c34af"; | |
rev = "v${version}"; |
https://github.com/gintas/django-picklefield/releases/tag/v3.0.1
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.
Oh, I didn't realize I could batch suggestions. I've incorporated both in now.
3aef150
to
bec0913
Compare
@@ -1,16 +1,25 @@ | |||
{ lib, buildPythonPackage, fetchPypi, django }: | |||
{ lib, buildPythonPackage, fetchFromGitHub, django }: |
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.
{ lib, buildPythonPackage, fetchFromGitHub, django }: | |
{ lib, buildPythonPackage, fetchFromGitHub, python, django }: |
to fix eval
bec0913
to
b55db43
Compare
Fixed in #97283 |
Motivation for this change
This package is required by mailman, and was failing to build, possibly since django 1_11 was dropped.
Things done
Sourced package from GitHub since the Pypi package did not contain any tests, and then configured checkPhase to run these tests.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)