1{ lib
2, stdenv
3, buildPythonPackage
4, fetchFromGitiles
5, six
6, python
7}:
8
9buildPythonPackage {
10 pname = "gyp";
11 version = "unstable-2022-04-01";
12
13 src = fetchFromGitiles {
14 url = "https://chromium.googlesource.com/external/gyp";
15 rev = "9ecf45e37677743503342ee4c6a76eaee80e4a7f";
16 hash = "sha256-LUlF2VhRnuDwJLdITgmXIQV/IuKdx1KXQkiPVHKrl4Q=";
17 };
18
19 patches = lib.optionals stdenv.isDarwin [
20 ./no-darwin-cflags.patch
21 ./no-xcode.patch
22 ];
23
24 propagatedBuildInputs = [
25 six
26 ];
27
28 pythonImportsCheck = [ "gyp" "gyp.generator" ];
29
30 meta = with lib; {
31 description = "A tool to generate native build files";
32 homepage = "https://gyp.gsrc.io";
33 license = licenses.bsd3;
34 maintainers = with maintainers; [ codyopel ];
35 };
36}