diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2018-02-22 09:17:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 09:17:40 +0000 |
commit | 743a33a6be74e759e049dd6706a25fd095973310 (patch) | |
tree | 42a191a014d9e2652f9e9edb22fd9266c5775197 /pkgs/development/python-modules/binaryornot | |
parent | 54ac74c5586e6ab75727e8f1415ae232ca96a3fa (diff) | |
parent | 198bdf39b6b61e86cc9a50507e47e575aaf93e82 (diff) | |
download | nixlib-743a33a6be74e759e049dd6706a25fd095973310.tar nixlib-743a33a6be74e759e049dd6706a25fd095973310.tar.gz nixlib-743a33a6be74e759e049dd6706a25fd095973310.tar.bz2 nixlib-743a33a6be74e759e049dd6706a25fd095973310.tar.lz nixlib-743a33a6be74e759e049dd6706a25fd095973310.tar.xz nixlib-743a33a6be74e759e049dd6706a25fd095973310.tar.zst nixlib-743a33a6be74e759e049dd6706a25fd095973310.zip |
Merge pull request #35198 from dotlambda/python
python: updates and fixes
Diffstat (limited to 'pkgs/development/python-modules/binaryornot')
-rw-r--r-- | pkgs/development/python-modules/binaryornot/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/binaryornot/default.nix b/pkgs/development/python-modules/binaryornot/default.nix new file mode 100644 index 000000000000..2f0b01a5c23d --- /dev/null +++ b/pkgs/development/python-modules/binaryornot/default.nix @@ -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; + }; +} |