2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, cbor2
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pycryptodomex
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-vcr
|
|
|
|
, pytest-asyncio
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pubnub";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "5.1.4";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "python";
|
|
|
|
rev = "v${version}";
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "sha256-aDmmF3T5v6NX3kut7cydEJNRw4mkrGt4X0+WOm/ZCVo=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-04-08 16:26:57 +00:00
|
|
|
aiohttp
|
2021-02-05 17:12:51 +00:00
|
|
|
cbor2
|
|
|
|
pycryptodomex
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-vcr
|
|
|
|
];
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
# Some tests don't pass with recent releases of twisted
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/integrational"
|
|
|
|
"tests/manual/asyncio"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pubnub" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python-based APIs for PubNub";
|
|
|
|
homepage = "https://github.com/pubnub/python";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|