Merge pull request #225558 from panicgh/asyncua

python3Packages.asyncua: 1.0.1 -> 1.0.2
This commit is contained in:
Nick Cao 2023-04-12 10:47:22 +08:00 committed by GitHub
commit 3e8bb101f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@
buildPythonPackage rec {
pname = "asyncua";
version = "1.0.1";
version = "1.0.2";
format = "setuptools";
disabled = pythonOlder "3.8";
@ -25,13 +25,19 @@ buildPythonPackage rec {
owner = "FreeOpcUa";
repo = "opcua-asyncio";
rev = "refs/tags/v${version}";
hash = "sha256-6A4z+tiQ2oUlB9t44wlW64j5sjWFMAgqT3Xt0FdJCBs=";
hash = "sha256-DnBxR4nD3dBBhiElDuRgljHaoBPiakdjY/VFn3VsKEQ=";
fetchSubmodules = true;
};
postPatch = ''
# https://github.com/FreeOpcUa/opcua-asyncio/issues/1263
substituteInPlace setup.py \
--replace ", 'asynctest'" ""
# Workaround hardcoded paths in test
# "test_cli_tools_which_require_sigint"
substituteInPlace tests/test_tools.py \
--replace "tools/" "$out/bin/"
'';
propagatedBuildInputs = [
@ -54,11 +60,6 @@ buildPythonPackage rec {
"asyncua"
];
disabledTests = [
# Hard coded path only works from root of src
"test_cli_tools_which_require_sigint"
];
meta = with lib; {
description = "OPC UA / IEC 62541 Client and Server for Python";
homepage = "https://github.com/FreeOpcUa/opcua-asyncio";