Files
chromebrew/packages/py2_six.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

31 lines
902 B
Ruby

require 'package'
class Py2_six < Package
description 'Six is a Python 2 and 3 compatibility library.'
homepage 'https://six.readthedocs.io/'
version '1.15.0'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/benjaminp/six.git'
git_hashtag version
binary_compression 'tar.xz'
binary_sha256({
aarch64: '7a5eb26a32d16ec92ff73cdf5fe85bc20810d0805e7280f1f2ce2a3db3becab4',
armv7l: '7a5eb26a32d16ec92ff73cdf5fe85bc20810d0805e7280f1f2ce2a3db3becab4',
i686: 'c147094d65bbbfccde10c89c572c69085a70dbf8b83b08d20d5eccbfa5da4db9',
x86_64: '360cfb9534fe9c0e4efe450c2267519b60acecac2429a90b7b2fabbe7da77c24'
})
depends_on 'python2'
depends_on 'py2_setuptools' => :build
def self.build
system "python2 setup.py build #{PY2_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python2 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end