depot/third_party/nixpkgs/pkgs/development/python-modules/textual-dev/default.nix

59 lines
993 B
Nix
Raw Normal View History

{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, msgpack
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, textual
, time-machine
, typing-extensions
}:
buildPythonPackage rec {
pname = "textual-dev";
version = "1.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Textualize";
repo = "textual-dev";
rev = "refs/tags/v${version}";
hash = "sha256-l8InIStQD7rAHYr2/eA1+Z0goNZoO4t78eODYmwSOrA=";
};
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 ];
};
}