1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

pythonPackages.cgkit: init at 2.0.0

This commit is contained in:
Joe Hermaszewski 2016-04-06 15:31:04 +01:00
parent 13c6b9ba85
commit a4e7cc58bb
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,22 @@
diff --git a/supportlib/SConstruct b/supportlib/SConstruct
index 7f797b9..07907e9 100644
--- a/supportlib/SConstruct
+++ b/supportlib/SConstruct
@@ -5,7 +5,7 @@
# library.
######################################################################
-import sys, glob, os.path
+import sys, glob, os.path, os
# Read the options
vars = Variables("cpp_config.cfg")
@@ -16,7 +16,7 @@ vars.Add("CPPPATH", "The include directories", [])
vars.Add("MSVS_VERSION", "The preferred version of MS Visual Studio")
# Create the construction environment
-env = Environment(variables = vars)
+env = Environment(variables = vars, ENV = os.environ)
# Build the files in "obj"
env.VariantDir("obj", "src", duplicate=0)

View file

@ -2946,6 +2946,31 @@ in modules // {
}; };
}; };
cgkit = buildPythonPackage rec {
version = "2.0.0";
name = "cgkit-${version}";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "http://downloads.sourceforge.net/project/cgkit/cgkit/cgkit-${version}/cgkit-${version}-py2k.tar.gz";
sha256 = "0vvllc42mdyma3c7yqhahs4bfxymm2kvmc4va7dxqr5x0rzh6rd6";
};
patches = [ ../development/python-modules/cgkit/scons-env.patch ];
buildInputs = with pkgs; [ scons boost mesa ];
preBuild = ''
cd supportlib
scons
cd -
'';
meta = {
homepage = http://cgkit.sourceforge.net;
description = "Python Computer Graphics Kit";
};
};
cheetah = buildPythonPackage rec { cheetah = buildPythonPackage rec {
version = "2.4.4"; version = "2.4.4";