3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/djangoql/default.nix
2022-02-10 11:20:03 -08:00

29 lines
672 B
Nix

{ lib, buildPythonPackage, fetchPypi, python
, django, ply }:
buildPythonPackage rec {
pname = "djangoql";
version = "0.17.1";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-TwU9ASjij0EpJuLakCc19L3Lq1wI1Dvk3+/XR/yi6W4=";
};
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 ];
};
}