Github messages for voidlinux
 help / color / mirror / Atom feed
From: Frick-David <Frick-David@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package Request: python3-hidapi (arch) or python3-hid (ubuntu)
Date: Mon, 14 Dec 2020 01:39:09 +0100	[thread overview]
Message-ID: <20201214003909.B2x8_-7_roIYaomtck_dFKO_4p7BasDkskOd2Ek3ak0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19670@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2342 bytes --]

New comment by Frick-David on void-packages repository

https://github.com/void-linux/void-packages/issues/19670#issuecomment-744100645

Comment:
Attaching the Arch built:
```
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Kevin Azzam <arch@kevin.azz.am>

pkgname=python-hidapi
_pipname=hidapi
pkgver=0.10.1
#_pkgver=${pkgver%.*}.post${pkgver##*.}
_pkgver="$pkgver"
pkgrel=1
arch=('x86_64')
pkgdesc="A Cython interface to the hidapi from signal11/hidapi"
url="https://github.com/trezor/cython-hidapi"
depends=('python' 'hidapi')
makedepends=('cython' 'python-setuptools' 'udev')
license=('custom')
source=("https://pypi.org/packages/source/${_pipname:0:1}/$_pipname/$_pipname-$_pkgver.tar.gz")
sha512sums=('681e3691a4b05b13abc38d305c68e448728612442d0ef12ce54d12eeebee6e18d33566c462a276d18ce5e29fad208e6fcde49bbe4b162eae5cd72ce37dea880b')

build() {
  cd "$_pipname-$_pkgver"

  python setup.py build \
        --without-libusb --with-system-hidapi
}

check() {
  cd "$_pipname-$_pkgver"

  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
  PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" python tests.py
}

package_python-hidapi() {
  cd "$_pipname-$_pkgver"

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build \
        --without-libusb --with-system-hidapi

  install -Dm 755 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
  install -Dm 755 LICENSE-bsd.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-bsd.txt
  install -Dm 755 LICENSE-gpl3.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-gpl3.txt
  install -Dm 755 LICENSE-orig.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-orig.txt
}
```

I know void does not need the arch anymore.
This is a python package so, I should reference a void python package for reference.
I can see it relies on udev, which might be tricky. I know void uses `eudev` and I am not sure if there is easy crossover there.
The license says `custom` I will need to look more into this.

The rest looks pretty straight forward unless I run into a problem with `eudev` or void does something entirely differently. We shall see.

  parent reply	other threads:[~2020-12-14  0:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-02  5:29 [ISSUE] " Frick-David
2020-03-02  9:35 ` xtraeme
2020-03-02 21:44 ` Frick-David
2020-03-03 13:59 ` jrigg
2020-03-03 14:12 ` jrigg
2020-03-06 21:18 ` Frick-David
2020-12-03  2:04 ` [ISSUE] [CLOSED] " Frick-David
2020-12-04  2:22 ` Frick-David
2020-12-04 13:38 ` Frick-David
2020-12-04 14:25 ` Frick-David
2020-12-04 19:13 ` Frick-David
2020-12-04 19:13 ` Frick-David
2020-12-14  0:39 ` Frick-David [this message]
2020-12-14  0:39 ` Frick-David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201214003909.B2x8_-7_roIYaomtck_dFKO_4p7BasDkskOd2Ek3ak0@z \
    --to=frick-david@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).