depot/third_party/nixpkgs/pkgs/development/python-modules/djangoql/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
716 B
Nix

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