depot/third_party/nixpkgs/pkgs/development/python-modules/brotli/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

37 lines
824 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "brotli";
version = "1.0.9";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
hash = "sha256-tFnXSXv8t3l3HX6GwWLhEtgpqz0c7Yom5U3k47pWM7o=";
# .gitattributes is not correct or GitHub does not parse it correct and the archive is missing the test data
forceFetchGit = true;
};
# only returns information how to really build
dontConfigure = true;
nativeCheckInputs = [
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; [ ];
};
}