841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
28 lines
685 B
Nix
28 lines
685 B
Nix
{ lib, buildPythonPackage, fetchPypi, python
|
|
, django, ply }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "djangoql";
|
|
version = "0.15.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ddd876b640faf941aface6e8554dc7e79a79ec00fee12da8a20f9f74301f7943";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|