Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-xdist, 7 pytestCheckHook, 8 pythonOlder, 9 termcolor, 10}: 11 12buildPythonPackage rec { 13 pname = "yaspin"; 14 version = "3.0.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "pavdmyt"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-cYTCJyHZ9yNg6BfpZ+g3P0yMWFhYUxgYtlbANNgfohQ="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ termcolor ]; 29 30 nativeCheckInputs = [ 31 pytest-xdist 32 pytestCheckHook 33 ]; 34 35 # tests assert for \033 which gets turned off in termcolor when TERM dumb is used which is used by nix 36 preCheck = '' 37 export FORCE_COLOR=1 38 ''; 39 40 pythonImportsCheck = [ "yaspin" ]; 41 42 meta = with lib; { 43 description = "Yet Another Terminal Spinner"; 44 homepage = "https://github.com/pavdmyt/yaspin"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ samuela ]; 47 }; 48}