lol

Merge #177368: python310Packages.django-jinja: run tests

+33 -16
+33 -16
pkgs/development/python-modules/django-jinja2/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, 2 - django, jinja2, pytz, tox 3 - }: 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , django 6 + , jinja2 7 + , python 8 + }: 4 9 5 10 buildPythonPackage rec { 6 11 pname = "django-jinja"; 7 12 version = "2.10.2"; 8 13 9 - meta = { 10 - description = "Simple and nonobstructive jinja2 integration with Django"; 11 - homepage = "https://github.com/niwinz/django-jinja"; 12 - license = lib.licenses.bsd3; 13 - }; 14 + disabled = pythonOlder "3.6"; 15 + 16 + format = "setuptools"; 14 17 15 - src = fetchPypi { 16 - inherit pname version; 17 - sha256 = "sha256-v9+7VcH1pnnWmtV11VDEcH04ZjQAkVLv4BQInzxNFBI="; 18 + src = fetchFromGitHub { 19 + owner = "niwinz"; 20 + repo = "django-jinja"; 21 + rev = version; 22 + hash = "sha256-IZ4HjBQt6K8xbaYfO5DVlGKUVCQ3UciAUpfnqCjzyCE="; 18 23 }; 19 24 20 - buildInputs = [ django pytz tox ]; 21 - propagatedBuildInputs = [ django jinja2 ]; 25 + propagatedBuildInputs = [ 26 + django 27 + jinja2 28 + ]; 22 29 23 - # python installed: The directory '/homeless-shelter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.,appdirs==1.4.3,Django==1.11.1,django-jinja==2.2.2,Jinja2==2.9.6,MarkupSafe==1.0,packaging==16.8,pyparsing==2.2.0,pytz==2017.2,six==1.10.0 24 - doCheck = false; 25 30 checkPhase = '' 26 - tox 31 + runHook preCheck 32 + 33 + ${python.interpreter} testing/runtests.py 34 + 35 + runHook postCheck 27 36 ''; 37 + 38 + meta = { 39 + description = "Simple and nonobstructive jinja2 integration with Django"; 40 + homepage = "https://github.com/niwinz/django-jinja"; 41 + changelog = "https://github.com/niwinz/django-jinja/blob/${src.rev}/CHANGES.adoc"; 42 + license = lib.licenses.bsd3; 43 + maintainers = with lib.maintainers; [ dotlambda ]; 44 + }; 28 45 }