diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-16 18:49:21 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-16 18:49:21 +0100 |
commit | 7c1f97917f309a348e3383a49d9b4dc800db245b (patch) | |
tree | eb841d37618c8522ad4f393bd4d9755ef4f9b472 /pkgs/development/python-modules/pubnub | |
parent | 97b9ca2f1600ed65dd94568ed396f1a21b55b84e (diff) |
python3Packages.pubnub: init at 4.8.0
Diffstat (limited to 'pkgs/development/python-modules/pubnub')
-rw-r--r-- | pkgs/development/python-modules/pubnub/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pubnub/default.nix b/pkgs/development/python-modules/pubnub/default.nix new file mode 100644 index 0000000000000..e4bab25fd9c12 --- /dev/null +++ b/pkgs/development/python-modules/pubnub/default.nix @@ -0,0 +1,57 @@ +{ lib +, aiohttp +, buildPythonPackage +, cbor2 +, fetchFromGitHub +, pycryptodomex +, pytestCheckHook +, pyyaml +, 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 ]; + }; +} |