ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / django-widget-tweaks / default.nix
blob5fd29de16107d30281ddd9f0d099c1b57c040b92
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # native
6 , setuptools-scm
8 # propagated
9 , django
11 # tests
12 , python
15 buildPythonPackage rec {
16   pname = "django-widget-tweaks";
17   version = "1.4.12";
19   src = fetchFromGitHub { # package from Pypi missing runtests.py
20     owner = "jazzband";
21     repo = pname;
22     rev = version;
23     sha256 = "1rhn2skx287k6nnkxlwvl9snbia6w6z4c2rqg22hwzbz5w05b24h";
24   };
26   SETUPTOOLS_SCM_PRETEND_VERSION = version;
28   nativeBuildInputs = [
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     django
34   ];
36   checkPhase = ''
37     ${python.interpreter} -m django test --settings=tests.settings
38   '';
40   meta = with lib; {
41     description = "Tweak the form field rendering in templates, not in python-level form definitions.";
42     homepage = "https://github.com/jazzband/django-widget-tweaks";
43     license = licenses.mit;
44     maintainers = with maintainers; [
45       maxxk
46     ];
47   };