nixpkgs/pkgs/development/python-modules/djangoql/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

29 lines
679 B
Nix

{ lib, buildPythonPackage, fetchPypi, python
, django, ply }:
buildPythonPackage rec {
pname = "djangoql";
version = "0.17.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-TwU9ASjij0EpJuLakCc19L3Lq1wI1Dvk3+/XR/yi6W4=";
};
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 ];
};
}