3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/gyp/default.nix
ajs124 6f77852ce9 pythonPackages.gyp: 2015-06-11 -> 2020-05-12
upstream doesn't do stable releases, but this seems to support python3 now
2020-07-20 14:52:22 +02:00

34 lines
873 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitiles
, isPy3k
}:
buildPythonPackage {
pname = "gyp";
version = "2020-05-12";
src = fetchFromGitiles {
url = "https://chromium.googlesource.com/external/gyp";
rev = "caa60026e223fc501e8b337fd5086ece4028b1c6";
sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b";
};
prePatch = stdenv.lib.optionals stdenv.isDarwin ''
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' pylib/gyp/xcode_emulation.py
'';
patches = stdenv.lib.optionals stdenv.isDarwin [
./no-darwin-cflags.patch
./no-xcode.patch
];
meta = with stdenv.lib; {
description = "A tool to generate native build files";
homepage = "https://chromium.googlesource.com/external/gyp/+/master/README.md";
license = licenses.bsd3;
maintainers = with maintainers; [ codyopel ];
};
}