diff options
author | ifurther <55025025+ifurther@users.noreply.github.com> | 2023-11-08 04:07:42 +0800 |
---|---|---|
committer | ifurther <55025025+ifurther@users.noreply.github.com> | 2023-11-16 22:41:22 +0800 |
commit | 88b2484e76ff76d45af65621f31affcfd5ffa447 (patch) | |
tree | 4f6138e91718861de3ced026067f958f938f4f82 /pkgs/development | |
parent | 2bb0a53968b5cc559343df33055ab2d9e083546a (diff) | |
download | nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.tar nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.tar.gz nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.tar.bz2 nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.tar.lz nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.tar.xz nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.tar.zst nixpkgs-88b2484e76ff76d45af65621f31affcfd5ffa447.zip |
python3Packages.echo: init at 0.8.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/echo/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/echo/default.nix b/pkgs/development/python-modules/echo/default.nix new file mode 100644 index 00000000000..af3a3d43a6d --- /dev/null +++ b/pkgs/development/python-modules/echo/default.nix @@ -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 ]; + }; +} |