python310Packages.pybindgen: add pythonImportsCheck
This commit is contained in:
parent
eee3d03b71
commit
52bd410a12
1 changed files with 31 additions and 9 deletions
|
@ -1,22 +1,44 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage, isPy3k, setuptools-scm, pygccxml }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy3k
|
||||||
|
, pygccxml
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools-scm
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "PyBindGen";
|
pname = "pybindgen";
|
||||||
version = "0.22.1";
|
version = "0.22.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
pname = "PyBindGen";
|
||||||
sha256 = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q=";
|
inherit version;
|
||||||
|
hash = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools-scm ];
|
buildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pygccxml ];
|
checkInputs = [
|
||||||
doCheck = (!isPy3k); # Fails to import module 'cxxfilt' from pygccxml on Py3k
|
pygccxml
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pybindgen"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Fails to import module 'cxxfilt' from pygccxml on Py3k
|
||||||
|
doCheck = (!isPy3k);
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/gjcarneiro/pybindgen";
|
|
||||||
description = "Python Bindings Generator";
|
description = "Python Bindings Generator";
|
||||||
license = licenses.lgpl2;
|
homepage = "https://github.com/gjcarneiro/pybindgen";
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
maintainers = with maintainers; [ teto ];
|
maintainers = with maintainers; [ teto ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue