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