nixpkgs/pkgs/development/python-modules/brotli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
834 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
2018-09-12 07:35:06 +00:00
buildPythonPackage rec {
pname = "brotli";
2023-09-15 12:05:52 +00:00
version = "1.1.0";
2018-09-12 07:35:06 +00:00
src = fetchFromGitHub {
owner = "google";
repo = pname;
2023-09-15 12:05:52 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-MvceRcle2dSkkucC2PlsCizsIf8iv95d8Xjqew266wc=";
# .gitattributes is not correct or GitHub does not parse it correct and the archive is missing the test data
forceFetchGit = true;
2018-09-12 07:35:06 +00:00
};
# only returns information how to really build
dontConfigure = true;
nativeCheckInputs = [
pytestCheckHook
];
2018-09-12 07:35:06 +00:00
pytestFlagsArray = [
"python/tests"
];
2018-09-12 07:35:06 +00:00
meta = with lib; {
homepage = "https://github.com/google/brotli";
2018-09-12 07:35:06 +00:00
description = "Generic-purpose lossless compression algorithm";
license = licenses.mit;
2023-07-23 17:30:22 +00:00
maintainers = with maintainers; [ ];
2018-09-12 07:35:06 +00:00
};
}