···11+{ stdenv, buildPythonPackage, fetchPypi, isPyPy, isPy35, ncurses }:22+33+buildPythonPackage rec {44+ pname = "cx_Freeze";55+ version = "5.0.2";66+ name = "${pname}-${version}";77+88+ src = fetchPypi {99+ inherit pname version;1010+ sha256 = "0zbx9j5z5l06bvwvlqvvn7h9dm7zjcjgxm7agbb625nymkq6cd15";1111+ };1212+1313+ propagatedBuildInputs = [ ncurses ];1414+1515+ # timestamp need to come after 1980 for zipfiles and nix store is set to epoch1616+ prePatch = ''1717+ substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()"1818+ '';1919+2020+ # fails to find Console even though it exists on python 3.x2121+ doCheck = false;2222+2323+ meta = with stdenv.lib; {2424+ description = "A set of scripts and modules for freezing Python scripts into executables";2525+ homepage = "http://cx-freeze.sourceforge.net/";2626+ license = licenses.psfl;2727+ };2828+}
+1-23
pkgs/top-level/python-packages.nix
···1706170617071707 csvkit = callPackage ../development/python-modules/csvkit { };1708170817091709- cx_Freeze = buildPythonPackage rec {17101710- name = "cx_freeze-${version}";17111711- version = "4.3.4";17121712-17131713- # build failures17141714- disabled = isPyPy || isPy35;17151715-17161716- # timestamp need to come after 1980 for zipfiles and nix store is set to epoch17171717- prePatch = ''17181718- substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()"17191719- '';17201720-17211721- src = pkgs.fetchurl {17221722- url = "mirror://pypi/c/cx_Freeze/cx_Freeze-${version}.tar.gz";17231723- sha256 = "1qhv0gq3ggr06k8cvzphma29zfqdajkx2yfzbw89s4vy23xbpis0";17241724- };17251725-17261726- meta = {17271727- description = "A set of scripts and modules for freezing Python scripts into executables";17281728- homepage = "http://cx-freeze.sourceforge.net/";17291729- license = licenses.psfl;17301730- };17311731- };17091709+ cx_Freeze = callPackage ../development/python-modules/cx_freeze {};1732171017331711 cvxopt = buildPythonPackage rec {17341712 name = "${pname}-${version}";