1{ lib, buildPythonPackage, fetchPypi, python
2, django, ply }:
3
4buildPythonPackage rec {
5 pname = "djangoql";
6 version = "0.15.3";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "e1a2f32573396335a8935dfc2afb29e34eff34babec1150927ff74fcd4bbdb9d";
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}