python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / pybindgen / default.nix
blob63321d5c53c064f2f8f179a15c9879991fe30793
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   isPy3k,
6   pygccxml,
7   pythonOlder,
8   setuptools-scm,
9 }:
11 buildPythonPackage rec {
12   pname = "pybindgen";
13   version = "0.22.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     pname = "PyBindGen";
20     inherit version;
21     hash = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q=";
22   };
24   buildInputs = [ setuptools-scm ];
26   nativeCheckInputs = [ pygccxml ];
28   pythonImportsCheck = [ "pybindgen" ];
30   # Fails to import module 'cxxfilt' from pygccxml on Py3k
31   doCheck = (!isPy3k);
33   meta = with lib; {
34     description = "Python Bindings Generator";
35     homepage = "https://github.com/gjcarneiro/pybindgen";
36     license = licenses.lgpl21Plus;
37     maintainers = with maintainers; [ teto ];
38   };