python3Packages.django-widget-tweaks: fix build and update tests

main
Martin Weinelt 2 years ago
parent e26fba6f34
commit aaf81c378c
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
  1. 41
      pkgs/development/python-modules/django-widget-tweaks/default.nix

@ -1,4 +1,16 @@
{ buildPythonPackage, fetchFromGitHub, python, lib, django }:
{ lib
, buildPythonPackage
, fetchFromGitHub
# native
, setuptools-scm
# propagated
, django
# tests
, python
}:
buildPythonPackage rec {
pname = "django-widget-tweaks";
@ -11,15 +23,26 @@ buildPythonPackage rec {
sha256 = "1rhn2skx287k6nnkxlwvl9snbia6w6z4c2rqg22hwzbz5w05b24h";
};
checkPhase = "${python.interpreter} runtests.py";
propagatedBuildInputs = [ django ];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
django
];
checkPhase = ''
${python.interpreter} -m django test --settings=tests.settings
'';
meta = with 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
];
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
];
};
}

Loading…
Cancel
Save