nixpkgs/pkgs/development/python-modules/py3exiv2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
948 B
Nix
Raw Normal View History

{ lib
, stdenv
, boost
, buildPythonPackage
, exiv2
, fetchPypi
, libcxx
, pythonOlder
}:
2017-10-30 18:34:41 +00:00
buildPythonPackage rec {
pname = "py3exiv2";
version = "0.11.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-10-30 18:34:41 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-ZgDaa4lxmdTaZhkblgRfPMxfVwENp2s6xdKSuD/MqEQ=";
2017-10-30 18:34:41 +00:00
};
buildInputs = [
boost
exiv2
];
2017-10-30 18:34:41 +00:00
# Work around Python distutils compiling C++ with $CC (see issue #26709)
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
pythonImportsCheck = [
"pyexiv2"
];
2017-10-30 18:34:41 +00:00
# Tests are not shipped
doCheck = false;
meta = with lib; {
broken = stdenv.isDarwin;
description = "Python binding to the library exiv2";
homepage = "https://launchpad.net/py3exiv2";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vinymeuh ];
platforms = with platforms; linux ++ darwin;
2017-10-30 18:34:41 +00:00
};
}