1{ lib, buildPythonPackage, fetchPypi, python
2, django, ply }:
3
4buildPythonPackage rec {
5 pname = "djangoql";
6 version = "0.17.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 hash = "sha256-TwU9ASjij0EpJuLakCc19L3Lq1wI1Dvk3+/XR/yi6W4=";
11 };
12
13 propagatedBuildInputs = [ ply ];
14
15 nativeCheckInputs = [ 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; [ erikarvstedt ];
27 };
28}