linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pubnub / default.nix
blobc2f1a9fb34dd659d8ae016516996b73230096107
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , cbor2
5 , fetchFromGitHub
6 , pycryptodomex
7 , pytestCheckHook
8 , pytest-vcr
9 , pytest-asyncio
10 , requests
11 , six
14 buildPythonPackage rec {
15   pname = "pubnub";
16   version = "5.1.1";
18   src = fetchFromGitHub {
19     owner = pname;
20     repo = "python";
21     rev = "v${version}";
22     sha256 = "sha256-ir8f8A6XuN1ZQIYQbArChLzTlYu4ZKpkoOXQtSLOvKg=";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27     cbor2
28     pycryptodomex
29     requests
30     six
31   ];
33   checkInputs = [
34     pytest-asyncio
35     pytestCheckHook
36     pytest-vcr
37   ];
39   # Some tests don't pass with recent releases of twisted
40   disabledTestPaths = [
41     "tests/integrational"
42     "tests/manual/asyncio"
43   ];
45   pythonImportsCheck = [ "pubnub" ];
47   meta = with lib; {
48     description = "Python-based APIs for PubNub";
49     homepage = "https://github.com/pubnub/python";
50     license = with licenses; [ mit ];
51     maintainers = with maintainers; [ fab ];
52   };