2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
packaging,
|
|
|
|
ply,
|
|
|
|
toml,
|
|
|
|
tomli,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
poppler-qt5,
|
|
|
|
qgis,
|
|
|
|
qgis-ltr,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-05-20 23:08:51 +00:00
|
|
|
pname = "sip";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "6.8.3";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
src = fetchPypi {
|
2023-03-04 12:14:45 +00:00
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-iIVHsBi7JMNq3tUZ6T0+UT1MaqC6VbfMGv+9Rc8Qdiw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
setuptools
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# There aren't tests
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
pythonImportsCheck = [ "sipbuild" ];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
passthru.tests = {
|
2024-02-29 20:09:43 +00:00
|
|
|
# test depending packages
|
|
|
|
inherit poppler-qt5 qgis qgis-ltr;
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Creates C++ bindings for Python modules";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://riverbankcomputing.com/";
|
|
|
|
license = licenses.gpl3Only;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ nrdxp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|