mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
python312Packages.textual-textarea: refactor
- enable tests - add changelog to meta
This commit is contained in:
parent
da277264a1
commit
201985dc66
@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
poetry-core,
|
poetry-core,
|
||||||
pyperclip,
|
pyperclip,
|
||||||
|
pytest-asyncio,
|
||||||
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
textual,
|
textual,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -12,28 +15,33 @@ buildPythonPackage rec {
|
|||||||
version = "0.14.4";
|
version = "0.14.4";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.8";
|
||||||
pname = "textual_textarea";
|
|
||||||
inherit version;
|
src = fetchFromGitHub {
|
||||||
hash = "sha256-VgSJF5sZQmuFRrhSF1Cs3iL1cCGzr8CLBkNVcEj7cxU=";
|
owner = "tconbeer";
|
||||||
|
repo = "textual-textarea";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-tmbSCU1VgxR9aXG22UVpweD71dVmhKSRBTDm1Gf33jM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [
|
build-system = [ poetry-core ];
|
||||||
poetry-core
|
|
||||||
];
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
pyperclip
|
pyperclip
|
||||||
textual
|
textual
|
||||||
|
] ++ textual.optional-dependencies.syntax;
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [ "textual_textarea" ];
|
||||||
"textual_textarea"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A text area (multi-line input) with syntax highlighting for Textual";
|
description = "A text area (multi-line input) with syntax highlighting for Textual";
|
||||||
homepage = "https://pypi.org/project/textual-textarea/";
|
homepage = "https://github.com/tconbeer/textual-textarea";
|
||||||
|
changelog = "https://github.com/tconbeer/textual-textarea/releases/tag/v${version}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ pcboy ];
|
maintainers = with lib.maintainers; [ pcboy ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user