depot/third_party/nixpkgs/pkgs/development/python-modules/djangoql/default.nix

36 lines
716 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
python,
django,
ply,
}:
buildPythonPackage rec {
pname = "djangoql";
version = "0.18.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-x8KJ08BLKLRD42uqIW/FSFf3V6TFNXLTyWaoCr5Zb78=";
};
propagatedBuildInputs = [ ply ];
nativeCheckInputs = [ 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; [ erikarvstedt ];
};
}