1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "paste";
13 version = "3.10.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "pasteorg";
20 repo = "paste";
21 tag = version;
22 hash = "sha256-NY/h6hbpluEu1XAv3o4mqoG+l0LXfM1dw7+G0Rm1E4o=";
23 };
24
25 postPatch = ''
26 patchShebangs tests/cgiapp_data/
27 '';
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 setuptools
33 six
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 preCheck = ''
39 # needs to be modified after Sat, 1 Jan 2005 12:00:00 GMT
40 touch tests/urlparser_data/secured.txt
41 '';
42
43 disabledTests = [
44 # pkg_resources deprecation warning
45 "test_form"
46 ];
47
48 pythonNamespaces = [ "paste" ];
49
50 meta = with lib; {
51 description = "Tools for using a Web Server Gateway Interface stack";
52 homepage = "https://pythonpaste.readthedocs.io/";
53 changelog = "https://github.com/pasteorg/paste/blob/${version}/docs/news.txt";
54 license = licenses.mit;
55 maintainers = [ ];
56 };
57}