Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
chardet,
diff-match-patch,
django,
fetchFromGitHub,
psycopg2,
python,
pytz,
setuptools-scm,
tablib,
}:
buildPythonPackage rec {
pname = "django-import-export";
version = "4.3.10";
pyproject = true;
src = fetchFromGitHub {
owner = "django-import-export";
repo = "django-import-export";
tag = version;
hash = "sha256-amc5Qp3tdtqUGGN+DMT/r/CKMkMNnx5ryA+HlzQEejk=";
};
pythonRelaxDeps = [ "tablib" ];
build-system = [ setuptools-scm ];
dependencies = [
diff-match-patch
django
tablib
];
optional-dependencies = {
all = [ tablib ] ++ tablib.optional-dependencies.all;
cli = [ tablib ] ++ tablib.optional-dependencies.cli;
ods = [ tablib ] ++ tablib.optional-dependencies.ods;
pandas = [ tablib ] ++ tablib.optional-dependencies.pandas;
xls = [ tablib ] ++ tablib.optional-dependencies.xls;
xlsx = [ tablib ] ++ tablib.optional-dependencies.xlsx;
yaml = [ tablib ] ++ tablib.optional-dependencies.yaml;
};
nativeCheckInputs = [
chardet
psycopg2
pytz
]
++ lib.flatten (builtins.attrValues optional-dependencies);
checkPhase = ''
runHook preCheck
${python.interpreter} tests/manage.py test core --settings=settings
runHook postCheck
'';
pythonImportsCheck = [ "import_export" ];
meta = with lib; {
description = "Django application and library for importing and exporting data with admin integration";
homepage = "https://github.com/django-import-export/django-import-export";
changelog = "https://github.com/django-import-export/django-import-export/blob/${src.tag}/docs/changelog.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ sephi ];
};
}