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