a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, brotli
|
|
, buildPythonPackage
|
|
, django
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "whitenoise";
|
|
version = "6.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "evansd";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-HcWWWMIuU8kfcOnntgXUnHD3pFogq8OEAd3wRtCnXjQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
brotli
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
django
|
|
pytestCheckHook
|
|
requests
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Don't run Django tests
|
|
"tests/test_django_whitenoise.py"
|
|
"tests/test_runserver_nostatic.py"
|
|
"tests/test_storage.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test fails with AssertionError
|
|
"test_modified"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"whitenoise"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Radically simplified static file serving for WSGI applications";
|
|
homepage = "https://whitenoise.evans.io/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|