blob: 0681b727b2204660664c5438e3ce431d3d5387b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, ncurses
, importlib-metadata
, setuptools
, patchelf
}:
buildPythonPackage rec {
pname = "cx-freeze";
version = "6.14.4";
src = fetchPypi {
pname = "cx_Freeze";
inherit version;
hash = "sha256-ydox+o4B0t/dYD+nDiY5CmWupt1iMzyU2fA4tCqgVcg=";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [
importlib-metadata # upstream has this for 3.8 as well
ncurses
setuptools
];
postPatch = ''
# timestamp need to come after 1980 for zipfiles and nix store is set to epoch
substituteInPlace cx_Freeze/freezer.py --replace "st.st_mtime" "time.time()"
sed -i /patchelf/d pyproject.toml
substituteInPlace pyproject.toml \
--replace 'setuptools>=61.2,<67' setuptools
'';
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ patchelf ])
];
# fails to find Console even though it exists on python 3.x
doCheck = false;
meta = with lib; {
description = "A set of scripts and modules for freezing Python scripts into executables";
homepage = "https://marcelotduarte.github.io/cx_Freeze/";
license = licenses.psfl;
maintainers = with maintainers; [ ];
mainProgram = "cxfreeze";
};
}
|