depot/third_party/nixpkgs/pkgs/development/python-modules/django-tables2/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

45 lines
983 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, django
, tablib
, python
}:
buildPythonPackage rec {
pname = "django-tables2";
version = "2.4.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jieter";
repo = pname;
rev = "v${version}";
sha256 = "04vvgf18diwp0mgp14b71a0dxhgrcslv1ljybi300gvzvzjnp3qv";
};
propagatedBuildInputs = [
django
tablib
];
pythonImportsCheck = [
# Requested setting DJANGO_TABLES2_TEMPLATE, but settings are not configured.
];
doCheck = false; # needs django-boostrap{3,4} packages
# Leave this in! Discovering how to run tests is annoying in Django apps
checkPhase = ''
${python.interpreter} example/manage.py test
'';
meta = with lib; {
description = "Django app for creating HTML tables";
homepage = "https://github.com/jieter/django-tables2";
license = licenses.bsd2;
maintainers = with maintainers; [ hexa ];
};
}