diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2022-01-08 02:39:35 -0500 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2022-01-08 02:39:35 -0500 |
commit | 477540469ecaa78e0f5a90d6a2479a3e3a521f4e (patch) | |
tree | 6f3ed9257017a33cfd2e54cda2bf728b44f32097 /pkgs/development/python-modules/gql/default.nix | |
parent | fe00d45c50de7dc3a4fe3803f13b5b5119244d2f (diff) | |
parent | 97864e984d89248e74b13be175a1cfe9e16d984e (diff) | |
download | nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.tar nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.tar.gz nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.tar.bz2 nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.tar.lz nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.tar.xz nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.tar.zst nixpkgs-477540469ecaa78e0f5a90d6a2479a3e3a521f4e.zip |
Merge branch 'master' into staging-next
Conflicts: pkgs/development/python-modules/gradient-utils/default.nix pkgs/development/python-modules/gradient/default.nix
Diffstat (limited to 'pkgs/development/python-modules/gql/default.nix')
-rw-r--r-- | pkgs/development/python-modules/gql/default.nix | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gql/default.nix b/pkgs/development/python-modules/gql/default.nix new file mode 100644 index 00000000000..65e4bbde319 --- /dev/null +++ b/pkgs/development/python-modules/gql/default.nix @@ -0,0 +1,77 @@ +{ lib +, aiofiles +, aiohttp +, botocore +, buildPythonPackage +, fetchFromGitHub +, graphql-core +, mock +, parse +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, requests +, requests-toolbelt +, urllib3 +, vcrpy +, websockets +, yarl +}: + +buildPythonPackage rec { + pname = "gql"; + version = "3.0.0rc0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "graphql-python"; + repo = pname; + rev = "v${version}"; + hash = "sha256-yr1DyMj/0C9XPTyGdbQbn7nMRKr4JwItFDsqvl/goqU="; + }; + + propagatedBuildInputs = [ + aiohttp + botocore + graphql-core + requests + requests-toolbelt + urllib3 + websockets + yarl + ]; + + checkInputs = [ + aiofiles + mock + parse + pytest-asyncio + pytestCheckHook + vcrpy + ]; + + disabledTests = [ + # Tests requires network access + "test_execute_result_error" + "test_http_transport" + ]; + + disabledTestPaths = [ + # Exclude linter tests + "gql-checker/tests/test_flake8_linter.py" + "gql-checker/tests/test_pylama_linter.py" + ]; + + pythonImportsCheck = [ + "gql" + ]; + + meta = with lib; { + description = "GraphQL client in Python"; + homepage = "https://github.com/graphql-python/gql"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |