spack/var/spack/repos/builtin/packages/k8/package.py
Todd Gamblin 24c01d57cf
imports: sort imports everywhere in Spack (#24695)
* fix remaining flake8 errors

* imports: sort imports everywhere in Spack

We enabled import order checking in #23947, but fixing things manually drives
people crazy. This used `spack style --fix --all` from #24071 to automatically
sort everything in Spack so PR submitters won't have to deal with it.

This should go in after #24071, as it assumes we're using `isort`, not
`flake8-import-order` to order things. `isort` seems to be more flexible and
allows `llnl` mports to be in their own group before `spack` ones, so this
seems like a good switch.
2021-07-08 22:12:30 +00:00

29 lines
858 B
Python

# 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)
import os
import sys
from spack import *
class K8(Package):
"""K8 is a Javascript shell based on Google's V8 Javascript engine."""
homepage = "https://github.com/attractivechaos/k8"
url = "https://github.com/attractivechaos/k8/releases/download/v0.2.4/k8-0.2.4.tar.bz2"
version('0.2.4', sha256='da8a99c7f1ce7f0cb23ff07ce10510e770686b906d5431442a5439743c0b3c47')
depends_on('zlib', type='run')
def install(self, spec, prefix):
if (sys.platform == 'darwin'):
os.rename('k8-Darwin', 'k8')
if (sys.platform != 'darwin'):
os.rename('k8-Linux', 'k8')
install_tree('.', prefix.bin)