1{ 2 buildPythonPackage, 3 click, 4 fetchFromGitHub, 5 lib, 6 olefile, 7 pytestCheckHook, 8 setuptools, 9 typing-extensions, 10}: 11 12buildPythonPackage rec { 13 pname = "python-oxmsg"; 14 version = "0.0.2"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "scanny"; 19 repo = "python-oxmsg"; 20 tag = "v${version}"; 21 hash = "sha256-ramM27+SylBeJyb3kkRm1xn3qAefiLuBOvI/iucK2wM="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 click 28 olefile 29 typing-extensions 30 ]; 31 32 pythonImportsCheck = [ "oxmsg" ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 meta = { 39 changelog = "https://github.com/scanny/python-oxmsg/blob/${src.tag}/CHANGELOG.md"; 40 description = "Extract attachments from Outlook .msg files"; 41 homepage = "https://github.com/scanny/python-oxmsg"; 42 license = lib.licenses.mit; 43 mainProgram = "oxmsg"; 44 maintainers = with lib.maintainers; [ dotlambda ]; 45 }; 46}