3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/brotli/default.nix

29 lines
609 B
Nix
Raw Normal View History

2018-09-12 08:35:06 +01:00
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
buildPythonPackage rec {
pname = "brotli";
version = "1.0.7";
2018-09-12 08:35:06 +01:00
# PyPI doesn't contain tests so let's use GitHub
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw";
2018-09-12 08:35:06 +01:00
};
dontConfigure = true;
2018-09-12 08:35:06 +01:00
checkInputs = [ pytest ];
checkPhase = ''
pytest python/tests
'';
meta = {
homepage = https://github.com/google/brotli;
description = "Generic-purpose lossless compression algorithm";
license = lib.licenses.mit;
};
}