fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / development / python-modules / bsdiff4 / default.nix
blob5d3bf14d7506d00d11fc2a10ace98534e6740abf
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6 }:
8 buildPythonPackage rec {
9   pname = "bsdiff4";
10   version = "1.2.5";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-zdg/gg7Ljx72ek5fCxUsYdMnyver81qpp2NBORWyE2g=";
18   };
20   pythonImportsCheck = [ "bsdiff4" ];
22   checkPhase = ''
23     mv bsdiff4 _bsdiff4
24     python -c 'import bsdiff4; bsdiff4.test()'
25   '';
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   };