nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, brotli
3, buildPythonPackage
4, django
5, fetchFromGitHub
6, pytestCheckHook
7, pythonOlder
8, requests
9}:
10
11buildPythonPackage rec {
12 pname = "whitenoise";
13 version = "6.0.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "evansd";
20 repo = pname;
21 rev = version;
22 hash = "sha256-mUjyX4eQOiMweje6UPyfyJsiHwzF5OQ93KuxFedWxbQ=";
23 };
24
25 propagatedBuildInputs = [
26 brotli
27 ];
28
29 checkInputs = [
30 django
31 pytestCheckHook
32 requests
33 ];
34
35 disabledTestPaths = [
36 # Don't run Django tests
37 "tests/test_django_whitenoise.py"
38 "tests/test_runserver_nostatic.py"
39 "tests/test_storage.py"
40 ];
41
42 disabledTests = [
43 # Test fails with AssertionError
44 "test_modified"
45 ];
46
47 pythonImportsCheck = [
48 "whitenoise"
49 ];
50
51 meta = with lib; {
52 description = "Radically simplified static file serving for WSGI applications";
53 homepage = "http://whitenoise.evans.io/";
54 license = licenses.mit;
55 maintainers = with maintainers; [ ];
56 };
57}