diff --git a/pkgs/development/python-modules/pybindgen/default.nix b/pkgs/development/python-modules/pybindgen/default.nix index cb497c87ac06..ab18b4886bda 100644 --- a/pkgs/development/python-modules/pybindgen/default.nix +++ b/pkgs/development/python-modules/pybindgen/default.nix @@ -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 ]; }; }