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