depot/third_party/nixpkgs/pkgs/development/python-modules/brotli/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
611 B
Nix

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