···11+{ lib, buildPythonPackage, fetchPypi }:
22+33+buildPythonPackage rec {
44+ pname = "pylzma";
55+ version = "0.5.0";
66+77+ # This vendors an old LZMA SDK
88+ # After some discussion, it seemed most reasonable to keep it that way
99+ # xz, and uefi-firmware-parser also does this
1010+ src = fetchPypi {
1111+ inherit pname version;
1212+ sha256 = "074anvhyjgsv2iby2ql1ixfvjgmhnvcwjbdz8gk70xzkzcm1fx5q";
1313+ };
1414+1515+ pythonImportsCheck = [ "pylzma" ];
1616+1717+ meta = with lib; {
1818+ homepage = "https://www.joachim-bauch.de/projects/pylzma/";
1919+ description = "Platform independent python bindings for the LZMA compression library";
2020+ license = licenses.lgpl21Only;
2121+ maintainers = with maintainers; [ dandellion ];
2222+ };
2323+}