nixpkgs/pkgs/development/python-modules/sip/default.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

{ 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" ];
# 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";
homepage = "https://riverbankcomputing.com/";
2020-12-31 11:57:27 +00:00
license = licenses.gpl3Only;
maintainers = with maintainers; [ eduardosm ];
};
}