diff options
Diffstat (limited to 'pkgs/development/python-modules/cx-freeze/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cx-freeze/default.nix | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/cx-freeze/default.nix b/pkgs/development/python-modules/cx-freeze/default.nix index d418b3b3c3049..44dc7e32fd4bb 100644 --- a/pkgs/development/python-modules/cx-freeze/default.nix +++ b/pkgs/development/python-modules/cx-freeze/default.nix @@ -4,41 +4,48 @@ fetchPypi, pythonOlder, ncurses, - importlib-metadata, setuptools, + filelock, + typing-extensions, wheel, patchelf, }: buildPythonPackage rec { pname = "cx-freeze"; - version = "6.15.16"; + version = "7.1.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { - pname = "cx_Freeze"; + pname = "cx_freeze"; inherit version; - hash = "sha256-xjmRiG/ypTGfjw0HwDSaa74aZbXzIPi5JDiI5jyaSiI="; + hash = "sha256-M1wwutDj5lNlXyMJkzCEWL7cmXuvW3qZXoZB3rousoc="; }; - nativeBuildInputs = [ + pythonRelaxDeps = [ + "setuptools" + "wheel" + ]; + + build-system = [ setuptools wheel ]; - propagatedBuildInputs = [ - importlib-metadata # upstream has this for 3.8 as well + buildInputs = [ ncurses + ]; + + dependencies = [ + filelock setuptools + ] ++ lib.optionals (pythonOlder "3.10") [ + typing-extensions ]; 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 ''; @@ -57,7 +64,7 @@ buildPythonPackage rec { homepage = "https://marcelotduarte.github.io/cx_Freeze/"; changelog = "https://github.com/marcelotduarte/cx_Freeze/releases/tag/${version}"; license = licenses.psfl; - maintainers = with maintainers; [ ]; + maintainers = [ ]; mainProgram = "cxfreeze"; }; } |