1 { lib, stdenv, fetchPypi, buildPythonPackage, packaging, ply, toml, fetchpatch }:
3 buildPythonPackage rec {
10 sha256 = "sha256-KBcP34gPk3Am/If6qcF3sGLDU8XRaeoyQrB4AmFN3Qw=";
13 propagatedBuildInputs = [ packaging ply toml ];
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]
23 if stdenv.targetPlatform.isLinux then
25 else if stdenv.targetPlatform.isDarwin then
27 else if stdenv.targetPlatform.isWindows then
30 throw "unsupported platform";
32 pythonImportsCheck = [ "sipbuild" ];
35 description = "Creates C++ bindings for Python modules";
36 homepage = "https://riverbankcomputing.com/";
37 license = licenses.gpl3Only;
38 maintainers = with maintainers; [ nrdxp ];