Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 53 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 blessed, 7 prefixed, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "enlighten"; 14 version = "1.13.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-7nGNqsaHPIP9Nwa8532kcsd2pR4Nb1+G9+YeJ/mtFmo="; 22 }; 23 24 propagatedBuildInputs = [ 25 blessed 26 prefixed 27 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "enlighten" ]; 32 33 disabledTests = 34 [ 35 # AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not... 36 "test_init" 37 # AssertionError: Invalid format specifier (deprecated since prefixed 0.4.0) 38 "test_floats_prefixed" 39 "test_subcounter_prefixed" 40 ] 41 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 42 # https://github.com/Rockhopper-Technologies/enlighten/issues/44 43 "test_autorefresh" 44 ]; 45 46 meta = with lib; { 47 description = "Enlighten Progress Bar for Python Console Apps"; 48 homepage = "https://github.com/Rockhopper-Technologies/enlighten"; 49 changelog = "https://github.com/Rockhopper-Technologies/enlighten/releases/tag/${version}"; 50 license = with licenses; [ mpl20 ]; 51 maintainers = with maintainers; [ veprbl ]; 52 }; 53}