depot/third_party/nixpkgs/pkgs/development/python-modules/djangoql/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

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