mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.pyface: modernize (#477702)
This commit is contained in:
commit
c0fc386a2f
1 changed files with 66 additions and 18 deletions
|
|
@ -1,43 +1,91 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
importlib-metadata,
|
numpy,
|
||||||
importlib-resources,
|
pillow,
|
||||||
|
pygments,
|
||||||
|
pyqt5,
|
||||||
|
pyqt6,
|
||||||
|
pyside2,
|
||||||
|
pyside6,
|
||||||
|
pytestCheckHook,
|
||||||
setuptools,
|
setuptools,
|
||||||
traits,
|
traits,
|
||||||
pythonOlder,
|
traitsui,
|
||||||
|
writableTmpDirAsHomeHook,
|
||||||
|
wxpython,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage (finalAttrs: {
|
||||||
pname = "pyface";
|
pname = "pyface";
|
||||||
version = "8.0.0";
|
version = "8.0.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
src = fetchFromGitHub {
|
||||||
|
owner = "enthought";
|
||||||
src = fetchPypi {
|
repo = "pyface";
|
||||||
inherit pname version;
|
tag = finalAttrs.version;
|
||||||
hash = "sha256-fhNhg0e3pkjtIM29T9GlFkj1AQKR815OD/G/cKcgy/g=";
|
hash = "sha256-i97cosaFc5GTv5GJgpx1xc81mir/IWljSrAORUapymM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
importlib-metadata
|
|
||||||
importlib-resources
|
|
||||||
traits
|
traits
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = false; # Needs X server
|
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" ];
|
pythonImportsCheck = [ "pyface" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Traits-capable windowing framework";
|
description = "Traits-capable windowing framework";
|
||||||
homepage = "https://github.com/enthought/pyface";
|
homepage = "https://github.com/enthought/pyface";
|
||||||
changelog = "https://github.com/enthought/pyface/releases/tag/${version}";
|
changelog = "https://github.com/enthought/pyface/releases/tag/${finalAttrs.src.tag}";
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
license = lib.licenses.bsdOriginal;
|
license = lib.licenses.bsdOriginal;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue