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