pyqt5_sip: init at 12.9.1

Expose this python module in python-packages.nix
This commit is contained in:
Doron Behar 2022-02-15 11:02:37 +02:00
parent 4374c9e737
commit 19f52c3818
3 changed files with 32 additions and 15 deletions

View file

@ -7,6 +7,7 @@
, lndir
, dbus-python
, sip
, pyqt5_sip
, pyqt-builder
, libsForQt5
, withConnectivity ? false
@ -16,21 +17,7 @@
, withLocation ? false
}:
let
pyqt5_sip = buildPythonPackage rec {
pname = "PyQt5_sip";
version = "12.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "0cmfxb7igahxy74qkq199l6zdxrr75bnxris42fww3ibgjflir6k";
};
# There is no test code and the check phase fails with:
# > error: could not create 'PyQt5/sip.cpython-38-x86_64-linux-gnu.so': No such file or directory
doCheck = false;
};
in buildPythonPackage rec {
buildPythonPackage rec {
pname = "PyQt5";
version = "5.15.4";
format = "pyproject";

View file

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pyqt5-sip";
version = "12.9.1";
src = fetchPypi {
pname = "PyQt5_sip";
inherit version;
sha256 = "LyTymbRMURwjeWqvu7WBv96/eNCQVle3zuIUG0mCAw4=";
};
# There is no test code and the check phase fails with:
# > error: could not create 'PyQt5/sip.cpython-38-x86_64-linux-gnu.so': No such file or directory
doCheck = false;
pythonImportsCheck = ["PyQt5.sip"];
meta = with lib; {
description = "Python bindings for Qt5";
homepage = "https://www.riverbankcomputing.com/software/sip/";
license = licenses.gpl3Only;
platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ sander ];
};
}

View file

@ -7359,6 +7359,8 @@ in {
pyqt5 = callPackage ../development/python-modules/pyqt/5.x.nix { };
pyqt5_sip = callPackage ../development/python-modules/pyqt/sip.nix { };
pyqt5_with_qtmultimedia = self.pyqt5.override {
withMultimedia = true;
};