1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, nose 6, pyserial 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "pylacrosse"; 12 version = "0.4"; 13 14 src = fetchFromGitHub { 15 owner = "hthiery"; 16 repo = "python-lacrosse"; 17 rev = version; 18 sha256 = "0g5hqm8lq0gsnvhcydjk54rjf7lpxzph8k7w1nnvnqfbhf31xfcf"; 19 }; 20 21 propagatedBuildInputs = [ pyserial ]; 22 23 checkInputs = [ 24 mock 25 nose 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ "pylacrosse" ]; 30 31 meta = with lib; { 32 description = "Python library for Jeelink LaCrosse"; 33 homepage = "https://github.com/hthiery/python-lacrosse"; 34 license = with licenses; [ lgpl2Plus ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}