nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 50 lines 1.0 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, blessed 6, prefixed 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "enlighten"; 13 version = "1.10.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-eluDzQ9NCV5Z2Axkjrtff/ygzYvPeuZjmCjuGtAAYyo="; 21 }; 22 23 propagatedBuildInputs = [ 24 blessed 25 prefixed 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ 33 "enlighten" 34 ]; 35 36 disabledTests = [ 37 # AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not... 38 "test_init" 39 ] ++ lib.optional stdenv.isDarwin [ 40 # https://github.com/Rockhopper-Technologies/enlighten/issues/44 41 "test_autorefresh" 42 ]; 43 44 meta = with lib; { 45 description = "Enlighten Progress Bar for Python Console Apps"; 46 homepage = "https://github.com/Rockhopper-Technologies/enlighten"; 47 license = with licenses; [ mpl20 ]; 48 maintainers = with maintainers; [ veprbl ]; 49 }; 50}