1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "brotli";
9 version = "1.1.0";
10
11 src = fetchFromGitHub {
12 owner = "google";
13 repo = pname;
14 rev = "refs/tags/v${version}";
15 hash = "sha256-MvceRcle2dSkkucC2PlsCizsIf8iv95d8Xjqew266wc=";
16 # .gitattributes is not correct or GitHub does not parse it correct and the archive is missing the test data
17 forceFetchGit = true;
18 };
19
20 # only returns information how to really build
21 dontConfigure = true;
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 pytestFlagsArray = [
28 "python/tests"
29 ];
30
31 meta = with lib; {
32 homepage = "https://github.com/google/brotli";
33 description = "Generic-purpose lossless compression algorithm";
34 license = licenses.mit;
35 maintainers = with maintainers; [ ];
36 };
37}