16 buildPythonPackage rec {
17 pname = "django-import-export";
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
24 owner = "django-import-export";
25 repo = "django-import-export";
26 rev = "refs/tags/${version}";
27 hash = "sha256-kD/9cpFqjipP3onMHCfimu0ffzGQAoEspjc4IfyuZak=";
30 pythonRelaxDeps = [ "tablib" ];
32 build-system = [ setuptools-scm ];
41 optional-dependencies = {
42 all = [ tablib ] ++ tablib.optional-dependencies.all;
43 cli = [ tablib ] ++ tablib.optional-dependencies.cli;
44 ods = [ tablib ] ++ tablib.optional-dependencies.ods;
45 pandas = [ tablib ] ++ tablib.optional-dependencies.pandas;
46 xls = [ tablib ] ++ tablib.optional-dependencies.xls;
47 xlsx = [ tablib ] ++ tablib.optional-dependencies.xlsx;
48 yaml = [ tablib ] ++ tablib.optional-dependencies.yaml;
55 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
59 ${python.interpreter} tests/manage.py test core --settings=settings
63 pythonImportsCheck = [ "import_export" ];
66 description = "Django application and library for importing and exporting data with admin integration";
67 homepage = "https://github.com/django-import-export/django-import-export";
68 changelog = "https://github.com/django-import-export/django-import-export/blob/${version}/docs/changelog.rst";
69 license = licenses.bsd2;
70 maintainers = with maintainers; [ sephi ];