1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "brotli"; 9 version = "1.0.9"; 10 11 src = fetchFromGitHub { 12 owner = "google"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "sha256-tFnXSXv8t3l3HX6GwWLhEtgpqz0c7Yom5U3k47pWM7o="; 16 # .gitattributes is not correct or GitHub does not parse it correct and the archive is missing the test data 17 forceFetchGit = true; 18 }; 19 20 # only returns information how to really build 21 dontConfigure = true; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 pytestFlagsArray = [ 28 "python/tests" 29 ]; 30 31 meta = with lib; { 32 homepage = "https://github.com/google/brotli"; 33 description = "Generic-purpose lossless compression algorithm"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ SuperSandro2000 ]; 36 }; 37}