blob: 2079d336737d276cedb2ea4702ffa49d7c17fa3d (
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
|
{ stdenv
, buildPythonPackage
, fetchPypi
, django
, djangorestframework, python, mock
}:
buildPythonPackage rec {
pname = "django-filter";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "11e63dd759835d9ba7a763926ffb2662cf8a6dcb4c7971a95064de34dbc7e5af";
};
propagatedBuildInputs = [ django ];
# Tests fail (needs the 'crispy_forms' module not packaged on nixos)
doCheck = false;
checkInputs = [ djangorestframework django mock ];
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py tests
runHook postCheck
'';
meta = with stdenv.lib; {
description = "Reusable Django application for allowing users to filter querysets dynamically";
homepage = "https://pypi.org/project/django-filter/";
license = licenses.bsd3;
maintainers = with maintainers; [ mmai ];
};
}
|