nixpkgs/pkgs/development/python-modules/py3exiv2/default.nix
Artturin d06382a73b treewide: more manual fixups for
treewide: move NIX_CFLAGS_COMPILE to the env attrset

`nix-eval-jobs --flake ".#legacyPackages.x86_64-linux" --workers 3 2>/dev/null --impure | jq 'select(.error?) | select(.error | match ("attribute set can only contain derivation") )'`
and
`nix-eval-jobs --flake ".#legacyPackages.aarch64-darwin" --workers 3 2>/dev/null --impure | jq 'select(.error?) | select(.error | match ("attribute set can only contain derivation") )'`

no longer has output so this could be all of the remaining issues
2023-02-24 06:26:02 +02:00

47 lines
948 B
Nix

{ lib
, stdenv
, boost
, buildPythonPackage
, exiv2
, fetchPypi
, libcxx
, pythonOlder
}:
buildPythonPackage rec {
pname = "py3exiv2";
version = "0.11.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZgDaa4lxmdTaZhkblgRfPMxfVwENp2s6xdKSuD/MqEQ=";
};
buildInputs = [
boost
exiv2
];
# 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"
];
# 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;
};
}