depot/third_party/nixpkgs/pkgs/development/python-modules/pyloggermanager/default.nix

37 lines
865 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
pycolorecho,
}:
buildPythonPackage rec {
pname = "pyloggermanager";
version = "0.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "coldsofttech";
repo = "pyloggermanager";
rev = version;
hash = "sha256-1hfcmMLH2d71EV71ExKqjZ7TMcqVd1AQrEwJhmEWOVU=";
};
build-system = [ setuptools ];
dependencies = [ pycolorecho ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyloggermanager" ];
meta = {
description = "Logging framework for Python applications";
homepage = "https://github.com/coldsofttech/pyloggermanager";
changelog = "https://github.com/coldsofttech/pyloggermanager/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ShamrockLee ];
};
}