python3Packages.echo: init at 0.8.0

This commit is contained in:
ifurther
2023-11-16 22:41:22 +08:00
parent 2bb0a53968
commit 88b2484e76
2 changed files with 65 additions and 0 deletions
@@ -0,0 +1,63 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
, libxcrypt
, numpy
, qt6
, qtpy
, pyqt6
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "echo";
version = "0.8.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "glue-viz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-0FmUA7kOFSRZXwbj8d7asujBPOjE2pFhu6TDNSGD4r0=";
};
nativeBuildInputs = [ setuptools setuptools-scm qt6.wrapQtAppsHook ];
buildInputs = lib.optionals (pythonOlder "3.9") [
libxcrypt
];
propagatedBuildInputs = [
qt6.qtconnectivity
qt6.qtbase
qt6.qttools
pyqt6
numpy
qtpy
];
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
# collecting ... qt.qpa.xcb: could not connect to display
# qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
pythonImportsCheck = [ "echo" ];
meta = with lib; {
homepage = "https://github.com/glue-viz/echo";
description = "Callback Properties in Python";
license = licenses.mit;
maintainers = with maintainers; [ ifurther ];
};
}
+2
View File
@@ -3435,6 +3435,8 @@ self: super: with self; {
ecdsa = callPackage ../development/python-modules/ecdsa { };
echo = callPackage ../development/python-modules/echo { };
ecoaliface = callPackage ../development/python-modules/ecoaliface { };
ecos = callPackage ../development/python-modules/ecos { };