forked from mirrors/nixpkgs
rich-cli: update override
This commit is contained in:
parent
39b16d6b3c
commit
b6df389ebb
|
@ -42,7 +42,9 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "rich" ];
|
pythonImportsCheck = [
|
||||||
|
"rich"
|
||||||
|
];
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
inherit enrich httpie rich-rst textual;
|
inherit enrich httpie rich-rst textual;
|
||||||
|
|
|
@ -4,31 +4,38 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python3.override {
|
py = python3.override {
|
||||||
packageOverrides = self: super: {
|
packageOverrides = final: prev: {
|
||||||
rich = super.rich.overrideAttrs (old: rec {
|
rich = prev.rich.overridePythonAttrs (old: rec {
|
||||||
version = "12.4.0";
|
version = "12.4.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Textualize";
|
owner = "Textualize";
|
||||||
repo = "rich";
|
repo = "rich";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v12.4.0";
|
||||||
hash = "sha256-ryJTusUNpvNF2031ICJWK8ScxHIh+LrXYg7nd0ph4aQ=";
|
hash = "sha256-ryJTusUNpvNF2031ICJWK8ScxHIh+LrXYg7nd0ph4aQ=";
|
||||||
};
|
};
|
||||||
|
propagatedBuildInputs = with py.pkgs; [
|
||||||
|
commonmark
|
||||||
|
pygments
|
||||||
|
];
|
||||||
|
doCheck = false;
|
||||||
});
|
});
|
||||||
textual = super.textual.overrideAttrs (old: rec {
|
|
||||||
|
textual = prev.textual.overridePythonAttrs (old: rec {
|
||||||
version = "0.1.18";
|
version = "0.1.18";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Textualize";
|
owner = "Textualize";
|
||||||
repo = "textual";
|
repo = "textual";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v0.1.18";
|
||||||
hash = "sha256-XVmbt8r5HL8r64ISdJozmM+9HuyvqbpdejWICzFnfiw=";
|
hash = "sha256-XVmbt8r5HL8r64ISdJozmM+9HuyvqbpdejWICzFnfiw=";
|
||||||
};
|
};
|
||||||
|
doCheck = false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
python.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "rich-cli";
|
pname = "rich-cli";
|
||||||
version = "1.8.0";
|
version = "1.8.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
@ -36,28 +43,28 @@ python.pkgs.buildPythonApplication rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Textualize";
|
owner = "Textualize";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ=";
|
hash = "sha256-mV5b/J9wX9niiYtlmAUouaAm9mY2zTtDmex7FNWcezQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python.pkgs; [
|
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [
|
|
||||||
rich
|
|
||||||
click
|
|
||||||
requests
|
|
||||||
textual
|
|
||||||
rich-rst
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'rich = "^12.4.0"' 'rich = "*"' \
|
--replace 'rich = "^12.4.0"' 'rich = "*"' \
|
||||||
--replace 'textual = "^0.1.18"' 'textual = "*"'
|
--replace 'textual = "^0.1.18"' 'textual = "*"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = with py.pkgs; [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with py.pkgs; [
|
||||||
|
rich
|
||||||
|
click
|
||||||
|
requests
|
||||||
|
textual
|
||||||
|
rich-rst
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"rich_cli"
|
"rich_cli"
|
||||||
];
|
];
|
||||||
|
@ -65,6 +72,7 @@ python.pkgs.buildPythonApplication rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command Line Interface to Rich";
|
description = "Command Line Interface to Rich";
|
||||||
homepage = "https://github.com/Textualize/rich-cli";
|
homepage = "https://github.com/Textualize/rich-cli";
|
||||||
|
changelog = "https://github.com/Textualize/rich-cli/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ joelkoen ];
|
maintainers = with maintainers; [ joelkoen ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue