2019-01-27 14:26:29 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, django, ply }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "djangoql";
|
2020-08-16 18:30:58 +01:00
|
|
|
version = "0.14.0";
|
2019-01-27 14:26:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:30:58 +01:00
|
|
|
sha256 = "1b1f80940bb15982e06208b97d7b3d08e1d5f8fb62aa07e5e33599c7ce4c0334";
|
2019-01-27 14:26:29 +00: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ivelum/djangoql";
|
2019-01-27 14:26:29 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ earvstedt ];
|
|
|
|
};
|
|
|
|
}
|