lol

python38Packages.whitenoise: 5.2.0 -> 5.3.0

+38 -8
+38 -8
pkgs/development/python-modules/whitenoise/default.nix
··· 1 - { lib, fetchPypi, buildPythonPackage, isPy27 }: 1 + { lib 2 + , brotli 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , pytestCheckHook 6 + , pythonOlder 7 + , requests 8 + }: 2 9 3 10 buildPythonPackage rec { 4 11 pname = "whitenoise"; 5 - version = "5.2.0"; 6 - disabled = isPy27; 12 + version = "5.3.0"; 13 + disabled = pythonOlder "3.5"; 7 14 8 - src = fetchPypi { 9 - inherit pname version; 10 - sha256 = "05ce0be39ad85740a78750c86a93485c40f08ad8c62a6006de0233765996e5c7"; 15 + src = fetchFromGitHub { 16 + owner = "evansd"; 17 + repo = pname; 18 + rev = "v${version}"; 19 + sha256 = "17j1rml1hb43c7fs7kf4ygkpmnjppzgsbnyw3plq9w3yh9w5hkhg"; 11 20 }; 12 21 13 - # No tests 14 - doCheck = false; 22 + propagatedBuildInputs = [ 23 + brotli 24 + ]; 25 + 26 + checkInputs = [ 27 + pytestCheckHook 28 + requests 29 + ]; 30 + 31 + disabledTestPaths = [ 32 + # Don't run Django tests 33 + "tests/test_django_whitenoise.py" 34 + "tests/test_runserver_nostatic.py" 35 + "tests/test_storage.py" 36 + ]; 37 + 38 + disabledTests = [ 39 + # Test fails with AssertionError 40 + "test_modified" 41 + ]; 42 + 43 + pythonImportsCheck = [ "whitenoise" ]; 15 44 16 45 meta = with lib; { 17 46 description = "Radically simplified static file serving for WSGI applications"; 18 47 homepage = "http://whitenoise.evans.io/"; 19 48 license = licenses.mit; 49 + maintainers = with maintainers; [ ]; 20 50 }; 21 51 }