Skip to content

Commit

Permalink
pythonPackages.binaryornot: 0.4.0 -> 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schütz committed Feb 22, 2018
1 parent e42e6d2 commit 4a9a7d3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/binaryornot/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, chardet, hypothesis }:

buildPythonPackage rec {
pname = "binaryornot";
version = "0.4.4";

src = fetchPypi {
inherit pname version;
sha256 = "359501dfc9d40632edc9fac890e19542db1a287bbcfa58175b66658392018061";
};

prePatch = ''
# See https://github.com/audreyr/binaryornot/issues/40
substituteInPlace tests/test_check.py \
--replace "average_size=512" "average_size=128"
'';

propagatedBuildInputs = [ chardet ];

checkInputs = [ hypothesis ];

meta = with lib; {
homepage = https://github.com/audreyr/binaryornot;
description = "Ultra-lightweight pure Python package to check if a file is binary or text";
license = licenses.bsd3;
};
}
22 changes: 1 addition & 21 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1671,27 +1671,7 @@ in {
};
};


binaryornot = buildPythonPackage rec {
name = "binaryornot-${version}";
version = "0.4.0";

src = pkgs.fetchurl {
url ="mirror://pypi/b/binaryornot/${name}.tar.gz";
sha256 = "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb";
};

buildInputs = with self; [ hypothesis ];

propagatedBuildInputs = with self; [ chardet ];

meta = {
homepage = https://github.com/audreyr/binaryornot;
description = "Ultra-lightweight pure Python package to check if a file is binary or text";
license = licenses.bsd3;
};
};

binaryornot = callPackage ../development/python-modules/binaryornot { };

bitbucket_api = buildPythonPackage rec {
name = "bitbucket-api-0.4.4";
Expand Down

0 comments on commit 4a9a7d3

Please sign in to comment.