1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 click, 11 prompt-toolkit, 12 six, 13 14 # tests 15 pytest-cov-stub, 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "click-repl"; 21 version = "0.3.0"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "click-contrib"; 26 repo = "click-repl"; 27 tag = version; 28 hash = "sha256-xCT3w0DDY73dtDL5jbssXM05Zlr44OOcy4vexgHyWiE="; 29 }; 30 31 nativeBuildInputs = [ setuptools ]; 32 33 propagatedBuildInputs = [ 34 click 35 prompt-toolkit 36 six 37 ]; 38 39 nativeCheckInputs = [ 40 pytest-cov-stub 41 pytestCheckHook 42 ]; 43 44 meta = with lib; { 45 homepage = "https://github.com/click-contrib/click-repl"; 46 description = "Subcommand REPL for click apps"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ twey ]; 49 }; 50}