mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
29 lines
685 B
Nix
29 lines
685 B
Nix
{ lib, buildPythonPackage, fetchPypi, python
|
|
, django, ply }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "djangoql";
|
|
version = "0.14.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "91fd65d9ee4b09092602ff05aca8a21c5a18062faf56f269a011b8e8e41483c6";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|