1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 04:55:25 +03:00
nixpkgs/pkgs/development/python-modules/brotli/default.nix

37 lines
795 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook }:
2018-09-12 10:35:06 +03:00
buildPythonPackage rec {
pname = "brotli";
2021-03-24 10:41:46 -07:00
version = "1.0.9";
2018-09-12 10:35:06 +03:00
# PyPI doesn't contain tests so let's use GitHub
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "sha256-tFnXSXv8t3l3HX6GwWLhEtgpqz0c7Yom5U3k47pWM7o=";
2021-03-24 11:10:38 -07:00
# for some reason, the test data isn't captured in releases, force a git checkout
forceFetchGit = true;
2018-09-12 10:35:06 +03:00
};
dontConfigure = true;
checkInputs = [
pytestCheckHook
];
2018-09-12 10:35:06 +03:00
pytestFlagsArray = [
"python/tests"
];
2018-09-12 10:35:06 +03:00
meta = with lib; {
homepage = "https://github.com/google/brotli";
2018-09-12 10:35:06 +03:00
description = "Generic-purpose lossless compression algorithm";
license = licenses.mit;
maintainers = with maintainers; [ ];
2018-09-12 10:35:06 +03:00
};
}