1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

icoextract: migrate to by-name

icoextract is primarily a command-line tool.

Also removes the no longer required pythonOlder check.
This commit is contained in:
Donovan Glover 2024-05-19 09:42:06 -04:00
parent 6701c2c867
commit a4630ce475
No known key found for this signature in database
GPG key ID: EA7408A77AE1BE65
3 changed files with 7 additions and 11 deletions

View file

@ -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
];

View file

@ -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 { };