diff options
author | OTABI Tomoya <tomoya.otabi@gmail.com> | 2023-11-17 10:37:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 10:37:24 +0900 |
commit | 66e69121e19cfe78a58aa684058de56725474a2e (patch) | |
tree | 73bb2598587ecea64a64fc7da926559e8b402484 /pkgs/development | |
parent | 9a3ad14c26be410bdb355fe1406c0f54491011be (diff) | |
parent | f6df515b34b210b51f74cc8e53a92000d995d85c (diff) |
Merge pull request #267542 from YanniPapandreou/master
python311Packages.textual-dev: init at 1.2.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/textual-dev/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/textual-dev/default.nix b/pkgs/development/python-modules/textual-dev/default.nix new file mode 100644 index 0000000000000..16b77ffabc472 --- /dev/null +++ b/pkgs/development/python-modules/textual-dev/default.nix @@ -0,0 +1,59 @@ +{ lib +, aiohttp +, buildPythonPackage +, click +, fetchFromGitHub +, msgpack +, poetry-core +, pytest-aiohttp +, pytestCheckHook +, pythonOlder +, textual +, time-machine +, typing-extensions +}: + +buildPythonPackage rec { + pname = "textual-dev"; + version = "1.2.1"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Textualize"; + repo = "textual-dev"; + # we use rev instead of tag since upstream doesn't use tags + rev = "6afa9013a42cb18e9105e49d6a56874097f7c812"; + hash = "sha256-ef35389ZMU/zih7Se3KkMGECf5o2i5y6up64/1AECas="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + click + msgpack + textual + typing-extensions + ]; + + nativeCheckInputs = [ + pytest-aiohttp + pytestCheckHook + time-machine + ]; + + pythonImportsCheck = [ + "textual_dev" + ]; + + meta = with lib; { + description = "Development tools for Textual"; + homepage = "https://github.com/Textualize/textual-dev"; + license = licenses.mit; + maintainers = with maintainers; [ yannip ]; + }; +} |