forked from mirrors/nixpkgs
Merge pull request #165370 from SuperSandro2000/brotli
This commit is contained in:
commit
cda6d4f18f
|
@ -1,22 +1,23 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook }:
|
||||
, 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 = "sha256-tFnXSXv8t3l3HX6GwWLhEtgpqz0c7Yom5U3k47pWM7o=";
|
||||
# for some reason, the test data isn't captured in releases, force a git checkout
|
||||
# .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 = [
|
||||
|
@ -31,6 +32,6 @@ buildPythonPackage rec {
|
|||
homepage = "https://github.com/google/brotli";
|
||||
description = "Generic-purpose lossless compression algorithm";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue