3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/djangoql/default.nix
2021-06-21 17:01:42 -07:00

29 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 ];
};
}