Merge pull request #202366 from nagy/py-plum-exif

This commit is contained in:
Sandro 2022-11-28 00:29:27 +01:00 committed by GitHub
commit 6ad92fc0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 15 deletions

View file

@ -2,25 +2,22 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "exif"; pname = "exif";
version = "1.2.0"; version = "1.3.5";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "TNThieding"; owner = "TNThieding";
repo = "exif"; repo = "exif";
rev = "686857c677f489759db90b1ad61fa1cc1cac5f9a"; rev = "v${version}";
sha256 = "0z2if23kmi0iyxviz32mlqs997i3dqpqfz6nznlwkhkkb6rkwwnh"; sha256 = "sha256-XSORawioXo8oPVZ3Jnxqa6GFIxnQZMT0vJitdmpBj0E=";
}; };
propagatedBuildInputs = [ plum-py ]; propagatedBuildInputs = [ plum-py ];
postPatch = ''
substituteInPlace setup.py \
--replace "plum-py==0.3.1" "plum-py>=0.3.1"
'';
checkInputs = [ pytestCheckHook baseline ]; checkInputs = [ pytestCheckHook baseline ];
pythonImportsCheck = [ "exif" ];
meta = with lib; { meta = with lib; {
description = "Read and modify image EXIF metadata using Python"; description = "Read and modify image EXIF metadata using Python";
homepage = "https://gitlab.com/TNThieding/exif"; homepage = "https://gitlab.com/TNThieding/exif";

View file

@ -2,20 +2,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "plum-py"; pname = "plum-py";
version = "0.4.0"; version = "0.8.5";
disabled = !isPy3k; disabled = !isPy3k;
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "dangass"; owner = "dangass";
repo = "plum"; repo = "plum";
rev = "6a9ff863c0e9fa21f7b2230d25402155a5522e4b"; rev = version;
sha256 = "1iv62yb704c61b0dvsmyp3j6xpbmay532g9ny4pw4zbg3l69vd5j"; sha256 = "sha256-jCZUNT1HpSr0khHsjnxEzN2LCzcDV6W27PjVkwFJHUg=";
}; };
postPatch = '' pythonImportsCheck = [ "plum" ];
substituteInPlace src/plum/int/flag/_flag.py \
--replace 'if sys.version_info < (3, 7):' 'if True:'
'';
checkInputs = [ pytest baseline ]; checkInputs = [ pytest baseline ];
checkPhase = "pytest tests"; checkPhase = "pytest tests";