depot/third_party/nixpkgs/pkgs/development/python-modules/enlighten/default.nix
Default email 871149a62e Project import generated by Copybara.
GitOrigin-RevId: 7f9b6e2babf232412682c09e57ed666d8f84ac2d
2022-02-21 09:47:16 +01:00

50 lines
1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, blessed
, prefixed
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "enlighten";
version = "1.10.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-eluDzQ9NCV5Z2Axkjrtff/ygzYvPeuZjmCjuGtAAYyo=";
};
propagatedBuildInputs = [
blessed
prefixed
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"enlighten"
];
disabledTests = [
# AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not...
"test_init"
] ++ lib.optional stdenv.isDarwin [
# https://github.com/Rockhopper-Technologies/enlighten/issues/44
"test_autorefresh"
];
meta = with lib; {
description = "Enlighten Progress Bar for Python Console Apps";
homepage = "https://github.com/Rockhopper-Technologies/enlighten";
license = with licenses; [ mpl20 ];
maintainers = with maintainers; [ veprbl ];
};
}