1{ buildPythonPackage 2, django 3, django-modelcluster 4, fetchFromGitHub 5, lib 6, python 7}: 8 9buildPythonPackage rec { 10 pname = "permissionedforms"; 11 version = "0.1"; 12 13 src = fetchFromGitHub { 14 repo = "django-permissionedforms"; 15 owner = "wagtail"; 16 rev = "v${version}"; 17 sha256 = "sha256-DQzPGmh5UEVpGWnW3IrEVPkZZ8mdiW9J851Ej4agTDc="; 18 }; 19 20 propagatedBuildInputs = [ 21 django 22 ]; 23 24 checkInputs = [ django-modelcluster ]; 25 26 checkPhase = '' 27 ${python.interpreter} runtests.py 28 ''; 29 30 pythonImportsCheck = [ "permissionedforms" ]; 31 32 meta = with lib; { 33 description = "A Django extension for creating forms that vary according to user permissions"; 34 homepage = "https://github.com/wagtail/permissionedforms"; 35 changelog = "https://github.com/wagtail/permissionedforms/blob/v${version}/CHANGELOG.md"; 36 license = licenses.bsd3; 37 maintainers = with maintainers; [ sephi ]; 38 }; 39}