python310Packages.pybindgen: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-03-31 09:42:09 +02:00 committed by GitHub
parent eee3d03b71
commit 52bd410a12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,44 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k, setuptools-scm, pygccxml }:
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pygccxml
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "PyBindGen";
pname = "pybindgen";
version = "0.22.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q=";
pname = "PyBindGen";
inherit version;
hash = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q=";
};
buildInputs = [ setuptools-scm ];
buildInputs = [
setuptools-scm
];
checkInputs = [ pygccxml ];
doCheck = (!isPy3k); # Fails to import module 'cxxfilt' from pygccxml on Py3k
checkInputs = [
pygccxml
];
pythonImportsCheck = [
"pybindgen"
];
# Fails to import module 'cxxfilt' from pygccxml on Py3k
doCheck = (!isPy3k);
meta = with lib; {
homepage = "https://github.com/gjcarneiro/pybindgen";
description = "Python Bindings Generator";
license = licenses.lgpl2;
homepage = "https://github.com/gjcarneiro/pybindgen";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ teto ];
};
}