tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python38Packages.whitenoise: 5.2.0 -> 5.3.0
Fabian Affolter
4 years ago
5604caae
0f783d55
+38
-8
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
whitenoise
default.nix
+38
-8
pkgs/development/python-modules/whitenoise/default.nix
reviewed
···
1
1
-
{ lib, fetchPypi, buildPythonPackage, isPy27 }:
1
1
+
{ lib
2
2
+
, brotli
3
3
+
, buildPythonPackage
4
4
+
, fetchFromGitHub
5
5
+
, pytestCheckHook
6
6
+
, pythonOlder
7
7
+
, requests
8
8
+
}:
2
9
3
10
buildPythonPackage rec {
4
11
pname = "whitenoise";
5
5
-
version = "5.2.0";
6
6
-
disabled = isPy27;
12
12
+
version = "5.3.0";
13
13
+
disabled = pythonOlder "3.5";
7
14
8
8
-
src = fetchPypi {
9
9
-
inherit pname version;
10
10
-
sha256 = "05ce0be39ad85740a78750c86a93485c40f08ad8c62a6006de0233765996e5c7";
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "evansd";
17
17
+
repo = pname;
18
18
+
rev = "v${version}";
19
19
+
sha256 = "17j1rml1hb43c7fs7kf4ygkpmnjppzgsbnyw3plq9w3yh9w5hkhg";
11
20
};
12
21
13
13
-
# No tests
14
14
-
doCheck = false;
22
22
+
propagatedBuildInputs = [
23
23
+
brotli
24
24
+
];
25
25
+
26
26
+
checkInputs = [
27
27
+
pytestCheckHook
28
28
+
requests
29
29
+
];
30
30
+
31
31
+
disabledTestPaths = [
32
32
+
# Don't run Django tests
33
33
+
"tests/test_django_whitenoise.py"
34
34
+
"tests/test_runserver_nostatic.py"
35
35
+
"tests/test_storage.py"
36
36
+
];
37
37
+
38
38
+
disabledTests = [
39
39
+
# Test fails with AssertionError
40
40
+
"test_modified"
41
41
+
];
42
42
+
43
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
49
+
maintainers = with maintainers; [ ];
20
50
};
21
51
}