Files
chromebrew/packages/py3_flit_core.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

35 lines
1006 B
Ruby

require 'package'
class Py3_flit_core < Package
description 'Flit provides simplified packaging of Python modules—core portions.'
homepage 'https://flit.pypa.io/'
@_ver = '3.9.0'
version "#{@_ver}-py3.12"
license 'MIT'
compatibility 'all'
source_url 'https://github.com/pypa/flit.git'
git_hashtag @_ver
binary_compression 'tar.zst'
binary_sha256({
aarch64: '68402651f832c896ff80e5b44435a60dc9123f89bf36a1656bc572f42731c817',
armv7l: '68402651f832c896ff80e5b44435a60dc9123f89bf36a1656bc572f42731c817',
i686: '01a2f8a973d3d1a298221235bd99043d05980de1d79bacf8a03173fe0ef653b3',
x86_64: 'd870b86028d67c97728d91a490a93e473db11121f6f39c42890a3db8d0cc7407'
})
depends_on 'python3'
def self.build
Dir.chdir 'flit_core' do
system "SETUPTOOLS_SCM_PRETEND_VERSION=#{@_ver} python3 -m build #{PY3_BUILD_OPTIONS}"
end
end
def self.install
Dir.chdir 'flit_core' do
system "python3 -m installer #{PY3_INSTALLER_OPTIONS}"
end
end
end