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

And enable tests
This commit is contained in:
Yureka 2023-10-16 14:55:44 +02:00 committed by GitHub
parent cb4734193d
commit ab710f653d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,43 +1,44 @@
{ 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 ];
};