2019-01-27 15:26:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, django, ply }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "djangoql";
|
2019-10-16 11:43:05 +02:00
|
|
|
version = "0.13.1";
|
2019-01-27 15:26:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 11:43:05 +02:00
|
|
|
sha256 = "366293d7d4e416f9f7d6e2b98775c2129222fbb4dc660f3e6c7b9e35a3cf3fce";
|
2019-01-27 15:26:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ply ];
|
|
|
|
|
|
|
|
checkInputs = [ django ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PYTHONPATH=test_project:$PYTHONPATH
|
|
|
|
${python.executable} test_project/manage.py test core.tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Advanced search language for Django";
|
|
|
|
homepage = https://github.com/ivelum/djangoql;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ earvstedt ];
|
|
|
|
};
|
|
|
|
}
|