python3Packages.anyqt: init at 0.2.0

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew 2023-07-08 14:50:56 -03:00
parent 67effe018b
commit 6e14c96397
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyqt5
, pytestCheckHook
, nix-update-script
}:
buildPythonPackage rec {
pname = "anyqt";
version = "0.2.0";
src = fetchFromGitHub {
owner = "ales-erjavec";
repo = "anyqt";
rev = version;
hash = "sha256-dL2EUAMzWKq/oN3rXiEC6emDJddmg4KclT5ONKA0jfk=";
};
nativeCheckInputs = [ pyqt5 pytestCheckHook ];
# All of these fail because Qt modules cannot be imported
disabledTestPaths = [
"tests/test_qabstractitemview.py"
"tests/test_qaction_set_menu.py"
"tests/test_qactionevent_action.py"
"tests/test_qfontdatabase_static.py"
"tests/test_qpainter_draw_pixmap_fragments.py"
"tests/test_qsettings.py"
"tests/test_qstandarditem_insertrow.py"
"tests/test_qtest.py"
];
pythonImportsCheck = [ "AnyQt" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "PyQt/PySide compatibility layer";
homepage = "https://github.com/ales-erjavec/anyqt";
license = [ lib.licenses.gpl3Only ];
maintainers = [ lib.maintainers.lucasew ];
};
}

View file

@ -552,6 +552,8 @@ self: super: with self; {
anyio = callPackage ../development/python-modules/anyio { };
anyqt = callPackage ../development/python-modules/anyqt { };
anytree = callPackage ../development/python-modules/anytree {
inherit (pkgs) graphviz;
};