diff --git a/pkgs/development/python-modules/icoextract/exe-thumbnailer.thumbnailer b/pkgs/by-name/ic/icoextract/exe-thumbnailer.thumbnailer similarity index 100% rename from pkgs/development/python-modules/icoextract/exe-thumbnailer.thumbnailer rename to pkgs/by-name/ic/icoextract/exe-thumbnailer.thumbnailer diff --git a/pkgs/development/python-modules/icoextract/default.nix b/pkgs/by-name/ic/icoextract/package.nix similarity index 82% rename from pkgs/development/python-modules/icoextract/default.nix rename to pkgs/by-name/ic/icoextract/package.nix index e9ef6393f22f..d1f585338545 100644 --- a/pkgs/development/python-modules/icoextract/default.nix +++ b/pkgs/by-name/ic/icoextract/package.nix @@ -1,29 +1,23 @@ { lib, - buildPythonPackage, + python3Packages, fetchPypi, - pefile, - pillow, - pythonOlder, - setuptools, }: -buildPythonPackage rec { +python3Packages.buildPythonApplication rec { pname = "icoextract"; version = "0.1.5"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchPypi { inherit pname version; extension = "tar.gz"; hash = "sha256-/UxnWNyRNtwI4Rxx97i5QyjeMrUr5Sq+TfLTmU0xWyc="; }; - build-system = [ setuptools ]; + build-system = with python3Packages; [ setuptools ]; - dependencies = [ + dependencies = with python3Packages; [ pefile pillow ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 983d0d25bb97..b5545719af50 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5755,7 +5755,9 @@ self: super: with self; { idasen = callPackage ../development/python-modules/idasen { }; - icoextract = callPackage ../development/python-modules/icoextract { }; + icoextract = toPythonModule (pkgs.icoextract.override { + python3Packages = self; + }); icontract = callPackage ../development/python-modules/icontract { };