mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.textual: init at 0.1.15
This commit is contained in:
parent
13e74fc7ff
commit
680773a773
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/textual/default.nix
Normal file
51
pkgs/development/python-modules/textual/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9838,6 +9838,8 @@ in {
|
||||||
|
|
||||||
textile = callPackage ../development/python-modules/textile { };
|
textile = callPackage ../development/python-modules/textile { };
|
||||||
|
|
||||||
|
textual = callPackage ../development/python-modules/textual { };
|
||||||
|
|
||||||
testing-common-database = callPackage ../development/python-modules/testing-common-database { };
|
testing-common-database = callPackage ../development/python-modules/testing-common-database { };
|
||||||
|
|
||||||
testing-postgresql = callPackage ../development/python-modules/testing-postgresql { };
|
testing-postgresql = callPackage ../development/python-modules/testing-postgresql { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue