mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Merge pull request #14498 from expipiplus1/python-cgkit
pythonPackages.cgkit: init at 2.0.0
This commit is contained in:
commit
dddafe61eb
@ -117,6 +117,7 @@
|
||||
ertes = "Ertugrul Söylemez <ertesx@gmx.de>";
|
||||
exi = "Reno Reckling <nixos@reckling.org>";
|
||||
exlevan = "Alexey Levan <exlevan@gmail.com>";
|
||||
expipiplus1 = "Joe Hermaszewski <nix@monoid.al>";
|
||||
fadenb = "Tristan Helmich <tristan.helmich+nixos@gmail.com>";
|
||||
falsifian = "James Cook <james.cook@utoronto.ca>";
|
||||
flosse = "Markus Kohlhase <mail@markus-kohlhase.de>";
|
||||
|
22
pkgs/development/python-modules/cgkit/scons-env.patch
Normal file
22
pkgs/development/python-modules/cgkit/scons-env.patch
Normal 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)
|
@ -3024,6 +3024,33 @@ in modules // {
|
||||
};
|
||||
};
|
||||
|
||||
# This package is no longer actively maintained and can be removed if it becomes broken.
|
||||
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";
|
||||
maintainers = with maintainers; [ expipiplus1 ];
|
||||
};
|
||||
};
|
||||
|
||||
cheetah = buildPythonPackage rec {
|
||||
version = "2.4.4";
|
||||
|
Loading…
Reference in New Issue
Block a user