Merge pull request #169292 from fabaff/webthing-fix
python3Packages.pyee: add missing dependency
This commit is contained in:
commit
eeefd01d4f
6 changed files with 50 additions and 19 deletions
|
@ -7,6 +7,7 @@
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, aiosqlite
|
, aiosqlite
|
||||||
, databases
|
, databases
|
||||||
|
, fetchpatch
|
||||||
, flask
|
, flask
|
||||||
, httpx
|
, httpx
|
||||||
, passlib
|
, passlib
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fastapi";
|
pname = "fastapi";
|
||||||
version = "0.75.1";
|
version = "0.75.2";
|
||||||
format = "flit";
|
format = "flit";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
@ -28,7 +29,7 @@ buildPythonPackage rec {
|
||||||
owner = "tiangolo";
|
owner = "tiangolo";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-tSZ5isMzDhDsuVNQdoYXG0IYkgCvdVdARtFXELNjTtk=";
|
hash = "sha256-B4q3Q256Sj4jTQt1TDm3fiEaQKdVxddCF9+KsxkkTWo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -50,6 +51,16 @@ buildPythonPackage rec {
|
||||||
trio
|
trio
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-later-starlette.patch";
|
||||||
|
# PR contains multiple commits
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch";
|
||||||
|
sha256 = "sha256-ZWaqAd/QYEYRL1hSQdXdFPgWgdmOill2GtmEn33vz2U=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace "starlette ==" "starlette >="
|
--replace "starlette ==" "starlette >="
|
||||||
|
@ -70,10 +81,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_get_custom_response"
|
"test_get_custom_response"
|
||||||
|
|
||||||
# Failed: DID NOT RAISE <class 'starlette.websockets.WebSocketDisconnect'>
|
# Failed: DID NOT RAISE <class 'starlette.websockets.WebSocketDisconnect'>
|
||||||
"test_websocket_invalid_data"
|
"test_websocket_invalid_data"
|
||||||
"test_websocket_no_credentials"
|
"test_websocket_no_credentials"
|
||||||
|
# TypeError: __init__() missing 1...starlette-releated
|
||||||
|
"test_head"
|
||||||
|
"test_options"
|
||||||
|
"test_trace"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
|
@ -8,19 +8,18 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mypy-boto3-s3";
|
pname = "mypy-boto3-s3";
|
||||||
version = "1.21.27.post1";
|
version = "1.21.34";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-LPc7ejocoSEtVaSW2Iye9EQiMrY4YU91bYSa4F3NRlg=";
|
hash = "sha256-gXvMC+GZknL+jYG9ZQD1/dqRhMwXrZvXG8CvCFYxdco=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
boto3
|
boto3
|
||||||
] ++ lib.optionals (pythonOlder "3.9") [
|
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,8 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'SQLAlchemy = ">=1.3.18,<=1.4.29"' 'SQLAlchemy = ">=1.3.18"' \
|
--replace 'SQLAlchemy = ">=1.3.18,<=1.4.31"' 'SQLAlchemy = ">=1.3.18"' \
|
||||||
--replace 'databases = ">=0.3.2,!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,<0.5.5"' 'databases = ">=0.5.5"'
|
--replace 'databases = ">=0.3.2,!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,<=0.5.5"' 'databases = ">=0.5.5"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
@ -84,8 +84,8 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/collerek/ormar";
|
|
||||||
description = "Async ORM with fastapi in mind and pydantic validation";
|
description = "Async ORM with fastapi in mind and pydantic validation";
|
||||||
|
homepage = "https://github.com/collerek/ormar";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ andreasfelix ];
|
maintainers = with maintainers; [ andreasfelix ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,30 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, vcversioner
|
|
||||||
, mock
|
, mock
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-trio
|
, pytest-trio
|
||||||
, twisted
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, twisted
|
||||||
|
, typing-extensions
|
||||||
|
, vcversioner
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyee";
|
pname = "pyee";
|
||||||
version = "9.0.4";
|
version = "9.0.4";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-J3DEkoq8ch9GtwXmpysMWUgMSmnJqDygsAu5lPHqSzI=";
|
hash = "sha256-J3DEkoq8ch9GtwXmpysMWUgMSmnJqDygsAu5lPHqSzI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
vcversioner
|
vcversioner
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
mock
|
mock
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
@ -33,7 +39,9 @@ buildPythonPackage rec {
|
||||||
twisted
|
twisted
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyee" ];
|
pythonImportsCheck = [
|
||||||
|
"pyee"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A port of Node.js's EventEmitter to Python";
|
description = "A port of Node.js's EventEmitter to Python";
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, appdirs
|
, appdirs
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, certifi
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyppeteer";
|
pname = "pyppeteer";
|
||||||
version = "0.2.6";
|
version = "1.0.2";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
@ -25,7 +26,7 @@ buildPythonPackage rec {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-mMFQp8GMjKUc3yyB4c8Tgxut7LkMFa2cySO3iSA/aI4=";
|
sha256 = "sha256-izMaWtJdkLHMQbyq7o7n46xB8dOHXZ5uO0UXt+twjL4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -34,6 +35,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
appdirs
|
appdirs
|
||||||
|
certifi
|
||||||
importlib-metadata
|
importlib-metadata
|
||||||
pyee
|
pyee
|
||||||
tqdm
|
tqdm
|
||||||
|
@ -49,6 +51,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'pyee = "^8.1.0"' 'pyee = "*"' \
|
||||||
--replace 'websockets = "^9.1"' 'websockets = "*"'
|
--replace 'websockets = "^9.1"' 'websockets = "*"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
, ifaddr
|
, ifaddr
|
||||||
, jsonschema
|
, jsonschema
|
||||||
, pyee
|
, pyee
|
||||||
|
, pythonOlder
|
||||||
, tornado
|
, tornado
|
||||||
, zeroconf
|
, zeroconf
|
||||||
}:
|
}:
|
||||||
|
@ -11,12 +12,15 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "webthing";
|
pname = "webthing";
|
||||||
version = "0.15.0";
|
version = "0.15.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "WebThingsIO";
|
owner = "WebThingsIO";
|
||||||
repo = "webthing-python";
|
repo = "webthing-python";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "06264rwchy4qmbn7lv7m00qg864y7aw3rngcqqcr9nvaqz4rb0fg";
|
hash = "sha256-z4GVycdq25QZxuzZPLg6nhj0MAD1bHrsqph4yHgmRhg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -27,9 +31,12 @@ buildPythonPackage rec {
|
||||||
zeroconf
|
zeroconf
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests are present
|
# No tests are present
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "webthing" ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"webthing"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python implementation of a Web Thing server";
|
description = "Python implementation of a Web Thing server";
|
||||||
|
|
Loading…
Reference in a new issue