mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
91b7dd6c91
Recent changes to buildPythonPackage seem to have enabled a configure script that doesn't work, so disable it.
29 lines
609 B
Nix
29 lines
609 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";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest python/tests
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/google/brotli;
|
|
description = "Generic-purpose lossless compression algorithm";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|