2018-02-27 20:43:30 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pyusb }:
|
2018-02-27 20:41:08 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "BlinkStick";
|
|
|
|
version = "1.1.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408";
|
|
|
|
};
|
|
|
|
|
2018-02-27 20:43:30 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/arvydas/blinkstick-python/commit/a9227d0.patch";
|
2018-02-27 20:43:30 +00:00
|
|
|
sha256 = "1mcmxlnkbfxwp84qz32l5rlc7r9anh9yhnqaj1y8rny5s13jb01f";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://github.com/arvydas/blinkstick-python/pull/54.patch";
|
2018-02-27 20:43:30 +00:00
|
|
|
sha256 = "1gjq6xbai794bbdyrv82i96l1a7qkwvlhzd6sa937dy5ivv6s6hl";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-02-27 20:41:08 +00:00
|
|
|
propagatedBuildInputs = [ pyusb ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package to control BlinkStick USB devices";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/BlinkStick/";
|
2018-02-27 20:41:08 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ np ];
|
|
|
|
};
|
|
|
|
}
|