1{ 2 lib, 3 brotli, 4 buildPythonPackage, 5 django, 6 fetchFromGitHub, 7 pytestCheckHook, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "whitenoise"; 14 version = "6.11.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "evansd"; 19 repo = "whitenoise"; 20 tag = version; 21 hash = "sha256-pcU4qa2dlyPfMgyi1O8zME4GukIvKN4MQhFtJJjdn9w="; 22 }; 23 24 __darwinAllowLocalNetworking = true; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ brotli ]; 29 30 nativeCheckInputs = [ 31 django 32 pytestCheckHook 33 requests 34 ]; 35 36 disabledTests = [ 37 # Test fails with AssertionError 38 "test_modified" 39 ]; 40 41 pythonImportsCheck = [ "whitenoise" ]; 42 43 meta = with lib; { 44 description = "Library to serve static file for WSGI applications"; 45 homepage = "https://whitenoise.readthedocs.io/"; 46 changelog = "https://github.com/evansd/whitenoise/blob/${version}/docs/changelog.rst"; 47 license = licenses.mit; 48 maintainers = [ ]; 49 }; 50}