python310Packages.asyncua: remove asynctest
This commit is contained in:
parent
4e6d3feb56
commit
025027cb01
@ -1,19 +1,17 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchFromGitHub
|
|
||||||
, aiosqlite
|
|
||||||
, aiofiles
|
, aiofiles
|
||||||
, pytz
|
, aiosqlite
|
||||||
, python-dateutil
|
, buildPythonPackage
|
||||||
, sortedcontainers
|
|
||||||
, cryptography
|
, cryptography
|
||||||
, typing-extensions
|
, fetchFromGitHub
|
||||||
, importlib-metadata
|
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, asynctest
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, sortedcontainers
|
||||||
|
, typing-extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -21,7 +19,7 @@ buildPythonPackage rec {
|
|||||||
version = "1.0.1";
|
version = "1.0.1";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "FreeOpcUa";
|
owner = "FreeOpcUa";
|
||||||
@ -30,6 +28,12 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-6A4z+tiQ2oUlB9t44wlW64j5sjWFMAgqT3Xt0FdJCBs=";
|
hash = "sha256-6A4z+tiQ2oUlB9t44wlW64j5sjWFMAgqT3Xt0FdJCBs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# https://github.com/FreeOpcUa/opcua-asyncio/issues/1263
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace ", 'asynctest'" ""
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiosqlite
|
aiosqlite
|
||||||
aiofiles
|
aiofiles
|
||||||
@ -38,23 +42,21 @@ buildPythonPackage rec {
|
|||||||
sortedcontainers
|
sortedcontainers
|
||||||
cryptography
|
cryptography
|
||||||
typing-extensions
|
typing-extensions
|
||||||
] ++ lib.optionals (pythonOlder "3.8") [
|
|
||||||
importlib-metadata
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"asyncua"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-mock
|
pytest-mock
|
||||||
asynctest
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"asyncua"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_cli_tools_which_require_sigint" # Hard coded path only works from root of src
|
# Hard coded path only works from root of src
|
||||||
|
"test_cli_tools_which_require_sigint"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user