nixpkgs/pkgs/development/python-modules/bsdiff4/default.nix

27 lines
577 B
Nix
Raw Normal View History

{ lib
2020-08-03 22:20:38 +02:00
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "bsdiff4";
version = "1.2.1";
2020-08-03 22:20:38 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "87cffc7522effdda03fd1564b212ad2279c0af50d16c3e65776f80acb6705d4b";
2020-08-03 22:20:38 +02:00
};
checkPhase = ''
mv bsdiff4 _bsdiff4
python -c 'import bsdiff4; bsdiff4.test()'
'';
meta = with lib; {
2020-08-03 22:20:38 +02:00
description = "binary diff and patch using the BSDIFF4-format";
homepage = "https://github.com/ilanschnell/bsdiff4";
license = licenses.bsdProtection;
maintainers = with maintainers; [ ris ];
};
}