python3Packages.django-import-export: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-10 14:43:31 +01:00 committed by GitHub
parent 9086b530ff
commit 9c9c1bc9a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,11 @@
{ lib { lib
, fetchFromGitHub
, buildPythonPackage , buildPythonPackage
, python
, chardet , chardet
, django
, diff-match-patch , diff-match-patch
, django
, fetchFromGitHub
, python
, pythonOlder
, pytz , pytz
, tablib , tablib
}: }:
@ -12,18 +13,27 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-import-export"; pname = "django-import-export";
version = "2.8.0"; version = "2.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "django-import-export"; owner = "django-import-export";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-km6TQq4OZZtx9/lgBzS3tEifAYjkkUX//9FRATDLX/0="; hash = "sha256-km6TQq4OZZtx9/lgBzS3tEifAYjkkUX//9FRATDLX/0=";
}; };
propagatedBuildInputs = [ diff-match-patch django tablib ] propagatedBuildInputs = [
++ (with tablib.optional-dependencies; html ++ ods ++ xls ++ xlsx ++ yaml); diff-match-patch
django
tablib
] ++ (with tablib.optional-dependencies; html ++ ods ++ xls ++ xlsx ++ yaml);
checkInputs = [ chardet pytz ]; checkInputs = [
chardet
pytz
];
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
@ -31,11 +41,14 @@ buildPythonPackage rec {
runHook postCheck runHook postCheck
''; '';
pythonImportsCheck = [ "import_export" ]; pythonImportsCheck = [
"import_export"
];
meta = with lib; { meta = with lib; {
description = "Django application and library for importing and exporting data with admin integration"; description = "Django application and library for importing and exporting data with admin integration";
homepage = "https://github.com/django-import-export/django-import-export"; 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; license = licenses.bsd2;
maintainers = with maintainers; [ sephi ]; maintainers = with maintainers; [ sephi ];
}; };