depot/third_party/nixpkgs/pkgs/development/python-modules/pubnub/default.nix
Default email 439a6efcab Project import generated by Copybara.
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
2021-02-24 18:30:23 +00:00

56 lines
1 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, cbor2
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, pytest-vcr
, pytest-asyncio
, requests
, six
}:
buildPythonPackage rec {
pname = "pubnub";
version = "4.8.0";
src = fetchFromGitHub {
owner = pname;
repo = "python";
rev = "v${version}";
sha256 = "16wjal95042kh5fxhvji0rwmw892pacqcnyms520mw15wcwilqir";
};
propagatedBuildInputs = [
cbor2
pycryptodomex
requests
six
];
checkInputs = [
aiohttp
pycryptodomex
pytest-asyncio
pytestCheckHook
pytest-vcr
];
# Some tests don't pass with recent releases of tornado/twisted
pytestFlagsArray = [
"--ignore tests/integrational"
"--ignore tests/manual/asyncio"
"--ignore tests/manual/tornado/test_reconnections.py"
];
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 ];
};
}