Merge pull request #160125 from doronbehar/pkg/hplip

This commit is contained in:
Doron Behar 2022-02-15 17:24:34 +02:00 committed by GitHub
commit a400822701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 16 deletions

View File

@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec {
pythonPath = with python3Packages; [
pyqt5
pyqt5.pyqt5_sip
pyqt5_sip
send2trash
sphinx
polib

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

@ -83,6 +83,7 @@ python3Packages.buildPythonApplication {
dbus-python
] ++ lib.optionals withQt5 [
pyqt5
pyqt5_sip
enum-compat
];

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;
};