Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / django-filter / default.nix
blob00c260946cced8369215a62fb3915c47c5c8c19b
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , django
5 , djangorestframework, python, mock
6 }:
8 buildPythonPackage rec {
9   pname = "django-filter";
10   version = "2.4.0";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "84e9d5bb93f237e451db814ed422a3a625751cbc9968b484ecc74964a8696b06";
15   };
17   propagatedBuildInputs = [ django ];
19   # Tests fail (needs the 'crispy_forms' module not packaged on nixos)
20   doCheck = false;
21   checkInputs = [ djangorestframework django mock ];
22   checkPhase = ''
23     runHook preCheck
24     ${python.interpreter} runtests.py tests
25     runHook postCheck
26   '';
28   meta = with lib; {
29     description = "Reusable Django application for allowing users to filter querysets dynamically";
30     homepage = "https://pypi.org/project/django-filter/";
31     license = licenses.bsd3;
32     maintainers = with maintainers; [ mmai ];
33   };