python3Packages.brotli: 1.1.0 -> 1.2.0 (#459351)
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
python3Packages,
|
||||
staticOnly ? stdenv.hostPlatform.isStatic,
|
||||
testers,
|
||||
}:
|
||||
|
||||
# ?TODO: there's also python lib in there
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "brotli";
|
||||
version = "1.1.0";
|
||||
@@ -54,7 +53,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cp ../docs/*.3 $out/share/man/man3/
|
||||
'';
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
passthru.tests = {
|
||||
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
python = python3Packages.brotli;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/google/brotli";
|
||||
|
||||
@@ -1,38 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
brotli,
|
||||
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;
|
||||
|
||||
env.USE_SYSTEM_BROTLI = 1;
|
||||
|
||||
buildInputs = [
|
||||
brotli
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
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 = [ ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2203,7 +2203,9 @@ self: super: with self; {
|
||||
|
||||
brother-ql = callPackage ../development/python-modules/brother-ql { };
|
||||
|
||||
brotli = callPackage ../development/python-modules/brotli { };
|
||||
brotli = callPackage ../development/python-modules/brotli {
|
||||
inherit (pkgs) brotli;
|
||||
};
|
||||
|
||||
brotli-asgi = callPackage ../development/python-modules/brotli-asgi { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user