depot/third_party/nixpkgs/pkgs/development/python-modules/sip/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
911 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
packaging,
ply,
toml,
tomli,
# tests
poppler-qt5,
qgis,
qgis-ltr,
}:
buildPythonPackage rec {
pname = "sip";
version = "6.8.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-iIVHsBi7JMNq3tUZ6T0+UT1MaqC6VbfMGv+9Rc8Qdiw=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
packaging
setuptools
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
# There aren't tests
doCheck = false;
pythonImportsCheck = [ "sipbuild" ];
passthru.tests = {
# test depending packages
inherit poppler-qt5 qgis qgis-ltr;
};
meta = with lib; {
description = "Creates C++ bindings for Python modules";
homepage = "https://riverbankcomputing.com/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ nrdxp ];
};
}