mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
Merge pull request #246177 from perstarkse/fix/blinkstick
python3Packages.blinkstick: blinkstick: 1.2.0 -> unstable-2023-05-04
This commit is contained in:
commit
21735d31cf
@ -13674,6 +13674,12 @@
|
||||
githubId = 152312;
|
||||
name = "Periklis Tsirakidis";
|
||||
};
|
||||
perstark = {
|
||||
email = "perstark.se@gmail.com";
|
||||
github = "perstarkse";
|
||||
githubId = 63069986;
|
||||
name = "Per Stark";
|
||||
};
|
||||
petercommand = {
|
||||
email = "petercommand@gmail.com";
|
||||
github = "petercommand";
|
||||
|
@ -1,35 +1,27 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pyusb
|
||||
}:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pyusb }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blinkstick";
|
||||
version = "1.2.0";
|
||||
version = "unstable-2023-05-04";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rdk3i81s6byw23za0bxvkh7sj5l16qxxgc2c53qjg3klc24wcm9";
|
||||
src = fetchFromGitHub {
|
||||
owner = "arvydas";
|
||||
repo = "blinkstick-python";
|
||||
rev = "8140b9fa18a9ff4f0e9df8e70c073f41cb8f1d35";
|
||||
hash = "sha256-9bc7TD/Ilc952ywLauFd0+3Lh64lQlYuDC1KG9eWDgs=";
|
||||
};
|
||||
|
||||
# Upstream fix https://github.com/arvydas/blinkstick-python/pull/54
|
||||
# https://github.com/arvydas/blinkstick-python/pull/54/commits/b9bee2cd72f799f1210e5d9e13207f93bbc2d244.patch
|
||||
# has line ending issues after 1.2.0
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "pyusb==1.0.0" "pyusb>=1.0.0"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pyusb ];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "blinkstick" ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Python package to control BlinkStick USB devices";
|
||||
homepage = "https://github.com/arvydas/blinkstick-python";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ np ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ np perstark ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user