New package: python3-binaryornot-0.4.4
This commit is contained in:
parent
28dc127679
commit
212c396ac0
|
@ -0,0 +1,22 @@
|
|||
From 38dee57986c6679d9936a1da6f6c8182da3734f8 Mon Sep 17 00:00:00 2001
|
||||
From: Greg <gregobinna@gmail.com>
|
||||
Date: Sat, 10 Aug 2019 15:10:33 +0000
|
||||
Subject: [PATCH] fix failing test
|
||||
|
||||
---
|
||||
tests/test_check.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_check.py b/tests/test_check.py
|
||||
index 1ea31a4..f800583 100755
|
||||
--- a/tests/test_check.py
|
||||
+++ b/tests/test_check.py
|
||||
@@ -216,7 +216,7 @@ def bytes_in_file(data):
|
||||
|
||||
|
||||
class TestDetectionProperties(unittest.TestCase):
|
||||
- @given(binary(average_size=512))
|
||||
+ @given(binary(max_size=512))
|
||||
def test_never_crashes(self, data):
|
||||
with bytes_in_file(data) as f:
|
||||
is_binary(f)
|
|
@ -0,0 +1,20 @@
|
|||
# Template file for 'python3-binaryornot'
|
||||
pkgname=python3-binaryornot
|
||||
version=0.4.4
|
||||
revision=1
|
||||
wrksrc="binaryornot-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3-chardet"
|
||||
checkdepends="python3-hypothesis $depends"
|
||||
short_desc="Pure Python package to check if a file is binary or text"
|
||||
maintainer="k4leg <python.bogdan@gmail.com>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/audreyfeldroy/binaryornot"
|
||||
changelog="https://raw.githubusercontent.com/audreyfeldroy/binaryornot/master/HISTORY.rst"
|
||||
distfiles="${PYPI_SITE}/b/binaryornot/binaryornot-${version}.tar.gz"
|
||||
checksum=359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
Reference in New Issue