75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchPypi,
|
|
poetry-core,
|
|
poetry-dynamic-versioning,
|
|
setuptools,
|
|
asn1,
|
|
click,
|
|
pycryptodome
|
|
}:
|
|
let
|
|
pylzss = buildPythonPackage rec {
|
|
pname = "pylzss";
|
|
version = "v0.3.8";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "m1stadev";
|
|
repo = "pylzss";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Y0u9rFJWYWyJUVEgpLtQHsXu0JpTgRKxFJHB+B3EFyU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
meta = with lib; {
|
|
description = "LZSS library for CPython ";
|
|
homepage = "https://github.com/m1stadev/pylzss";
|
|
};
|
|
};
|
|
|
|
lzfse = buildPythonPackage rec {
|
|
pname = "lzfse";
|
|
version = "0.4.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi{
|
|
inherit pname version;
|
|
hash = "sha256-xolfjKE+7dLhi24MmHyUaBFQMImECbxEp6qNT0pCzqs=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
};
|
|
in buildPythonPackage rec {
|
|
pname = "pyimg4";
|
|
version = "v0.8.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "m1stadev";
|
|
repo = "PyIMG4";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jpI0R/OLyN9mh/E2hmn4f+KSM4UpuQ1anin8kZGqqzI=";
|
|
};
|
|
|
|
build-system = [ poetry-core poetry-dynamic-versioning ];
|
|
|
|
dependencies = [
|
|
asn1
|
|
click
|
|
pycryptodome
|
|
pylzss
|
|
lzfse
|
|
];
|
|
|
|
pythonRelaxDeps = [ "pylzss" ];
|
|
|
|
meta = with lib; {
|
|
description = "A Python library/CLI tool for parsing Apple's Image4 format.";
|
|
homepage = "https://github.com/m1stadev/PyIMG4";
|
|
};
|
|
}
|