python311Packages.typer: 0.7.0 -> 0.9.0
Changelog: https://github.com/tiangolo/typer/releases/tag/0.9.0
This commit is contained in:
@@ -1,43 +1,40 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, colorama
|
||||
, coverage
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, flit-core
|
||||
, click
|
||||
, pytest-sugar
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, rich
|
||||
, shellingham
|
||||
, pytest-xdist
|
||||
, pytest-sugar
|
||||
, coverage
|
||||
, pythonOlder
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "typer";
|
||||
version = "0.7.0";
|
||||
version = "0.9.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-/3l4RleKnyogG1NEKu3rVDMZRmhw++HHAeq2bddoEWU=";
|
||||
hash = "sha256-UJIv15rqL0dRqOBAj/ENJmK9DIu/qEdVppnzutopeLI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "rich >=10.11.0,<13.0.0" "rich"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
flit-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
@@ -58,7 +55,10 @@ buildPythonPackage rec {
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
'';
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
|
||||
disabledTests = [
|
||||
"test_scripts"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# likely related to https://github.com/sarugaku/shellingham/issues/35
|
||||
"test_show_completion"
|
||||
"test_install_completion"
|
||||
@@ -73,6 +73,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Library for building CLI applications";
|
||||
homepage = "https://typer.tiangolo.com/";
|
||||
changelog = "https://github.com/tiangolo/typer/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ winpat ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user