1{ lib, buildPythonPackage, fetchPypi, python
2, django, ply }:
3
4buildPythonPackage rec {
5 pname = "djangoql";
6 version = "0.14.3";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "d1b1344cb1e037f094c04ccc67b809e8df80dea1e88cfb919078426131737018";
11 };
12
13 propagatedBuildInputs = [ ply ];
14
15 checkInputs = [ django ];
16
17 checkPhase = ''
18 export PYTHONPATH=test_project:$PYTHONPATH
19 ${python.executable} test_project/manage.py test core.tests
20 '';
21
22 meta = with lib; {
23 description = "Advanced search language for Django";
24 homepage = "https://github.com/ivelum/djangoql";
25 license = licenses.mit;
26 maintainers = with maintainers; [ earvstedt ];
27 };
28}