spack/var/spack/repos/builtin/packages/py-crcmod/package.py
Todd Gamblin a8ccb8e116 copyrights: update all files with license headers for 2021
- [x] add `concretize.lp`, `spack.yaml`, etc. to licensed files
- [x] update all licensed files to say 2013-2021 using
      `spack license update-copyright-year`
- [x] appease mypy with some additions to package.py that needed
      for oneapi.py
2021-01-02 12:12:00 -08:00

26 lines
966 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)
from spack import *
class PyCrcmod(PythonPackage):
"""Python module for generating objects that
compute the Cyclic Redundancy Check (CRC)"""
homepage = "http://crcmod.sourceforge.net/"
pypi = "crcmod/crcmod-1.7.tar.gz"
version('1.7', sha256='dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e')
version('1.6', sha256='56d27d035ea029c6ed96779ca042c0136d39d106e3c30baa6422738c7d86aaa5')
depends_on('python@2.4:2.7,3.1:', type=('build', 'run'))
depends_on('py-setuptools@40.0.0:', type='build')
def install(self, spec, prefix):
# Override install to avoid
# error: option --single-version-externally-managed not recognized
setup_py('install', '--root=/', '--prefix={0}'.format(prefix))