Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 setuptools, 7 setuptools-scm, 8 packaging, 9 tomli, 10 11 # tests 12 poppler-qt5, 13 qgis, 14 qgis-ltr, 15}: 16 17buildPythonPackage rec { 18 pname = "sip"; 19 version = "6.10.0"; 20 pyproject = true; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-+gUVaX1MmNvgTZ6JjYFt4UJ+W5rl0OFSFpEJ/SH10pw="; 25 }; 26 27 patches = [ 28 # Make wheel file generation deterministic https://github.com/NixOS/nixpkgs/issues/383885 29 ./sip-builder.patch 30 ]; 31 32 build-system = [ 33 setuptools 34 setuptools-scm 35 ]; 36 37 dependencies = [ 38 packaging 39 setuptools 40 ] 41 ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 42 43 # There aren't tests 44 doCheck = false; 45 46 pythonImportsCheck = [ "sipbuild" ]; 47 48 passthru.tests = { 49 # test depending packages 50 inherit poppler-qt5 qgis qgis-ltr; 51 }; 52 53 meta = with lib; { 54 description = "Creates C++ bindings for Python modules"; 55 homepage = "https://riverbankcomputing.com/"; 56 license = licenses.gpl3Only; 57 maintainers = with maintainers; [ ]; 58 }; 59}