From ed01285e71d860aa0214c935a68e41cfe988b7ab Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 May 2023 21:18:25 +0200 Subject: [PATCH] python311Packages.exif: aadd changelog to meta - update disabled --- .../python-modules/exif/default.nix | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/exif/default.nix b/pkgs/development/python-modules/exif/default.nix index a7edde7e6d5..c1619436477 100644 --- a/pkgs/development/python-modules/exif/default.nix +++ b/pkgs/development/python-modules/exif/default.nix @@ -1,27 +1,44 @@ -{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, plum-py, pytestCheckHook, baseline }: +{ lib +, buildPythonPackage +, fetchFromGitLab +, pythonOlder +, plum-py +, pytestCheckHook +, baseline +}: buildPythonPackage rec { pname = "exif"; version = "1.6.0"; - disabled = !isPy3k; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitLab { owner = "TNThieding"; repo = "exif"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-uiHL3m0C6+YnAHRLwzMCSzffrQsSyVcuem6FBtTLxek="; }; - propagatedBuildInputs = [ plum-py ]; + propagatedBuildInputs = [ + plum-py + ]; - nativeCheckInputs = [ pytestCheckHook baseline ]; + nativeCheckInputs = [ + pytestCheckHook + baseline + ]; - pythonImportsCheck = [ "exif" ]; + pythonImportsCheck = [ + "exif" + ]; meta = with lib; { description = "Read and modify image EXIF metadata using Python"; - homepage = "https://gitlab.com/TNThieding/exif"; - license = licenses.mit; + homepage = "https://gitlab.com/TNThieding/exif"; + changelog = "https://gitlab.com/TNThieding/exif/-/blob/v${version}/docs/release_notes.rst"; + license = licenses.mit; maintainers = with maintainers; [ dnr ]; }; }