2021-04-28 15:26:06 +01:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, packaging, toml }:
|
2020-12-31 11:57:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sip";
|
2021-05-16 18:19:44 +01:00
|
|
|
version = "6.1.1";
|
2020-12-31 11:57:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "sip";
|
|
|
|
inherit version;
|
2021-05-16 18:19:44 +01:00
|
|
|
sha256 = "083ykzg7zbvrfrg3ram2vx93zrmhpm817kf9bkhw8r6pzkr5mljj";
|
2020-12-31 11:57:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ packaging toml ];
|
|
|
|
|
|
|
|
# There aren't tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sipbuild" ];
|
|
|
|
|
2021-04-28 15:26:06 +01: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 14:54:35 +01:00
|
|
|
homepage = "https://riverbankcomputing.com/";
|
2020-12-31 11:57:27 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ eduardosm ];
|
|
|
|
};
|
|
|
|
}
|