Skip to content

Commit

Permalink
Merge pull request NixOS#258078 from Artturin/sip4fixbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin authored Oct 2, 2023
2 parents 5db123d + 0db9358 commit fe0b3b6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/development/python-modules/sip/4.x.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{ lib, fetchurl, buildPythonPackage, python, isPyPy, pythonAtLeast, sip-module ? "sip" }:
{ lib, fetchurl, fetchpatch, buildPythonPackage, python, isPyPy, pythonAtLeast, sip-module ? "sip" }:

buildPythonPackage rec {
pname = sip-module;
version = "4.19.25";
format = "other";

disabled = isPyPy || pythonAtLeast "3.11";
disabled = isPyPy;

src = fetchurl {
url = "https://www.riverbankcomputing.com/static/Downloads/sip/${version}/sip-${version}.tar.gz";
sha256 = "04a23cgsnx150xq86w1z44b6vr2zyazysy9mqax0fy346zlr77dk";
};

patches = lib.optionals (pythonAtLeast "3.11") [
(fetchpatch {
name = "sip-4-python3-11.patch";
url = "https://aur.archlinux.org/cgit/aur.git/plain/python3-11.patch?h=sip4&id=67b5907227e68845cdfafcf050fedb89ed653585";
sha256 = "sha256-cmuz2y5+T8EM/h03G2oboSnnOwrUjVKt2TUQaC9YAdE=";
})
];

configurePhase = ''
${python.executable} ./configure.py \
--sip-module ${sip-module} \
Expand Down

0 comments on commit fe0b3b6

Please sign in to comment.