2019-01-27 14:26:29 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, django, ply }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "djangoql";
|
2022-02-10 18:31:51 +00:00
|
|
|
version = "0.17.1";
|
2019-01-27 14:26:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-TwU9ASjij0EpJuLakCc19L3Lq1wI1Dvk3+/XR/yi6W4=";
|
2019-01-27 14:26:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ply ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ django ];
|
2019-01-27 14:26:29 +00:00
|
|
|
|
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ivelum/djangoql";
|
2019-01-27 14:26:29 +00:00
|
|
|
license = licenses.mit;
|
2022-06-26 17:12:18 +00:00
|
|
|
maintainers = with maintainers; [ erikarvstedt ];
|
2019-01-27 14:26:29 +00:00
|
|
|
};
|
|
|
|
}
|