nixpkgs/pkgs/development/python-modules/djangoql/default.nix
2021-08-24 03:54:31 +00:00

29 lines
685 B
Nix

{ lib, buildPythonPackage, fetchPypi, python
, django, ply }:
buildPythonPackage rec {
pname = "djangoql";
version = "0.15.3";
src = fetchPypi {
inherit pname version;
sha256 = "e1a2f32573396335a8935dfc2afb29e34eff34babec1150927ff74fcd4bbdb9d";
};
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 ];
};
}