nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #29407 from disassembler/cxfreeze

cx_Freeze: 4.3.4 -> 5.3.2

(cherry picked from commit beaada6c2de1a3451e75031018b94c4273e87e59)

authored by

Frederik Rietdijk and committed by
Frederik Rietdijk
631b96ac 80674852

+29 -23
+28
pkgs/development/python-modules/cx_freeze/default.nix
··· 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 + }
+1 -23
pkgs/top-level/python-packages.nix
··· 1706 1706 1707 1707 csvkit = callPackage ../development/python-modules/csvkit { }; 1708 1708 1709 - cx_Freeze = buildPythonPackage rec { 1710 - name = "cx_freeze-${version}"; 1711 - version = "4.3.4"; 1712 - 1713 - # build failures 1714 - disabled = isPyPy || isPy35; 1715 - 1716 - # timestamp need to come after 1980 for zipfiles and nix store is set to epoch 1717 - prePatch = '' 1718 - substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()" 1719 - ''; 1720 - 1721 - src = pkgs.fetchurl { 1722 - url = "mirror://pypi/c/cx_Freeze/cx_Freeze-${version}.tar.gz"; 1723 - sha256 = "1qhv0gq3ggr06k8cvzphma29zfqdajkx2yfzbw89s4vy23xbpis0"; 1724 - }; 1725 - 1726 - meta = { 1727 - description = "A set of scripts and modules for freezing Python scripts into executables"; 1728 - homepage = "http://cx-freeze.sourceforge.net/"; 1729 - license = licenses.psfl; 1730 - }; 1731 - }; 1709 + cx_Freeze = callPackage ../development/python-modules/cx_freeze {}; 1732 1710 1733 1711 cvxopt = buildPythonPackage rec { 1734 1712 name = "${pname}-${version}";