ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / sip / default.nix
blobab2701fefdc3358d46e04ce7f243f9a30a77c045
1 { lib, stdenv, fetchPypi, buildPythonPackage, packaging, ply, toml, fetchpatch }:
3 buildPythonPackage rec {
4   pname = "sip";
5   version = "6.7.1";
7   src = fetchPypi {
8     pname = "sip";
9     inherit version;
10     sha256 = "sha256-KBcP34gPk3Am/If6qcF3sGLDU8XRaeoyQrB4AmFN3Qw=";
11   };
13   propagatedBuildInputs = [ packaging ply toml ];
15   # There aren't tests
16   doCheck = false;
18   # FIXME: Why isn't this detected automatically?
19   # Needs to be specified in pyproject.toml, e.g.:
20   # [tool.sip.bindings.MODULE]
21   # tags = [PLATFORM_TAG]
22   platform_tag =
23     if stdenv.targetPlatform.isLinux then
24       "WS_X11"
25     else if stdenv.targetPlatform.isDarwin then
26       "WS_MACX"
27     else if stdenv.targetPlatform.isWindows then
28       "WS_WIN"
29     else
30       throw "unsupported platform";
32   pythonImportsCheck = [ "sipbuild" ];
34   meta = with lib; {
35     description = "Creates C++ bindings for Python modules";
36     homepage    = "https://riverbankcomputing.com/";
37     license     = licenses.gpl3Only;
38     maintainers = with maintainers; [ nrdxp ];
39   };