git.iko.soy/typeable/nixpkgs
on master help sign in
cx_Freeze: 4.3.4 -> 5.3.2
commit799a70d62304af44180412cf2eea4da0b06afb3f authorSamuel Leathers <sam@appliedtrust.com> dateThu 14 Sep 2017, 20:30 (9 years ago) parent9445438
2 files changed+29−23
pkgs/development/python-modules/cx_freeze/default.nix+28 pkgs/top-level/python-packages.nix+1−23
pkgs/development/python-modules/cx_freeze/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, buildPythonPackage, fetchPypi, isPyPy, isPy35, ncurses }:
2+
3+buildPythonPackage rec {
4+ pname = "cx_Freeze";
5+ version = "5.0.2";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "0zbx9j5z5l06bvwvlqvvn7h9dm7zjcjgxm7agbb625nymkq6cd15";
11+ };
12+
13+ propagatedBuildInputs = [ ncurses ];
14+
15+ # timestamp need to come after 1980 for zipfiles and nix store is set to epoch
16+ prePatch = ''
17+ substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()"
18+ '';
19+
20+ # fails to find Console even though it exists on python 3.x
21+ doCheck = false;
22+
23+ meta = with stdenv.lib; {
24+ description = "A set of scripts and modules for freezing Python scripts into executables";
25+ homepage = "http://cx-freeze.sourceforge.net/";
26+ license = licenses.psfl;
27+ };
28+}
pkgs/top-level/python-packages.nix+1−23
@@ -1704,29 +1704,7 @@ in {
17041704
17051705 csvkit = callPackage ../development/python-modules/csvkit { };
17061706
1707− cx_Freeze = buildPythonPackage rec {
1708− name = "cx_freeze-${version}";
1709− version = "4.3.4";
1710−
1711− # build failures
1712− disabled = isPyPy || isPy35;
1713−
1714− # timestamp need to come after 1980 for zipfiles and nix store is set to epoch
1715− prePatch = ''
1716− substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()"
1717− '';
1718−
1719− src = pkgs.fetchurl {
1720− url = "mirror://pypi/c/cx_Freeze/cx_Freeze-${version}.tar.gz";
1721− sha256 = "1qhv0gq3ggr06k8cvzphma29zfqdajkx2yfzbw89s4vy23xbpis0";
1722− };
1723−
1724− meta = {
1725− description = "A set of scripts and modules for freezing Python scripts into executables";
1726− homepage = "http://cx-freeze.sourceforge.net/";
1727− license = licenses.psfl;
1728− };
1729− };
1707+ cx_Freeze = callPackage ../development/python-modules/cx_freeze {};
17301708
17311709 cvxopt = buildPythonPackage rec {
17321710 name = "${pname}-${version}";