--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>
+ A set of modules for analyzing and playing with the mechanics of python pickles.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">CensoredUsername/picklemagic</remote-id>
+ </upstream>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
+inherit python-r1
+
+SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz"
+KEYWORDS="~amd64 ~x86"
+DESCRIPTION="A library for analysing python pickles safely "
+HOMEPAGE="https://github.com/CensoredUsername/picklemagic"
+LICENSE="WTFPL-2"
+SLOT="0"
+IUSE="doc"
+
+BDEPEND="doc? ( dev-python/sphinx )"
+
+src_compile() {
+ use doc && emake -C doc html
+}
+
+src_install() {
+ default
+ python_foreach_impl python_domodule *.py
+ use doc && dodoc -r doc/build/html
+}