This commit is contained in:
saltedcoffii
2021-05-09 11:58:27 -04:00
parent 84e427bd5e
commit f831cde6f7
5 changed files with 109 additions and 18 deletions

22
packages/py3_cssselect.rb Normal file
View File

@@ -0,0 +1,22 @@
require 'package'
class Py3_cssselect < Package
description 'CSSselect parses CSS3 Selectors and translates them to XPath 1.0.'
homepage 'https://cssselect.readthedocs.io/'
@_ver = '1.1.0'
version @_ver
license 'BSD'
compatibility 'all'
source_url 'https://github.com/scrapy/cssselect.git'
git_hashtag 'v' + @_ver
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

View File

@@ -0,0 +1,23 @@
require 'package'
class Py3_importlib_metadata < Package
description 'Importlib metadata reads metadata from Python packages.'
homepage 'https://github.com/python/importlib_metadata/'
@_ver = '4.0.1'
version @_ver
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/python/importlib_metadata.git'
git_hashtag @_ver
depends_on 'py3_zipp'
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

25
packages/py3_keyring.rb Normal file
View File

@@ -0,0 +1,25 @@
require 'package'
class Py3_keyring < Package
description 'Keyring stores and accesses your passwords safely.'
homepage 'https://github.com/jaraco/keyring/'
@_ver = '23.0.1'
version @_ver
license 'MIT'
compatibility 'all'
source_url 'https://github.com/jaraco/keyring.git'
git_hashtag 'v' + @_ver
depends_on 'py3_jeepney'
depends_on 'py3_secretstorage'
depends_on 'py3_importlib_metadata'
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

22
packages/py3_minidb.rb Normal file
View File

@@ -0,0 +1,22 @@
require 'package'
class Py3_cssselect < Package
description 'Minidb is a simple SQLite3-based store for Python objects.'
homepage 'http://thp.io/2010/minidb/'
@_ver = '2.0.4'
version @_ver
license 'ISC'
compatibility 'all'
source_url 'https://github.com/thp/minidb.git'
git_hashtag @_ver
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

View File

@@ -3,28 +3,27 @@ require 'package'
class Urlwatch < Package
description 'A tool for monitoring webpages for updates'
homepage 'https://thp.io/2008/urlwatch/'
version '2.23'
@_ver = '2.23'
version @_ver + '-1'
license 'BSD'
compatibility 'all'
source_url 'https://github.com/thp/urlwatch/archive/2.23.tar.gz'
source_sha256 'b61997ec6229b2cb22b7121d0b666da91e524e212d126f55cd939d230daa5887'
source_url 'https://github.com/thp/urlwatch.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/urlwatch/2.23_armv7l/urlwatch-2.23-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/urlwatch/2.23_armv7l/urlwatch-2.23-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/urlwatch/2.23_i686/urlwatch-2.23-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/urlwatch/2.23_x86_64/urlwatch-2.23-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '1f17b72ee478889438aa358a966b649523793f1c5c97fd19b4eaddaa5f75f7ed',
armv7l: '1f17b72ee478889438aa358a966b649523793f1c5c97fd19b4eaddaa5f75f7ed',
i686: '66a0c448752ed7a144e6e73967fb600d5f2784aab59b49279650a156d4cb8b92',
x86_64: '9d2629ab5d1172e48eb97bd074c5156a6fafe75d1f11a698a85a6cc84a87934c'
})
depends_on 'py3_lxml'
depends_on 'py3_cssselect'
depends_on 'py3_minidb'
depends_on 'py3_pyyaml'
depends_on 'py3_requests'
depends_on 'py3_appdirs'
depends_on 'py3_keyring'
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "CRYPTOGRAPHY_DONT_BUILD_RUST=1 pip3 install \
--prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -r requirements.txt"
system "python3 setup.py install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR}"
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end