nixpkgs/pkgs/development/python-modules/pybindgen/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

45 lines
791 B
Nix

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