summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-05-09 07:53:21 +0200
committerGitHub <noreply@github.com>2022-05-09 07:53:21 +0200
commit5264e2efe8a71a1e18dbae9b9c5479219d07cdde (patch)
treeefbff6145916ec7c09748232996f30754c0c5bf8
parentMerge pull request #172118 from SuperSandro2000/txaio (diff)
parentpython310Packages.py3exiv2: disable tests (diff)
downloadnixpkgs-5264e2efe8a71a1e18dbae9b9c5479219d07cdde.tar.gz
Merge pull request #171902 from r-ryantm/auto-update/python3.10-py3exiv2
python310Packages.py3exiv2: 0.9.3 -> 0.11.0
-rw-r--r--pkgs/development/python-modules/py3exiv2/default.nix40
1 files changed, 31 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/py3exiv2/default.nix b/pkgs/development/python-modules/py3exiv2/default.nix
index ef056d296b2e..60a8ee7f17f9 100644
--- a/pkgs/development/python-modules/py3exiv2/default.nix
+++ b/pkgs/development/python-modules/py3exiv2/default.nix
@@ -1,24 +1,46 @@
-{ lib, buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx }:
+{ lib
+, stdenv
+, boost
+, buildPythonPackage
+, exiv2
+, fetchPypi
+, libcxx
+, pythonOlder
+}:
buildPythonPackage rec {
pname = "py3exiv2";
- version = "0.9.3";
- disabled = !(isPy3k);
+ version = "0.11.0";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
- sha256 = "838836e58ca22557d83d1f0ef918bcce899b4c2666340b924b940dcdebf1d18c";
+ hash = "sha256-ZgDaa4lxmdTaZhkblgRfPMxfVwENp2s6xdKSuD/MqEQ=";
};
- buildInputs = [ exiv2 boost ];
+ buildInputs = [
+ boost
+ exiv2
+ ];
+
+ # Work around Python distutils compiling C++ with $CC (see issue #26709)
+ NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [
+ "-I${lib.getDev libcxx}/include/c++/v1"
+ ];
+
+ pythonImportsCheck = [
+ "pyexiv2"
+ ];
- # work around python distutils compiling C++ with $CC (see issue #26709)
- NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
+ # Tests are not shipped
+ doCheck = false;
meta = with lib; {
+ description = "Python binding to the library exiv2";
homepage = "https://launchpad.net/py3exiv2";
- description = "A Python3 binding to the library exiv2";
- license = licenses.gpl3;
+ license = licenses.gpl3Plus;
maintainers = with maintainers; [ vinymeuh ];
platforms = with platforms; linux ++ darwin;
};