nixpkgs/pkgs/development/python-modules/brotli/default.nix
R. RyanTM b7b2d9cd6c python36Packages.brotli: 1.0.5 -> 1.0.7 (#50169)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.6-brotli/versions
2018-11-10 15:04:14 +01:00

26 lines
584 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pytest }:
buildPythonPackage rec {
pname = "brotli";
version = "1.0.7";
# PyPI doesn't contain tests so let's use GitHub
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "1811b55wdfg4kbsjcgh1kc938g118jpvif97ilgrmbls25dfpvvw";
};
checkInputs = [ pytest ];
checkPhase = ''
pytest python/tests
'';
meta = {
homepage = https://github.com/google/brotli;
description = "Generic-purpose lossless compression algorithm";
license = lib.licenses.mit;
};
}