python3.pkgs.django-filter: 23.2 -> 23.3 (#257310)

And enable tests

Yureka ab710f65 cb473419

Changed files
+15 -14
pkgs
development
python-modules
django-filter
+15 -14
pkgs/development/python-modules/django-filter/default.nix
···
{ lib
, buildPythonPackage
, fetchPypi
+
, flit-core
, django
-
, djangorestframework, python, mock
+
, djangorestframework
+
, pytestCheckHook
+
, pytest-django
+
, python
}:
buildPythonPackage rec {
pname = "django-filter";
-
version = "23.2";
+
version = "23.3";
+
format = "pyproject";
src = fetchPypi {
inherit pname version;
-
hash = "sha256-L+FfeBCEde2lJWkoEyBfpvnowcrxrmXapYYtQDxtvwA=";
+
hash = "sha256-AV/hVVguGAW0Bik0Tkps88xARQgn0pTQQLS4wXSan6Y=";
};
+
nativeBuildInputs = [ flit-core ];
+
propagatedBuildInputs = [ django ];
pythonImportsCheck = [
"django_filters"
];
-
# Tests fail (needs the 'crispy_forms' module not packaged on nixos)
-
doCheck = false;
-
nativeCheckInputs = [
djangorestframework
-
django
-
mock
+
pytestCheckHook
+
pytest-django
];
-
checkPhase = ''
-
runHook preCheck
-
${python.interpreter} runtests.py tests
-
runHook postCheck
-
'';
+
env.DJANGO_SETTINGS_MODULE = "tests.settings";
meta = with lib; {
description = "Reusable Django application for allowing users to filter querysets dynamically";
-
homepage = "https://pypi.org/project/django-filter/";
+
homepage = "https://github.com/carltongibson/django-filter";
+
changelog = "https://github.com/carltongibson/django-filter/blob/v${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};