depot/third_party/nixpkgs/pkgs/development/python-modules/brotli/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

36 lines
792 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook }:
buildPythonPackage rec {
pname = "brotli";
version = "1.0.9";
# PyPI doesn't contain tests so let's use GitHub
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "1rdp9rx197q467ixp53g4cgc3jbsdaxr62pz0a8ayv2lvm944azh";
# for some reason, the test data isn't captured in releases, force a git checkout
deepClone = true;
};
dontConfigure = true;
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"python/tests"
];
meta = with lib; {
homepage = "https://github.com/google/brotli";
description = "Generic-purpose lossless compression algorithm";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}