mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 15:34:05 +00:00
Merge pull request #225558 from panicgh/asyncua
python3Packages.asyncua: 1.0.1 -> 1.0.2
This commit is contained in:
commit
3e8bb101f4
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user