1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 pname = "bsdiff4"; 9 version = "1.2.2"; 10 format = "setuptools"; 11 12 disabled = pythonOlder "3.7"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-GICsP1KmxGrmvMbbEX5Ps1+bDM1a91/U/uaQfQDWmDw="; 17 }; 18 19 pythonImportsCheck = [ 20 "bsdiff4" 21 ]; 22 23 checkPhase = '' 24 mv bsdiff4 _bsdiff4 25 python -c 'import bsdiff4; bsdiff4.test()' 26 ''; 27 28 meta = with lib; { 29 description = "Binary diff and patch using the BSDIFF4-format"; 30 homepage = "https://github.com/ilanschnell/bsdiff4"; 31 license = licenses.bsdProtection; 32 maintainers = with maintainers; [ ris ]; 33 }; 34}