Merge pull request #290657 from dotlambda/pyexiftool-init
python311Packages.pyexiftool: init at 0.5.6
This commit is contained in:
commit
54a3e9ec0d
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/pyexiftool/default.nix
Normal file
47
pkgs/development/python-modules/pyexiftool/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, exiftool
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyexiftool";
|
||||
version = "0.5.6";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sylikc";
|
||||
repo = "pyexiftool";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-dgQkbpCbdq2JbupY0DyQbHPR9Bg+bwDo7yN03o3sX+A=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace exiftool/constants.py \
|
||||
--replace-fail 'DEFAULT_EXECUTABLE = "exiftool"' \
|
||||
'DEFAULT_EXECUTABLE = "${lib.getExe exiftool}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "exiftool" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/sylikc/pyexiftool/blob/${src.rev}/CHANGELOG.md";
|
||||
description = "Python wrapper for exiftool";
|
||||
homepage = "https://github.com/sylikc/pyexiftool";
|
||||
license = with lib.licenses; [ bsd3 /* or */ gpl3Plus ];
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -10565,6 +10565,8 @@ self: super: with self; {
|
|||
|
||||
pyexcel-xls = callPackage ../development/python-modules/pyexcel-xls { };
|
||||
|
||||
pyexiftool = callPackage ../development/python-modules/pyexiftool { };
|
||||
|
||||
pyexploitdb = callPackage ../development/python-modules/pyexploitdb { };
|
||||
|
||||
pyezviz = callPackage ../development/python-modules/pyezviz { };
|
||||
|
|
Loading…
Reference in a new issue