Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / djangoql / default.nix
blob55da45f4637004e88be994b23e344fc1280f90c1
1 { lib, buildPythonPackage, fetchPypi, python
2 , django, ply }:
4 buildPythonPackage rec {
5   pname = "djangoql";
6   version = "0.17.1";
8   src = fetchPypi {
9     inherit pname version;
10     hash = "sha256-TwU9ASjij0EpJuLakCc19L3Lq1wI1Dvk3+/XR/yi6W4=";
11   };
13   propagatedBuildInputs = [ ply ];
15   nativeCheckInputs = [ django ];
17   checkPhase = ''
18     export PYTHONPATH=test_project:$PYTHONPATH
19     ${python.executable} test_project/manage.py test core.tests
20   '';
22   meta = with lib; {
23     description = "Advanced search language for Django";
24     homepage = "https://github.com/ivelum/djangoql";
25     license = licenses.mit;
26     maintainers = with maintainers; [ erikarvstedt ];
27   };