blob: 57a687c4ce4e83d0e53b686ded285d2190bd3588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
django,
djangorestframework,
pytestCheckHook,
pytest-django,
pytz,
}:
buildPythonPackage rec {
pname = "django-filter";
version = "25.1";
pyproject = true;
src = fetchFromGitHub {
owner = "carltongibson";
repo = "django-filter";
tag = version;
hash = "sha256-ODbBlaJo6sgXkFxLNhqwGTXSHs2d6R6wGKyDz5qA7bs=";
};
build-system = [ flit-core ];
dependencies = [ django ];
pythonImportsCheck = [ "django_filters" ];
nativeCheckInputs = [
djangorestframework
pytestCheckHook
pytest-django
pytz
];
env.DJANGO_SETTINGS_MODULE = "tests.settings";
meta = {
description = "Reusable Django application for allowing users to filter querysets dynamically";
homepage = "https://github.com/carltongibson/django-filter";
changelog = "https://github.com/carltongibson/django-filter/blob/${version}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ mmai ];
};
}
|