pythonPackages.brotli: init at 1.0.5
This commit is contained in:
parent
7df10f388d
commit
f6c4fff6dc
26
pkgs/development/python-modules/brotli/default.nix
Normal file
26
pkgs/development/python-modules/brotli/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "brotli";
|
||||
version = "1.0.5";
|
||||
|
||||
# PyPI doesn't contain tests so let's use GitHub
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ssj7mnhpdpk7qnwr49qfd4gxhkmvbli5mhs274pz55cx1xp7xja";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest python/tests
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/google/brotli;
|
||||
description = "Generic-purpose lossless compression algorithm";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
@ -234,6 +234,8 @@ in {
|
||||
|
||||
breathe = callPackage ../development/python-modules/breathe { };
|
||||
|
||||
brotli = callPackage ../development/python-modules/brotli { };
|
||||
|
||||
browser-cookie3 = callPackage ../development/python-modules/browser-cookie3 { };
|
||||
|
||||
browsermob-proxy = disabledIf isPy3k (callPackage ../development/python-modules/browsermob-proxy {});
|
||||
|
Loading…
Reference in New Issue
Block a user