Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 27 lines 793 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, ncurses }: 2 3buildPythonPackage rec { 4 pname = "cx_Freeze"; 5 version = "5.1.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "2eadddde670f5c5f6cf88638a0ac4e5d5fe181292a31063275fa56c7bf22426b"; 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}