nixpkgs/pkgs/development/python-modules/django-widget-tweaks/default.nix

26 lines
745 B
Nix
Raw Normal View History

{ buildPythonPackage, fetchFromGitHub, python, stdenv, django }:
buildPythonPackage rec {
pname = "django-widget-tweaks";
version = "1.4.8";
src = fetchFromGitHub { # package from Pypi missing runtests.py
owner = "jazzband";
repo = pname;
rev = version;
sha256 = "00w1ja56dc7cyw7a3mph69ax6mkch1lsh4p98ijdhzfpjdy36rbg";
};
checkPhase = "${python.interpreter} runtests.py";
propagatedBuildInputs = [ django ];
meta = with stdenv.lib; {
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
];
};
}