Commit e916df2d authored by Robert Schütz's avatar Robert Schütz
Browse files
parent c3a1450f
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "colorlog";
  version = "6.9.0";
  version = "6.10.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-v7pUobk7lPVOH0/kg5VyWj2S/SpK9wL2vXCUa9wMasI=";
  src = fetchFromGitHub {
    owner = "borntyping";
    repo = "python-colorlog";
    tag = "v${version}";
    hash = "sha256-vb7OzIVcEIfnhJGpO0DgeEdhL6NCKlrynoNMxNp8Yg4=";
  };

  build-system = [ setuptools ];
@@ -22,10 +24,11 @@ buildPythonPackage rec {

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
  meta = {
    changelog = "https://github.com/borntyping/python-colorlog/releases/tag/${src.tag}";
    description = "Log formatting with colors";
    homepage = "https://github.com/borntyping/python-colorlog";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}