1{ lib, buildPythonPackage, fetchFromGitHub, pyusb }:
2
3buildPythonPackage rec {
4 pname = "blinkstick";
5 version = "unstable-2023-05-04";
6 format = "setuptools";
7
8 src = fetchFromGitHub {
9 owner = "arvydas";
10 repo = "blinkstick-python";
11 rev = "8140b9fa18a9ff4f0e9df8e70c073f41cb8f1d35";
12 hash = "sha256-9bc7TD/Ilc952ywLauFd0+3Lh64lQlYuDC1KG9eWDgs=";
13 };
14
15 propagatedBuildInputs = [ pyusb ];
16
17 # Project has no tests
18 doCheck = false;
19 pythonImportsCheck = [ "blinkstick" ];
20
21 meta = {
22 description = "Python package to control BlinkStick USB devices";
23 homepage = "https://github.com/arvydas/blinkstick-python";
24 license = lib.licenses.bsd3;
25 maintainers = with lib.maintainers; [ np perstark ];
26 };
27}