From cf4fe35364f3c51b5fd260c816825496ed9ccf7d Mon Sep 17 00:00:00 2001 From: Ricardo Ardissone Date: Mon, 9 May 2016 00:25:19 -0300 Subject: [PATCH] pythonPackages.cx_Freeze: init at 4.3.4 --- pkgs/top-level/python-packages.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e664ab56703c..c40d2b532055 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1941,6 +1941,30 @@ in modules // { doCheck = false; # lazy packager }; + cx_Freeze = buildPythonPackage rec { + name = "cx_freeze-${version}"; + version = "4.3.4"; + + # build failures + disabled = isPyPy || isPy35; + + # timestamp need to come after 1980 for zipfiles and nix store is set to epoch + prePatch = '' + substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()" + ''; + + src = pkgs.fetchurl { + url = "mirror://pypi/c/cx_Freeze/cx_Freeze-${version}.tar.gz"; + sha256 = "1qhv0gq3ggr06k8cvzphma29zfqdajkx2yfzbw89s4vy23xbpis0"; + }; + + meta = { + description = "A set of scripts and modules for freezing Python scripts into executables"; + homepage = "http://cx-freeze.sourceforge.net/"; + license = licenses.psfl; + }; + }; + cvxopt = buildPythonPackage rec { name = "${pname}-${version}"; pname = "cvxopt";