diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:19:25 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:19:25 +0000 |
commit | 55abc327b49b4097e48c916e40803caa8cf46e8f (patch) | |
tree | 1c0420ab3fb21d9485460b912f1c3eae18781871 /nixpkgs/pkgs/development/python-modules/orange-canvas-core/default.nix | |
parent | 7936cf821dccc1eaade44b852db09d03fae8e5f3 (diff) | |
parent | 18324978d632ffc55ef1d928e81630c620f4f447 (diff) | |
download | nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.gz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.bz2 nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.lz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.xz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.zst nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/orange-canvas-core/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/orange-canvas-core/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/orange-canvas-core/default.nix b/nixpkgs/pkgs/development/python-modules/orange-canvas-core/default.nix new file mode 100644 index 000000000000..2673151654a3 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/orange-canvas-core/default.nix @@ -0,0 +1,64 @@ +{ lib +, buildPythonPackage +, fetchPypi +, anyqt +, cachecontrol +, commonmark +, dictdiffer +, docutils +, filelock +, lockfile +, pytest-qt +, pytestCheckHook +, python +, qasync +, qt5 +, writeShellScript +, xvfb-run +}: + +buildPythonPackage rec { + pname = "orange-canvas-core"; + version = "0.1.31"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-kqh/c0pEWFLqf1BMD79li1MqLpH/4xrdTH9+/7YO/tg="; + }; + + propagatedBuildInputs = [ + anyqt + cachecontrol + commonmark + dictdiffer + docutils + filelock + lockfile + qasync + ]; + + pythonImportsCheck = [ "orangecanvas" ]; + + preCheck = '' + export HOME=$(mktemp -d) + export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}" + export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins"; + export QT_QPA_PLATFORM=offscreen + ''; + + nativeCheckInputs = [ + pytest-qt + pytestCheckHook + ]; + + disabledTestPaths = [ + "orangecanvas/canvas/items/tests/test_graphicstextitem.py" + ]; + + meta = { + description = "Orange framework for building graphical user interfaces for editing workflows"; + homepage = "https://github.com/biolab/orange-canvas-core"; + license = [ lib.licenses.gpl3 ]; + maintainers = [ lib.maintainers.lucasew ]; + }; +} |