ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
53 lines
925 B
Nix
53 lines
925 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
packaging,
|
|
tomli,
|
|
|
|
# tests
|
|
poppler-qt5,
|
|
qgis,
|
|
qgis-ltr,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sip";
|
|
version = "6.8.6";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-f8lZ5I5uxdWvi9Am9p9eJNCLPLirs0IXb1q4AwzAfXo=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
}
|