2018-09-12 07:35:06 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "brotli";
|
2018-11-10 14:04:14 +00:00
|
|
|
version = "1.0.7";
|
2018-09-12 07:35:06 +00:00
|
|
|
|
|
|
|
# PyPI doesn't contain tests so let's use GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2018-11-10 14:04:14 +00:00
|
|
|
sha256 = "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw";
|
2018-09-12 07:35:06 +00:00
|
|
|
};
|
|
|
|
|
2019-09-11 00:01:37 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
|
2018-09-12 07:35:06 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest python/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
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";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|