blob: 5366eeb9c232d24f490a6df14b3ca13b2a250db5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
buildPythonPackage rec {
pname = "brotli";
version = "1.0.5";
# PyPI doesn't contain tests so let's use GitHub
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "0ssj7mnhpdpk7qnwr49qfd4gxhkmvbli5mhs274pz55cx1xp7xja";
};
checkInputs = [ pytest ];
checkPhase = ''
pytest python/tests
'';
meta = {
homepage = https://github.com/google/brotli;
description = "Generic-purpose lossless compression algorithm";
license = lib.licenses.mit;
};
}
|