summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-07-05 03:50:23 -0500
committerGitHub <noreply@github.com>2021-07-05 10:50:23 +0200
commiteaa918c8f39b82171d9ce212ae077bc3633b0496 (patch)
tree2c30a5736a4b467aea763a0e81ed7a1a23ec1661 /var
parenteacba1ffaccd8a8233ac0462182268f7e2b66106 (diff)
downloadspack-eaa918c8f39b82171d9ce212ae077bc3633b0496.tar.gz
spack-eaa918c8f39b82171d9ce212ae077bc3633b0496.tar.bz2
spack-eaa918c8f39b82171d9ce212ae077bc3633b0496.tar.xz
spack-eaa918c8f39b82171d9ce212ae077bc3633b0496.zip
py-isort: add v5.9.1, +colors variant (#24699)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-isort/package.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-isort/package.py b/var/spack/repos/builtin/packages/py-isort/package.py
index 9eedf82418..c246d5fdd3 100644
--- a/var/spack/repos/builtin/packages/py-isort/package.py
+++ b/var/spack/repos/builtin/packages/py-isort/package.py
@@ -12,11 +12,16 @@ class PyIsort(PythonPackage):
homepage = "https://github.com/timothycrosley/isort"
pypi = "isort/isort-4.2.15.tar.gz"
+ version('5.9.1', sha256='83510593e07e433b77bd5bff0f6f607dbafa06d1a89022616f02d8b699cfcd56')
version('4.3.20', sha256='c40744b6bc5162bbb39c1257fe298b7a393861d50978b565f3ccd9cb9de0182a')
version('4.2.15', sha256='79f46172d3a4e2e53e7016e663cc7a8b538bec525c36675fcfd2767df30b3983')
- depends_on('py-setuptools', type=('build', 'run'))
+ variant('colors', default=False, description='Install colorama for --color support')
+
+ depends_on('python@3.6.1:3.999', type=('build', 'run'), when='@5:')
+ depends_on('python@2.7:2.8,3.4:', type=('build', 'run'), when='@4.3:')
depends_on('python@2.6:2.8,3.3:', type=('build', 'run'))
- depends_on('python@2.7:2.8,3.4:', type=('build', 'run'), when='@4.3.0:')
- depends_on('py-futures', type=('build', 'run'), when='@4.3.0: ^python@:3.1')
- depends_on('py-backports-functools-lru-cache', type=('build', 'run'), when='@4.3.10: ^python@:3.1')
+ depends_on('py-setuptools', type=('build', 'run'))
+ depends_on('py-futures', type=('build', 'run'), when='@4.3:4.999 ^python@:3.1')
+ depends_on('py-backports-functools-lru-cache', type=('build', 'run'), when='@4.3.10:4.999 ^python@:3.1')
+ depends_on('py-colorama@0.4.3:0.4.999', type=('build', 'run'), when='+colors')