mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 09:36:32 +01:00
91 lines
1.6 KiB
Nix
91 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
numpy,
|
|
pillow,
|
|
pygments,
|
|
pyqt5,
|
|
pyqt6,
|
|
pyside2,
|
|
pyside6,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
traits,
|
|
traitsui,
|
|
writableTmpDirAsHomeHook,
|
|
wxpython,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "pyface";
|
|
version = "8.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "enthought";
|
|
repo = "pyface";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-i97cosaFc5GTv5GJgpx1xc81mir/IWljSrAORUapymM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
traits
|
|
];
|
|
|
|
optional-dependencies = {
|
|
pillow = [ pillow ];
|
|
pyqt5 = [
|
|
pygments
|
|
pyqt5
|
|
];
|
|
pyqt6 = [
|
|
pygments
|
|
pyqt6
|
|
];
|
|
pyside2 = [
|
|
pygments
|
|
pyside2
|
|
];
|
|
pyside6 = [
|
|
pygments
|
|
pyside6
|
|
];
|
|
numpy = [ numpy ];
|
|
traitsui = [ traitsui ];
|
|
wx = [
|
|
wxpython
|
|
numpy
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
enabledTestPaths = "pyface/tests";
|
|
|
|
disabledTestPaths = [
|
|
# tests need an X server
|
|
"pyface/tests/test_beep.py"
|
|
"pyface/tests/test_clipboard.py"
|
|
"pyface/tests/test_font.py"
|
|
"pyface/tests/test_image_cache.py"
|
|
"pyface/tests/test_image_resource.py"
|
|
"pyface/tests/test_system_metrics.py"
|
|
"pyface/tests/test_widget.py"
|
|
];
|
|
|
|
pythonImportsCheck = [ "pyface" ];
|
|
|
|
meta = {
|
|
description = "Traits-capable windowing framework";
|
|
homepage = "https://github.com/enthought/pyface";
|
|
changelog = "https://github.com/enthought/pyface/releases/tag/${finalAttrs.src.tag}";
|
|
maintainers = [ ];
|
|
license = lib.licenses.bsdOriginal;
|
|
};
|
|
})
|