new package py-pyem (#22425)

* new package py-pyem

* Added patch note and removed homepage

* Style fixes

* Moved the version above deps

* Style fix on line 20
This commit is contained in:
Desmond Orton 2021-03-23 15:25:57 -05:00 committed by GitHub
parent a1aec1450b
commit 95ad5b882c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,27 @@
# 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 PyPyem(PythonPackage):
"""Project-level Python virtual environment management tool.
PyEM manages multiple virtual environments local to projects.
It provides shortcuts to create, remove, switch between, and run
commands against virtual environments created against
various Python interpreters."""
pypi = "pyem/pyem-2.1.0.tar.gz"
version('2.1.0', sha256='5234a20427ab2813a8a0bf1e9112d4d854b1b0502b3e63d17c1b1a3c4be9340e')
depends_on('python@3.7:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
# distutils does not support entry_points, setuptools needed to install pyem binary
def patch(self):
filter_file(r'from distutils.core import setup',
'from setuptools import setup', 'setup.py')