nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 780 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "colorlog"; 11 version = "6.10.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "borntyping"; 16 repo = "python-colorlog"; 17 tag = "v${version}"; 18 hash = "sha256-vb7OzIVcEIfnhJGpO0DgeEdhL6NCKlrynoNMxNp8Yg4="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 pythonImportsCheck = [ "colorlog" ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 meta = { 28 changelog = "https://github.com/borntyping/python-colorlog/releases/tag/${src.tag}"; 29 description = "Log formatting with colors"; 30 homepage = "https://github.com/borntyping/python-colorlog"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ dotlambda ]; 33 }; 34}