emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / django-filter / default.nix
blob6be1ff91a462c0768c81642720a4eefbf3da5596
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   flit-core,
6   django,
7   djangorestframework,
8   pytestCheckHook,
9   pytest-django,
10   pytz,
13 buildPythonPackage rec {
14   pname = "django-filter";
15   version = "24.3";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "carltongibson";
20     repo = "django-filter";
21     tag = version;
22     hash = "sha256-4q/x9FO9ErKnGeJDEXDMcvUKA4nlA7nkwwM2xj3WGWs=";
23   };
25   build-system = [ flit-core ];
27   dependencies = [ django ];
29   pythonImportsCheck = [ "django_filters" ];
31   nativeCheckInputs = [
32     djangorestframework
33     pytestCheckHook
34     pytest-django
35     pytz
36   ];
38   env.DJANGO_SETTINGS_MODULE = "tests.settings";
40   meta = with lib; {
41     description = "Reusable Django application for allowing users to filter querysets dynamically";
42     homepage = "https://github.com/carltongibson/django-filter";
43     changelog = "https://github.com/carltongibson/django-filter/blob/${version}/CHANGES.rst";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ mmai ];
46   };