lol

python3Packages.blinkstick: 1.1.8 -> 1.2.0

+18 -14
+18 -14
pkgs/development/python-modules/blinkstick/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, fetchpatch, pyusb }: 2 3 buildPythonPackage rec { 4 pname = "BlinkStick"; 5 - version = "1.1.8"; 6 7 src = fetchPypi { 8 inherit pname version; 9 - sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408"; 10 }; 11 12 - patches = [ 13 - (fetchpatch { 14 - url = "https://github.com/arvydas/blinkstick-python/commit/a9227d0.patch"; 15 - sha256 = "1mcmxlnkbfxwp84qz32l5rlc7r9anh9yhnqaj1y8rny5s13jb01f"; 16 - }) 17 - (fetchpatch { 18 - url = "https://github.com/arvydas/blinkstick-python/pull/54.patch"; 19 - sha256 = "1gjq6xbai794bbdyrv82i96l1a7qkwvlhzd6sa937dy5ivv6s6hl"; 20 - }) 21 - ]; 22 23 propagatedBuildInputs = [ pyusb ]; 24 25 meta = with lib; { 26 description = "Python package to control BlinkStick USB devices"; 27 - homepage = "https://pypi.python.org/pypi/BlinkStick/"; 28 license = licenses.bsd3; 29 maintainers = with maintainers; [ np ]; 30 };
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pyusb 5 + }: 6 7 buildPythonPackage rec { 8 pname = "BlinkStick"; 9 + version = "1.2.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 + sha256 = "0rdk3i81s6byw23za0bxvkh7sj5l16qxxgc2c53qjg3klc24wcm9"; 14 }; 15 16 + # Upstream fix https://github.com/arvydas/blinkstick-python/pull/54 17 + # https://github.com/arvydas/blinkstick-python/pull/54/commits/b9bee2cd72f799f1210e5d9e13207f93bbc2d244.patch 18 + # has line ending issues after 1.2.0 19 + postPatch = '' 20 + substituteInPlace setup.py --replace "pyusb==1.0.0" "pyusb>=1.0.0" 21 + ''; 22 23 propagatedBuildInputs = [ pyusb ]; 24 25 + # Project has no tests 26 + doCheck = false; 27 + pythonImportsCheck = [ "blinkstick" ]; 28 + 29 meta = with lib; { 30 description = "Python package to control BlinkStick USB devices"; 31 + homepage = "https://github.com/arvydas/blinkstick-python"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ np ]; 34 };