python3Packages.django-picklefield: disable tests
This commit is contained in:
parent
fc22d0d5e2
commit
67481d8e56
1 changed files with 11 additions and 7 deletions
|
@ -1,8 +1,9 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, django, pytest, pytest-django }:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, django, pytest, pytest-django, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-picklefield";
|
||||
version = "3.0.1";
|
||||
format = "setuptools";
|
||||
|
||||
# The PyPi source doesn't contain tests
|
||||
src = fetchFromGitHub {
|
||||
|
@ -14,17 +15,20 @@ buildPythonPackage rec {
|
|||
|
||||
propagatedBuildInputs = [ django ];
|
||||
|
||||
checkInputs = [ pytest pytest-django ];
|
||||
# Tests are failing with Django 3.2
|
||||
# https://github.com/gintas/django-picklefield/issues/58
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
PYTHONPATH="$(pwd):$PYTHONPATH" \
|
||||
DJANGO_SETTINGS_MODULE=tests.settings \
|
||||
pytest tests/tests.py
|
||||
runHook preCheck
|
||||
${python.interpreter} -m django test --settings=tests.settings
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "A pickled object field for Django";
|
||||
homepage = "https://github.com/gintas/django-picklefield";
|
||||
license = lib.licenses.mit;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue