15 buildPythonPackage rec {
16 pname = "django-import-export";
20 src = fetchFromGitHub {
21 owner = "django-import-export";
22 repo = "django-import-export";
23 rev = "refs/tags/${version}";
24 hash = "sha256-1vb8a0ntp5ikWrJ3aI4KsGlraXRoFa7o+sP2sJpFbVc=";
27 pythonRelaxDeps = [ "tablib" ];
29 build-system = [ setuptools-scm ];
37 optional-dependencies = {
38 all = [ tablib ] ++ tablib.optional-dependencies.all;
39 cli = [ tablib ] ++ tablib.optional-dependencies.cli;
40 ods = [ tablib ] ++ tablib.optional-dependencies.ods;
41 pandas = [ tablib ] ++ tablib.optional-dependencies.pandas;
42 xls = [ tablib ] ++ tablib.optional-dependencies.xls;
43 xlsx = [ tablib ] ++ tablib.optional-dependencies.xlsx;
44 yaml = [ tablib ] ++ tablib.optional-dependencies.yaml;
51 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
55 ${python.interpreter} tests/manage.py test core --settings=settings
59 pythonImportsCheck = [ "import_export" ];
62 description = "Django application and library for importing and exporting data with admin integration";
63 homepage = "https://github.com/django-import-export/django-import-export";
64 changelog = "https://github.com/django-import-export/django-import-export/blob/${version}/docs/changelog.rst";
65 license = licenses.bsd2;
66 maintainers = with maintainers; [ sephi ];