2021-08-27 00:03:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-03-23 04:49:40 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-09-12 07:35:06 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brotli";
|
2021-03-24 17:41:46 +00:00
|
|
|
version = "1.0.9";
|
2018-09-12 07:35:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-29 03:18:30 +00:00
|
|
|
sha256 = "sha256-tFnXSXv8t3l3HX6GwWLhEtgpqz0c7Yom5U3k47pWM7o=";
|
2022-03-23 04:49:40 +00:00
|
|
|
# .gitattributes is not correct or GitHub does not parse it correct and the archive is missing the test data
|
2022-01-29 03:18:30 +00:00
|
|
|
forceFetchGit = true;
|
2018-09-12 07:35:06 +00:00
|
|
|
};
|
|
|
|
|
2022-03-23 04:49:40 +00:00
|
|
|
# only returns information how to really build
|
2019-09-11 00:01:37 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
|
2021-08-27 00:03:19 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-09-12 07:35:06 +00:00
|
|
|
|
2021-08-27 00:03:19 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"python/tests"
|
|
|
|
];
|
2018-09-12 07:35:06 +00:00
|
|
|
|
2021-08-27 00:03:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/google/brotli";
|
2018-09-12 07:35:06 +00:00
|
|
|
description = "Generic-purpose lossless compression algorithm";
|
2021-08-27 00:03:19 +00:00
|
|
|
license = licenses.mit;
|
2022-03-23 04:49:40 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-09-12 07:35:06 +00:00
|
|
|
};
|
|
|
|
}
|