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-12-19 01:06:50 +00:00
|
|
|
version = "5.5.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = "python";
|
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "133sis24jd40yq4sgp8lmg2kac5wiiccisjpkhm50rb9wdbpn6kh";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|