Skip to content

Commit

Permalink
python3Packages.textual: 0.1.15 -> 0.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed May 4, 2022
1 parent cbe587c commit 3f87b17
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions pkgs/development/python-modules/textual/default.nix
@@ -1,46 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, rich
, typing-extensions
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
pname = "textual";
version = "0.1.15";
version = "0.1.18";
format = "pyproject";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "Textualize";
repo = pname;
rev = "v${version}";
sha256 = "1jmjais0yq8dwi9yikgrxdw4rwp8aq1981nhfxn0v97jb07i4cj6";
sha256 = "sha256-XVmbt8r5HL8r64ISdJozmM+9HuyvqbpdejWICzFnfiw=";
};

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
];

nativeBuildInputs = [ poetry-core ];

propagatedBuildInputs = [
rich
] ++ lib.optionals (pythonOlder "3.9") [
typing-extensions
];

checkInputs = [
pytestCheckHook
];

pythonImportsCheck = [ "textual" ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'rich = "^12.3.0"' 'rich = "*"'
'';

pythonImportsCheck = [
"textual"
];

meta = with lib; {
description = "TUI framework for Python inspired by modern web development";
Expand Down

0 comments on commit 3f87b17

Please sign in to comment.