1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonAtLeast
6, pythonOlder
7, setuptools
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "paste";
13 version = "3.7.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "cdent";
20 repo = "paste";
21 rev = "refs/tags/${version}";
22 hash = "sha256-xp8FU4MR79/leBSJvSk8J2GdWW32AW2I5i3Y6DsRPLw=";
23 };
24
25 postPatch = ''
26 patchShebangs tests/cgiapp_data/
27 '';
28
29 propagatedBuildInputs = [
30 setuptools
31 six
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
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 pythonNamespaces = [
44 "paste"
45 ];
46
47 meta = with lib; {
48 description = "Tools for using a Web Server Gateway Interface stack";
49 homepage = "https://pythonpaste.readthedocs.io/";
50 changelog = "https://github.com/cdent/paste/blob/${version}/docs/news.txt";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}