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