Commit b3c34739 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent cc9d3a57
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -2,25 +2,29 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pkgconfig,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "brotli";
  version = "1.1.0";
  version = "1.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "google";
    repo = "brotli";
    tag = "v${version}";
    hash = "sha256-U1vAupUthD5W0xvlOKdgm9MAVLqsVyZUaFdeLsDAbDM=";
    hash = "sha256-ePfllKdY12hOPuO9uHuXFZ3Bdib6BLD4ghiaeurJZ28=";
    # .gitattributes is not correct or GitHub does not parse it correct and the archive is missing the test data
    forceFetchGit = true;
  };

  build-system = [ setuptools ];
  build-system = [
    pkgconfig
    setuptools
  ];

  # only returns information how to really build
  dontConfigure = true;
@@ -29,10 +33,11 @@ buildPythonPackage rec {

  enabledTestPaths = [ "python/tests" ];

  meta = with lib; {
  meta = {
    changelog = "https://github.com/google/brotli/blob/${src.tag}/CHANGELOG.md";
    homepage = "https://github.com/google/brotli";
    description = "Generic-purpose lossless compression algorithm";
    license = licenses.mit;
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}