7bd65d54f7
While looking at the sphinx package I noticed it was heavily undermaintained, which is when we noticed nand0p has been inactive for roughly 18 months. It is therefore prudent to assume they will not be maintaining their packages, modules and tests. - Their last contribution to nixpkgs was in 2019/12 - On 2021/05/08 I wrote them an email to the address listed in the maintainer-list, which they didn't reply to.
78 lines
1.2 KiB
Nix
78 lines
1.2 KiB
Nix
{ lib
|
|
, argon2_cffi
|
|
, attrs
|
|
, buildPythonPackage
|
|
, cbor
|
|
, cbor2
|
|
, cffi
|
|
, cryptography
|
|
, fetchPypi
|
|
, flatbuffers
|
|
, mock
|
|
, msgpack
|
|
, passlib
|
|
, pynacl
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, twisted
|
|
, py-ubjson
|
|
, txaio
|
|
, ujson
|
|
, zope_interface
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "autobahn";
|
|
version = "21.3.1";
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "00wf9dkfgakg80gy62prg650lb8zz9y9fdlxwxcznwp8hgsw29p1";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
argon2_cffi
|
|
cbor
|
|
cbor2
|
|
cffi
|
|
cryptography
|
|
flatbuffers
|
|
msgpack
|
|
passlib
|
|
py-ubjson
|
|
pynacl
|
|
twisted
|
|
txaio
|
|
ujson
|
|
zope_interface
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
|
'';
|
|
|
|
preCheck = ''
|
|
# Run asyncio tests (requires twisted)
|
|
export USE_ASYNCIO=1
|
|
'';
|
|
|
|
pytestFlagsArray = [ "--pyargs autobahn" ];
|
|
|
|
pythonImportsCheck = [ "autobahn" ];
|
|
|
|
meta = with lib; {
|
|
description = "WebSocket and WAMP in Python for Twisted and asyncio";
|
|
homepage = "https://crossbar.io/autobahn";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|