pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / ge / get-graphql-schema / package.nix
blobfe6b35e9bcad981d20ceba0c576fa78ca57999ae
2   lib,
3   stdenv,
4   fetchYarnDeps,
5   fetchFromGitHub,
6   nodejs,
7   yarnConfigHook,
8   yarnBuildHook,
9   npmHooks,
11 stdenv.mkDerivation (finalAttrs: {
12   pname = "get-graphql-schema";
13   version = "2.1.1";
15   src = fetchFromGitHub {
16     owner = "prisma-labs";
17     repo = "get-graphql-schema";
18     rev = "v${finalAttrs.version}";
19     hash = "sha256-ujc0LGAqmo4SmItm4VcbBOtmUvL6aV1ppMm4fMmuSRs=";
20   };
22   yarnOfflineCache = fetchYarnDeps {
23     yarnLock = "${finalAttrs.src}/yarn.lock";
24     hash = "sha256-TZGNX8UHbolLyBmQNGTnFjgx3/3f2HNVQf/h9rIVJKs=";
25   };
27   nativeBuildInputs = [
28     yarnConfigHook
29     yarnBuildHook
30     npmHooks.npmInstallHook
31     nodejs
32   ];
34   meta = {
35     description = "Fetch and print the GraphQL schema from a GraphQL HTTP endpoint.";
36     homepage = "https://github.com/prisma-labs/get-graphql-schema";
37     license = lib.licenses.mit;
38     mainProgram = "get-graphql-schema";
39     maintainers = with lib.maintainers; [ pyrox0 ];
40   };