mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
040cf878bf
Changelog: https://github.com/django-import-export/django-import-export/blob/3.2.0/docs/changelog.rst
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, chardet
|
|
, diff-match-patch
|
|
, django
|
|
, fetchFromGitHub
|
|
, psycopg2
|
|
, python
|
|
, pythonOlder
|
|
, pytz
|
|
, tablib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-import-export";
|
|
version = "3.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django-import-export";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ws9gUPCr5nM8HGbCt9+6IFjLgAKiCMQRkY/yfIb2mng=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
diff-match-patch
|
|
django
|
|
tablib
|
|
] ++ (with tablib.optional-dependencies; html ++ ods ++ xls ++ xlsx ++ yaml);
|
|
|
|
nativeCheckInputs = [
|
|
chardet
|
|
psycopg2
|
|
pytz
|
|
];
|
|
|
|
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/${version}/docs/changelog.rst";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ sephi ];
|
|
};
|
|
}
|