mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
38 lines
836 B
Nix
38 lines
836 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "brotli";
|
|
version = "1.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "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;
|
|
|
|
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; [ SuperSandro2000 ];
|
|
};
|
|
}
|