From 791fc803c7a26eb3ec1fa311b7f4f7c9bd1670b5 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Tue, 16 Mar 2021 17:03:33 -0700 Subject: [PATCH] python3Packages.exif: init at 1.2.0 --- .../python-modules/exif/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/exif/default.nix diff --git a/pkgs/development/python-modules/exif/default.nix b/pkgs/development/python-modules/exif/default.nix new file mode 100644 index 000000000000..2c549030e6d7 --- /dev/null +++ b/pkgs/development/python-modules/exif/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, plum-py, pytestCheckHook, baseline }: + +buildPythonPackage rec { + pname = "exif"; + version = "1.2.0"; + disabled = !isPy3k; + + src = fetchFromGitLab { + owner = "TNThieding"; + repo = "exif"; + rev = "686857c677f489759db90b1ad61fa1cc1cac5f9a"; + sha256 = "0z2if23kmi0iyxviz32mlqs997i3dqpqfz6nznlwkhkkb6rkwwnh"; + }; + + propagatedBuildInputs = [ plum-py ]; + + postPatch = '' + substituteInPlace setup.py \ + --replace "plum-py==0.3.1" "plum-py>=0.3.1" + ''; + + checkInputs = [ pytestCheckHook baseline ]; + + meta = with lib; { + description = "Read and modify image EXIF metadata using Python"; + homepage = "https://gitlab.com/TNThieding/exif"; + license = licenses.mit; + maintainers = with maintainers; [ dnr ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 077ff2ffbe20..b4432777c064 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2202,6 +2202,8 @@ in { executor = callPackage ../development/python-modules/executor { }; + exif = callPackage ../development/python-modules/exif { }; + exifread = callPackage ../development/python-modules/exifread { }; exrex = callPackage ../development/python-modules/exrex { };