description="Python 3 implementation of John Gruber's Markdown"
url="http://pypi.python.org/pypi/Markdown"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(python-wheel python-setuptools)

name=python-markdown
_name="Markdown"
alias=(${_name})

version=3.7
release=2

source=(https://pypi.org/packages/source/m/markdown/markdown-$version.tar.gz)

build() {
    find markdown-$version/ -name '*py' | xargs sed -i 's|\r||g'

cd markdown-$version

  pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir    \
    --no-user         \
    --root=$PKG       \
    ${_name}

 find $PKG -type d -name vendor -o -name tests |xargs rm -rf 

}
