1{ stdenv, buildPythonPackage, pythonOlder, fetchPypi, ncurses }:
2
3buildPythonPackage rec {
4 pname = "cx_Freeze";
5 version = "6.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "44bbbcea3196b79da77cc22637cb28a825b51182d32209e8a3f6cd4042edc247";
10 };
11
12 disabled = pythonOlder "3.5";
13
14 propagatedBuildInputs = [ ncurses ];
15
16 # timestamp need to come after 1980 for zipfiles and nix store is set to epoch
17 prePatch = ''
18 substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()"
19 '';
20
21 # fails to find Console even though it exists on python 3.x
22 doCheck = false;
23
24 meta = with stdenv.lib; {
25 description = "A set of scripts and modules for freezing Python scripts into executables";
26 homepage = "http://cx-freeze.sourceforge.net/";
27 license = licenses.psfl;
28 };
29}