mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge pull request #304043 from fabaff/ansicolor-refactor
python312Packages.ansicolor: refactor
This commit is contained in:
commit
91ff44d5dd
@ -1,18 +1,35 @@
|
||||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansicolor";
|
||||
version = "0.3.2";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "numerodix";
|
||||
repo = "ansicolor";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-a/BAU42AfMR8C94GwmrLkvSvolFEjV0LbDypvS9UuOA=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "ansicolor" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/numerodix/ansicolor/";
|
||||
description = "A library to produce ansi color output and colored highlighting and diffing";
|
||||
homepage = "https://github.com/numerodix/ansicolor/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user