depot/third_party/nixpkgs/pkgs/development/python-modules/enlighten/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

37 lines
833 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, blessed
, prefixed
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "enlighten";
version = "1.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "7a5b83cd0f4d095e59d80c648ebb5f7ffca0cd8bcf7ae6639828ee1ad000632a";
};
propagatedBuildInputs = [
blessed
prefixed
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "enlighten" ];
disabledTests =
# https://github.com/Rockhopper-Technologies/enlighten/issues/44
lib.optional stdenv.isDarwin "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 ];
};
}