2021-08-27 02:03:19 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook }:
|
2018-09-12 09:35:06 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brotli";
|
2021-03-24 18:41:46 +01:00
|
|
|
version = "1.0.9";
|
2018-09-12 09:35:06 +02:00
|
|
|
|
|
|
|
# PyPI doesn't contain tests so let's use GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-24 19:10:38 +01:00
|
|
|
sha256 = "1rdp9rx197q467ixp53g4cgc3jbsdaxr62pz0a8ayv2lvm944azh";
|
|
|
|
# for some reason, the test data isn't captured in releases, force a git checkout
|
|
|
|
deepClone = true;
|
2018-09-12 09:35:06 +02:00
|
|
|
};
|
|
|
|
|
2019-09-11 02:01:37 +02:00
|
|
|
dontConfigure = true;
|
|
|
|
|
2021-08-27 02:03:19 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-09-12 09:35:06 +02:00
|
|
|
|
2021-08-27 02:03:19 +02:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"python/tests"
|
|
|
|
];
|
2018-09-12 09:35:06 +02:00
|
|
|
|
2021-08-27 02:03:19 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/google/brotli";
|
2018-09-12 09:35:06 +02:00
|
|
|
description = "Generic-purpose lossless compression algorithm";
|
2021-08-27 02:03:19 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
2018-09-12 09:35:06 +02:00
|
|
|
};
|
|
|
|
}
|