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:
parent
a1aec1450b
commit
95ad5b882c
1 changed files with 27 additions and 0 deletions
27
var/spack/repos/builtin/packages/py-pyem/package.py
Normal file
27
var/spack/repos/builtin/packages/py-pyem/package.py
Normal 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')
|
Loading…
Reference in a new issue