at 23.05-pre 37 lines 1.1 kB view raw
1{ stdenv, lib, buildPythonPackage, pythonOlder, fetchPypi, ncurses, importlib-metadata }: 2 3buildPythonPackage rec { 4 pname = "cx-freeze"; 5 version = "6.11.1"; 6 7 src = fetchPypi { 8 pname = "cx_Freeze"; 9 inherit version; 10 sha256 = "sha256-jzowyeM5TykGVeNG07RgkQZWswrGNHqHSZu1rTZcbnw="; 11 }; 12 13 disabled = pythonOlder "3.5"; 14 15 propagatedBuildInputs = [ 16 importlib-metadata # upstream has this for 3.8 as well 17 ncurses 18 ]; 19 20 # timestamp need to come after 1980 for zipfiles and nix store is set to epoch 21 postPatch = '' 22 substituteInPlace cx_Freeze/freezer.py --replace "os.stat(module.file).st_mtime" "time.time()" 23 24 substituteInPlace setup.cfg \ 25 --replace "setuptools>=59.0.1,<=60.10.0" "setuptools>=59.0.1" 26 ''; 27 28 # fails to find Console even though it exists on python 3.x 29 doCheck = false; 30 31 meta = with lib; { 32 broken = (stdenv.isLinux && stdenv.isAarch64); 33 description = "A set of scripts and modules for freezing Python scripts into executables"; 34 homepage = "https://marcelotduarte.github.io/cx_Freeze/"; 35 license = licenses.psfl; 36 }; 37}