nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 992 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "icoextract"; 9 version = "0.2.0"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "jlu5"; 14 repo = "icoextract"; 15 rev = version; 16 hash = "sha256-GJCe7oFUidJt21F4NmOXspxZGRQXIjQvFjFhMYsHLjk="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; 20 21 dependencies = with python3Packages; [ 22 pefile 23 pillow 24 ]; 25 26 # tests expect mingw and multiarch 27 doCheck = false; 28 29 pythonImportsCheck = [ "icoextract" ]; 30 31 postInstall = '' 32 install -Dm644 exe-thumbnailer.thumbnailer -t $out/share/thumbnailers 33 ''; 34 35 meta = { 36 description = "Extract icons from Windows PE files"; 37 homepage = "https://github.com/jlu5/icoextract"; 38 changelog = "https://github.com/jlu5/icoextract/blob/${version}/CHANGELOG.md"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ 41 donovanglover 42 ]; 43 mainProgram = "icoextract"; 44 }; 45}