Skip to content
Permalink
Browse files

new port: python/py-hurry.filesize

takes a byte size and returns a human readable string
  • Loading branch information
ghosthound committed Apr 5, 2019
1 parent d33f702 commit cc6ae5d01f42bb946685a99bc634f3df0f63b488
Showing with 35 additions and 0 deletions.
  1. +35 −0 python/py-hurry.filesize/Portfile
@@ -0,0 +1,35 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0

set real_name hurry.filesize
name py-${real_name}
version 0.9
platforms darwin
supported_archs noarch
license ZPL-2.1
maintainers nomaintainer

homepage https://pypi.python.org/pypi/${real_name}
master_sites pypi:h/${real_name}
distname ${real_name}-${version}

description Bytes to human-readable sizes
long_description \
hurry.filesize a simple Python library that can take a number of \
bytes and returns a human-readable string with the size in it, in \
kilobytes (K), megabytes (M), etc.

checksums rmd160 ec6d4accdb682361df70ced334c8032a34146e60 \
sha256 f5368329adbef86accd3bc9490522340bb79260455ae89b1a42c10f63801b9a6 \
size 2810

python.versions 27

if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
}

livecheck.type none

0 comments on commit cc6ae5d

Please sign in to comment.
You can’t perform that action at this time.