diff options
author | Jen Herting <jen@herting.cc> | 2021-06-23 17:46:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 15:46:20 -0600 |
commit | 3d631377c09cee2c640cf6ae3cc6a791ce93b5d6 (patch) | |
tree | 709c66e017dede76d7ed43df2c79b9bf7b2b262d | |
parent | 387ee5a0b768ac28f8acca09c3a9b2afbd4b9fae (diff) | |
download | spack-3d631377c09cee2c640cf6ae3cc6a791ce93b5d6.tar.gz spack-3d631377c09cee2c640cf6ae3cc6a791ce93b5d6.tar.bz2 spack-3d631377c09cee2c640cf6ae3cc6a791ce93b5d6.tar.xz spack-3d631377c09cee2c640cf6ae3cc6a791ce93b5d6.zip |
New package: py-mouseinfo (#24245)
* [py-mouseinfo] created template
* [py-mouseinfo] added some dependencies
* [py-mouseinfo] added platform dependent dependency information
* [py-mouseinfo] flake8
* [py-mouseinfo] added python2 dependency and conflict with darwin for missing dependency
* [py-mouseinfo] Final cleanup
- added homepage
- added description
- removed fixmes
* [py-mouseinfo] using pil provider
-rw-r--r-- | var/spack/repos/builtin/packages/py-mouseinfo/package.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-mouseinfo/package.py b/var/spack/repos/builtin/packages/py-mouseinfo/package.py new file mode 100644 index 0000000000..52d5ec4205 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-mouseinfo/package.py @@ -0,0 +1,38 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyMouseinfo(PythonPackage): + """An application to display XY position and RGB color + information for the pixel currently under the mouse. Works + on Python 2 and 3. This is useful for GUI automation + planning.""" + + homepage = "https://github.com/asweigart/mouseinfo" + pypi = "MouseInfo/MouseInfo-0.1.3.tar.gz" + + version('0.1.3', sha256='2c62fb8885062b8e520a3cce0a297c657adcc08c60952eb05bc8256ef6f7f6e7') + + depends_on('python@2.7,3.2:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + + # rubicon-objc;platform_system=="Darwin"', + # 'python3-Xlib;platform_system=="Linux" and python_version>="3.0"', + # 'Xlib;platform_system=="Linux" and python_version<"3.0"', + # Conflicting until rubicon-objc exists + conflicts('platform=darwin') + depends_on('py-python3-xlib', when='^python@3 platform=linux', type=('build', 'run')) + depends_on('py-python-xlib', when='^python@2 platform=linux', type=('build', 'run')) + + depends_on('py-pyperclip', type=('build', 'run')) + depends_on('pil@5.2.0:', when='^python@3.7:', type=('build', 'run')) + depends_on('pil@4.0.0:', when='^python@3.6', type=('build', 'run')) + depends_on('pil@3.2.0:', when='^python@3.5', type=('build', 'run')) + depends_on('pil@2.5.0:5.4.1', when='^python@3.4', type=('build', 'run')) + depends_on('pil@2.0.0:4.3.0', when='^python@3.3', type=('build', 'run')) + depends_on('pil@2.0.0:3.4.2', when='^python@3.2', type=('build', 'run')) + depends_on('pil@2.0.0:', when='^python@2.7', type=('build', 'run')) |