python3Packages.textual: init at 0.1.15

This commit is contained in:
Joel 2022-03-01 16:47:14 +10:00
parent 13e74fc7ff
commit 680773a773
No known key found for this signature in database
GPG Key ID: 18550BD205E9EF64
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, rich
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "textual";
version = "0.1.15";
format = "pyproject";
src = fetchFromGitHub {
owner = "Textualize";
repo = pname;
rev = "v${version}";
sha256 = "1jmjais0yq8dwi9yikgrxdw4rwp8aq1981nhfxn0v97jb07i4cj6";
};
patches = [
(fetchpatch {
# v0.1.15 git tag has 0.1.14 in pyproject.toml
name = "version.patch";
url = "https://github.com/Textualize/textual/commit/1b8d7d184e10889002425641222702afba508aea.patch";
sha256 = "1nfqp5f8ba3fg0ar3lghrlqypbjbsaywxaz3iiff8fy8j2wgsppp";
})
];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
rich
typing-extensions
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "textual" ];
meta = with lib; {
description = "TUI framework for Python inspired by modern web development";
homepage = "https://github.com/Textualize/textual";
license = licenses.mit;
maintainers = with maintainers; [ jyooru ];
};
}

View File

@ -9838,6 +9838,8 @@ in {
textile = callPackage ../development/python-modules/textile { };
textual = callPackage ../development/python-modules/textual { };
testing-common-database = callPackage ../development/python-modules/testing-common-database { };
testing-postgresql = callPackage ../development/python-modules/testing-postgresql { };