1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 poetry-core, 8 9 # nativeCheckInputs 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 # NOTE that this is not https://pypi.org/project/yakh/ 15 pname = "python-yakh"; 16 version = "0.4.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "petereon"; 21 repo = "yakh"; 22 rev = "v${version}"; 23 hash = "sha256-mXG0fit+0MLOkn2ezRzLboDGKxkES/T7kyWAfaF0EQQ="; 24 }; 25 26 build-system = [ 27 poetry-core 28 ]; 29 30 pythonImportsCheck = [ 31 "yakh" 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 meta = { 39 description = "Yet Another Keypress Handler"; 40 homepage = "https://pypi.org/project/python-yakh"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ doronbehar ]; 43 }; 44}