1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, pythonOlder
6, setuptools
7, wheel
8, packaging
9, ply
10, toml
11, tomli
12}:
13
14buildPythonPackage rec {
15 pname = "sip";
16 version = "6.7.11";
17
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-8Nwyh6CxcuVmSTHIeEd1DUfk/c2k/jYrUUr47dZVtGk=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 wheel
28 ];
29
30 propagatedBuildInputs = [ packaging ply toml ] ++ lib.optionals (pythonOlder "3.11") [
31 tomli
32 ];
33
34 # There aren't tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "sipbuild" ];
38
39 meta = with lib; {
40 description = "Creates C++ bindings for Python modules";
41 homepage = "https://riverbankcomputing.com/";
42 license = licenses.gpl3Only;
43 maintainers = with maintainers; [ nrdxp ];
44 };
45}