Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, poetry-core 6, prompt-toolkit 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "questionary"; 13 version = "unstable-2022-07-27"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "tmbo"; 20 repo = pname; 21 rev = "848b040c5b7086ffe75bd92c656e15e94d905146"; 22 hash = "sha256-W0d1Uoy5JdN3BFfeyk1GG0HBzmgKoBApaGad0UykZaY="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 prompt-toolkit 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 preCheck = lib.optionalString stdenv.isDarwin '' 38 ulimit -n 1024 39 ''; 40 41 disabledTests = [ 42 # RuntimeError: no running event loop 43 "test_blank_line_fix" 44 ]; 45 46 pythonImportsCheck = [ 47 "questionary" 48 ]; 49 50 meta = with lib; { 51 description = "Python library to build command line user prompts"; 52 homepage = "https://github.com/tmbo/questionary"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}