depot/third_party/nixpkgs/pkgs/development/python-modules/sip/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

49 lines
896 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
packaging,
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 ];
};
}