depot/third_party/nixpkgs/pkgs/development/python-modules/permissionedforms/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
936 B
Nix

{
buildPythonPackage,
django,
django-modelcluster,
fetchFromGitHub,
lib,
python,
}:
buildPythonPackage rec {
pname = "permissionedforms";
version = "0.1";
format = "setuptools";
src = fetchFromGitHub {
repo = "django-permissionedforms";
owner = "wagtail";
rev = "v${version}";
sha256 = "sha256-DQzPGmh5UEVpGWnW3IrEVPkZZ8mdiW9J851Ej4agTDc=";
};
propagatedBuildInputs = [ django ];
checkInputs = [ django-modelcluster ];
checkPhase = ''
${python.interpreter} runtests.py
'';
pythonImportsCheck = [ "permissionedforms" ];
meta = with lib; {
description = "Django extension for creating forms that vary according to user permissions";
homepage = "https://github.com/wagtail/permissionedforms";
changelog = "https://github.com/wagtail/permissionedforms/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ sephi ];
};
}