1{ lib, stdenv
2, buildPythonPackage
3, fetchFromGitiles
4}:
5
6buildPythonPackage {
7 pname = "gyp";
8 version = "2020-05-12";
9
10 src = fetchFromGitiles {
11 url = "https://chromium.googlesource.com/external/gyp";
12 rev = "caa60026e223fc501e8b337fd5086ece4028b1c6";
13 sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b";
14 };
15
16 patches = lib.optionals stdenv.isDarwin [
17 ./no-darwin-cflags.patch
18 ./no-xcode.patch
19 ];
20
21 meta = with lib; {
22 description = "A tool to generate native build files";
23 homepage = "https://chromium.googlesource.com/external/gyp/+/master/README.md";
24 license = licenses.bsd3;
25 maintainers = with maintainers; [ codyopel ];
26 };
27
28}