Merge pull request #112279 from fabaff/bump-blinkstick

python3Packages.blinkstick: 1.1.8 -> 1.2.0
This commit is contained in:
Sandro 2021-02-10 14:33:03 +01:00 committed by GitHub
commit 6c5af0cb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +1,34 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pyusb }: { lib
, buildPythonPackage
, fetchPypi
, pyusb
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "BlinkStick"; pname = "BlinkStick";
version = "1.1.8"; version = "1.2.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408"; sha256 = "0rdk3i81s6byw23za0bxvkh7sj5l16qxxgc2c53qjg3klc24wcm9";
}; };
patches = [ # Upstream fix https://github.com/arvydas/blinkstick-python/pull/54
(fetchpatch { # https://github.com/arvydas/blinkstick-python/pull/54/commits/b9bee2cd72f799f1210e5d9e13207f93bbc2d244.patch
url = "https://github.com/arvydas/blinkstick-python/commit/a9227d0.patch"; # has line ending issues after 1.2.0
sha256 = "1mcmxlnkbfxwp84qz32l5rlc7r9anh9yhnqaj1y8rny5s13jb01f"; postPatch = ''
}) substituteInPlace setup.py --replace "pyusb==1.0.0" "pyusb>=1.0.0"
(fetchpatch { '';
url = "https://github.com/arvydas/blinkstick-python/pull/54.patch";
sha256 = "1gjq6xbai794bbdyrv82i96l1a7qkwvlhzd6sa937dy5ivv6s6hl";
})
];
propagatedBuildInputs = [ pyusb ]; propagatedBuildInputs = [ pyusb ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "blinkstick" ];
meta = with lib; { meta = with lib; {
description = "Python package to control BlinkStick USB devices"; description = "Python package to control BlinkStick USB devices";
homepage = "https://pypi.python.org/pypi/BlinkStick/"; homepage = "https://github.com/arvydas/blinkstick-python";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ np ]; maintainers = with maintainers; [ np ];
}; };