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
836 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
2018-09-12 07:35:06 +00:00
buildPythonPackage rec {
pname = "brotli";
2021-03-24 17:41:46 +00:00
version = "1.0.9";
2018-09-12 07:35:06 +00:00
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;
2018-09-12 07:35:06 +00:00
};
# only returns information how to really build
dontConfigure = true;
checkInputs = [
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;
maintainers = with maintainers; [ SuperSandro2000 ];
2018-09-12 07:35:06 +00:00
};
}