3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.python-xmp-toolkit: init at 2.0.2

This commit is contained in:
Robert Djubek 2019-03-14 03:15:45 +00:00
parent 05f549e857
commit d69040e9c4
No known key found for this signature in database
GPG key ID: 156C88A5B0A04B2A
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ buildPythonPackage
, exempi
, fetchFromGitHub
, mock
, pythonOlder
, pytz
, stdenv
}:
buildPythonPackage rec {
pname = "python-xmp-toolkit";
version = "2.0.2";
# PyPi has version 2.0.1; the tests fail
# There are commits for a 2.0.2 release that was never published
# Not to github, not to PyPi
# This is the latest commit from Jun 29, 2017 (as of Mar 13, 2019)
# It includes the commits for the unreleased version 2.0.2 and more
# Tests pass with this version
src = fetchFromGitHub {
owner = "python-xmp-toolkit";
repo = "python-xmp-toolkit";
rev = "5692bdf8dac3581a0d5fb3c5aeb29be0ab6a54fc";
sha256 = "16bylcm183ilzp7mrpdzw0pzp6csv9v5v247914qsv2abg0hgl5y";
};
buildInputs = [ exempi ];
checkInputs = stdenv.lib.optionals (pythonOlder "3.3") [ mock ];
propagatedBuildInputs = [ pytz ];
postPatch = ''
substituteInPlace libxmp/exempi.py \
--replace "ctypes.util.find_library('exempi')" "'${exempi}/lib/libexempi${stdenv.hostPlatform.extensions.sharedLibrary}'"
'';
meta = with stdenv.lib; {
homepage = https://github.com/python-xmp-toolkit/python-xmp-toolkit;
description = "Python XMP Toolkit for working with metadata";
license = licenses.bsd3;
maintainers = [ maintainers.kiwi ];
};
}

View file

@ -5637,6 +5637,8 @@ in {
python-u2flib-host = callPackage ../development/python-modules/python-u2flib-host { };
python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { };
pluggy = callPackage ../development/python-modules/pluggy {};
xcffib = callPackage ../development/python-modules/xcffib {};