2021-04-28 14:26:06 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, packaging, toml }:
|
2020-12-31 11:57:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sip";
|
2021-12-07 08:56:24 +00:00
|
|
|
version = "6.5.0";
|
2020-12-31 11:57:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "sip";
|
|
|
|
inherit version;
|
2021-12-07 08:56:24 +00:00
|
|
|
sha256 = "a1cf8431a8eb9392b3ff6dc61d832d0447bfdcae5b3e4256a5fa74dbc25b0734";
|
2020-12-31 11:57:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ packaging toml ];
|
|
|
|
|
|
|
|
# There aren't tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sipbuild" ];
|
|
|
|
|
2021-04-28 14:26:06 +00:00
|
|
|
# FIXME: Why isn't this detected automatically?
|
|
|
|
# Needs to be specified in pyproject.toml, e.g.:
|
|
|
|
# [tool.sip.bindings.MODULE]
|
|
|
|
# tags = [PLATFORM_TAG]
|
|
|
|
platform_tag =
|
|
|
|
if stdenv.targetPlatform.isLinux then
|
|
|
|
"WS_X11"
|
|
|
|
else if stdenv.targetPlatform.isDarwin then
|
|
|
|
"WS_MACX"
|
|
|
|
else if stdenv.targetPlatform.isWindows then
|
|
|
|
"WS_WIN"
|
|
|
|
else
|
|
|
|
throw "unsupported platform";
|
|
|
|
|
2020-12-31 11:57:27 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Creates C++ bindings for Python modules";
|
2021-06-09 13:54:35 +00:00
|
|
|
homepage = "https://riverbankcomputing.com/";
|
2020-12-31 11:57:27 +00:00
|
|
|
license = licenses.gpl3Only;
|
2021-10-28 14:21:46 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-12-31 11:57:27 +00:00
|
|
|
};
|
|
|
|
}
|