Merge pull request #237113 from fabaff/typer-bump

python311Packages.typer: 0.7.0 -> 0.9.0
This commit is contained in:
Fabian Affolter 2023-06-14 09:04:09 +02:00 committed by GitHub
commit d2ad111310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 64 additions and 29 deletions

View File

@ -16,11 +16,18 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-dArR1z3wkGDd3Y1WHK0sLjhuaKHAcsx6cCH2rgVdUGs=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "mlflow-skinny>=1.28.0,<3.0.0" "mlflow" \
--replace "rich==12.6.0" "rich"
'';
pythonRelaxDeps = [
"rich"
"typer"
];
pythonRemoveDeps = [
"mlflow-skinny"
];
nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
];
propagatedBuildInputs = with python3.pkgs; [
aiohttp

View File

@ -16,8 +16,13 @@ buildPythonPackage rec {
hash = "sha256-z7LiAq2jLzqjg4Q/r9o7M6VbedeT34NyPpgctfqBp+8=";
};
pythonRelaxDeps = [
"typer"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [

View File

@ -5,10 +5,11 @@
, orjson
, pandas
, poetry-core
, pytestCheckHook
, pytest-mock
, pythonOlder
, pytestCheckHook
, python-dateutil
, pythonOlder
, pythonRelaxDepsHook
, requests
, typer
, websocket-client
@ -16,7 +17,7 @@
buildPythonPackage rec {
pname = "coinmetrics-api-client";
version = "2023.5.26.17";
version = "2023.6.8.20";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -26,11 +27,16 @@ buildPythonPackage rec {
src = fetchPypi {
inherit version;
pname = "coinmetrics_api_client";
hash = "sha256-GCHXraeH6WWTlCnw9B1Xwtb6jwcxcvW1siy2T/8x14Q=";
hash = "sha256-Koll0pod0vSW/F3veGTn8JYOMQI61REUW6Eh+TDJKNI=";
};
pythonRelaxDeps = [
"typer"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
@ -52,7 +58,9 @@ buildPythonPackage rec {
passthru = {
optional-dependencies = {
pandas = [ pandas ];
pandas = [
pandas
];
};
updateScript = nix-update-script { };
};

View File

@ -7,6 +7,7 @@
, pydantic
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, rstcheck-core
, typer
, types-docutils
@ -27,8 +28,13 @@ buildPythonPackage rec {
hash = "sha256-UMByfnnP1va3v1IgyQL0f3kC+W6HoiWScb7U2FAvWkU=";
};
pythonRelaxDeps = [
"typer"
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, blis
, buildPythonPackage
, callPackage
@ -17,6 +18,7 @@
, pytest
, python
, pythonOlder
, pythonRelaxDepsHook
, requests
, setuptools
, spacy-legacy
@ -28,7 +30,6 @@
, typing-extensions
, wasabi
, writeScript
, stdenv
, nix
, git
, nix-update
@ -36,16 +37,24 @@
buildPythonPackage rec {
pname = "spacy";
version = "3.5.2";
version = "3.5.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-IsH/qrKFt0dwA9S1sDhBTMMkaKaQ1HkBW5ppjFMcgTs=";
hash = "sha256-NZcdZyFXZTjWxCPGagnOAL9m4Q5AcmpXt6gZkxgMJIw=";
};
pythonRelaxDeps = [
"typer"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
blis
catalogue
@ -70,9 +79,7 @@ buildPythonPackage rec {
wasabi
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
];
postPatch = ''
]; postPatch = ''
substituteInPlace setup.cfg \
--replace "typer>=0.3.0,<0.5.0" "typer>=0.3.0"
'';
@ -82,6 +89,7 @@ buildPythonPackage rec {
];
doCheck = false;
checkPhase = ''
${python.interpreter} -m pytest spacy/tests --vectors --models --slow
'';

View File

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