8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
58 lines
1,003 B
Nix
58 lines
1,003 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, cbor2
|
|
, fetchFromGitHub
|
|
, pycryptodomex
|
|
, pytestCheckHook
|
|
, pytest-vcr
|
|
, pytest-asyncio
|
|
, requests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pubnub";
|
|
version = "6.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "python";
|
|
rev = "v${version}";
|
|
hash = "sha256-QOOPcWhhEqg7c0INQv88+eOP0povN8W4lLoaly9TGu0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
cbor2
|
|
pycryptodomex
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require network access
|
|
"tests/integrational"
|
|
"tests/manual"
|
|
"tests/functional/push"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|