mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
Merge pull request #223519 from fabaff/asyncua-asynctest
python310Packages.asyncua: remove asynctest
This commit is contained in:
commit
c77f555be8
@ -1,19 +1,17 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aiosqlite
|
||||
, aiofiles
|
||||
, pytz
|
||||
, python-dateutil
|
||||
, sortedcontainers
|
||||
, aiosqlite
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, typing-extensions
|
||||
, importlib-metadata
|
||||
, pytestCheckHook
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, asynctest
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, sortedcontainers
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -21,15 +19,21 @@ buildPythonPackage rec {
|
||||
version = "1.0.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FreeOpcUa";
|
||||
repo = "opcua-asyncio";
|
||||
rev = "v${version}";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-6A4z+tiQ2oUlB9t44wlW64j5sjWFMAgqT3Xt0FdJCBs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/FreeOpcUa/opcua-asyncio/issues/1263
|
||||
substituteInPlace setup.py \
|
||||
--replace ", 'asynctest'" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiosqlite
|
||||
aiofiles
|
||||
@ -38,28 +42,27 @@ buildPythonPackage rec {
|
||||
sortedcontainers
|
||||
cryptography
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"asyncua"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
asynctest
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"asyncua"
|
||||
];
|
||||
|
||||
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; {
|
||||
description = "OPC UA / IEC 62541 Client and Server for Python";
|
||||
homepage = "https://github.com/FreeOpcUa/opcua-asyncio";
|
||||
changelog = "https://github.com/FreeOpcUa/opcua-asyncio/releases/tag/v${version}";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ harvidsen ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user