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