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, 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" ];
# 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;
2021-10-28 14:21:46 +00:00
maintainers = with maintainers; [ ];
2020-12-31 11:57:27 +00:00
};
}