lol

Merge pull request #304043 from fabaff/ansicolor-refactor

python312Packages.ansicolor: refactor

authored by

Fabian Affolter and committed by
GitHub
91ff44d5 f841100d

+23 -6
+23 -6
pkgs/development/python-modules/ansicolor/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + pytestCheckHook, 6 + pythonOlder, 7 + setuptools, 8 + }: 2 9 3 10 buildPythonPackage rec { 4 11 pname = "ansicolor"; 5 12 version = "0.3.2"; 6 - format = "setuptools"; 13 + pyproject = true; 14 + 15 + disabled = pythonOlder "3.7"; 7 16 8 - src = fetchPypi { 9 - inherit pname version; 10 - sha256 = "3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279"; 17 + src = fetchFromGitHub { 18 + owner = "numerodix"; 19 + repo = "ansicolor"; 20 + rev = "refs/tags/${version}"; 21 + hash = "sha256-a/BAU42AfMR8C94GwmrLkvSvolFEjV0LbDypvS9UuOA="; 11 22 }; 12 23 24 + build-system = [ setuptools ]; 25 + 26 + nativeCheckInputs = [ pytestCheckHook ]; 27 + 28 + pythonImportsCheck = [ "ansicolor" ]; 29 + 13 30 meta = with lib; { 31 + description = "A library to produce ansi color output and colored highlighting and diffing"; 14 32 homepage = "https://github.com/numerodix/ansicolor/"; 15 - description = "A library to produce ansi color output and colored highlighting and diffing"; 16 33 license = licenses.asl20; 17 34 maintainers = with maintainers; [ ]; 18 35 };