2021-02-05 17:12:51 +00:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, python, lib, django }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-widget-tweaks";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.4.12";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub { # package from Pypi missing runtests.py
|
|
|
|
owner = "jazzband";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "1rhn2skx287k6nnkxlwvl9snbia6w6z4c2rqg22hwzbz5w05b24h";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = "${python.interpreter} runtests.py";
|
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
description = "Tweak the form field rendering in templates, not in python-level form definitions.";
|
|
|
|
homepage = "https://github.com/jazzband/django-widget-tweaks";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
maxxk
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|