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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchPypi, buildPythonPackage, packaging, ply, toml, fetchpatch }:
2020-12-31 11:57:27 +00:00
buildPythonPackage rec {
pname = "sip";
2022-12-30 19:13:47 +00:00
version = "6.7.5";
2020-12-31 11:57:27 +00:00
src = fetchPypi {
pname = "sip";
inherit version;
2022-12-30 19:13:47 +00:00
sha256 = "sha256-llXQieHQxfv2a94RVYqHSYBykTK1vQwq41WsGnuJOrQ=";
2020-12-31 11:57:27 +00:00
};
2022-07-16 11:59:36 +01:00
propagatedBuildInputs = [ packaging ply toml ];
2020-12-31 11:57:27 +00:00
# There aren't tests
doCheck = false;
# 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";
2022-10-06 04:46:35 +01:00
pythonImportsCheck = [ "sipbuild" ];
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;
2022-10-06 04:46:35 +01:00
maintainers = with maintainers; [ nrdxp ];
2020-12-31 11:57:27 +00:00
};
}