Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aniso8601, 4 buildPythonPackage, 5 fetchFromGitHub, 6 setuptools, 7 graphql-core, 8 graphql-relay, 9 pytest-asyncio, 10 pytest-benchmark, 11 pytest-mock, 12 pytest7CheckHook, 13 pythonOlder, 14 pytz, 15 snapshottest, 16}: 17 18buildPythonPackage rec { 19 pname = "graphene"; 20 version = "3.3.0"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.6"; 24 25 src = fetchFromGitHub { 26 owner = "graphql-python"; 27 repo = "graphene"; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-DGxicCXZp9kW/OFkr0lAWaQ+GaECx+HD8+X4aW63vgQ="; 30 }; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 aniso8601 36 graphql-core 37 graphql-relay 38 ]; 39 40 # snaphottest->fastdiff->wasmer dependency chain does not support 3.12. 41 doCheck = pythonOlder "3.12"; 42 43 nativeCheckInputs = [ 44 pytest7CheckHook 45 pytest-asyncio 46 pytest-benchmark 47 pytest-mock 48 pytz 49 snapshottest 50 ]; 51 52 pytestFlagsArray = [ "--benchmark-disable" ]; 53 54 pythonImportsCheck = [ "graphene" ]; 55 56 meta = with lib; { 57 description = "GraphQL Framework for Python"; 58 homepage = "https://github.com/graphql-python/graphene"; 59 changelog = "https://github.com/graphql-python/graphene/releases/tag/v${version}"; 60 license = licenses.mit; 61 maintainers = [ ]; 62 }; 63}