1{ 2 buildPythonPackage, 3 django, 4 django-modelcluster, 5 fetchFromGitHub, 6 lib, 7 python, 8}: 9 10buildPythonPackage rec { 11 pname = "permissionedforms"; 12 version = "0.1"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 repo = "django-permissionedforms"; 17 owner = "wagtail"; 18 rev = "v${version}"; 19 sha256 = "sha256-DQzPGmh5UEVpGWnW3IrEVPkZZ8mdiW9J851Ej4agTDc="; 20 }; 21 22 propagatedBuildInputs = [ django ]; 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 = "Django extension for creating forms that vary according to user permissions"; 34 homepage = "https://github.com/wagtail/django-permissionedforms"; 35 changelog = "https://github.com/wagtail/django-permissionedforms/blob/v${version}/CHANGELOG.md"; 36 license = licenses.bsd3; 37 maintainers = with maintainers; [ sephi ]; 38 }; 39}