mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
python3Packages.asyncua: init at 1.0.0
This commit is contained in:
parent
8db9c4ed3f
commit
88707c9dc7
66
pkgs/development/python-modules/asyncua/default.nix
Normal file
66
pkgs/development/python-modules/asyncua/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, aiosqlite
|
||||||
|
, aiofiles
|
||||||
|
, pytz
|
||||||
|
, python-dateutil
|
||||||
|
, sortedcontainers
|
||||||
|
, cryptography
|
||||||
|
, typing-extensions
|
||||||
|
, importlib-metadata
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-mock
|
||||||
|
, asynctest
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "asyncua";
|
||||||
|
version = "1.0.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "FreeOpcUa";
|
||||||
|
repo = "opcua-asyncio";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-wBtI3ZlsvOkNvl/q0X9cm2hNRUBW1oB/kZOo8lqo4dQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiosqlite
|
||||||
|
aiofiles
|
||||||
|
pytz
|
||||||
|
python-dateutil
|
||||||
|
sortedcontainers
|
||||||
|
cryptography
|
||||||
|
typing-extensions
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
importlib-metadata
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"asyncua"
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-mock
|
||||||
|
asynctest
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_cli_tools_which_require_sigint" # Hard coded path only works from root of src
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "OPC UA / IEC 62541 Client and Server for Python";
|
||||||
|
homepage = "https://github.com/FreeOpcUa/opcua-asyncio";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
maintainers = with maintainers; [ harvidsen ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -700,6 +700,8 @@ self: super: with self; {
|
||||||
|
|
||||||
async-timeout = callPackage ../development/python-modules/async_timeout { };
|
async-timeout = callPackage ../development/python-modules/async_timeout { };
|
||||||
|
|
||||||
|
asyncua = callPackage ../development/python-modules/asyncua { };
|
||||||
|
|
||||||
async-upnp-client = callPackage ../development/python-modules/async-upnp-client { };
|
async-upnp-client = callPackage ../development/python-modules/async-upnp-client { };
|
||||||
|
|
||||||
asyncwhois = callPackage ../development/python-modules/asyncwhois { };
|
asyncwhois = callPackage ../development/python-modules/asyncwhois { };
|
||||||
|
|
Loading…
Reference in a new issue