2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-10-08 15:17:17 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2023-03-04 12:14:45 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2021-12-06 16:07:01 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paste";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.7.1";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdent";
|
|
|
|
repo = "paste";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-xp8FU4MR79/leBSJvSk8J2GdWW32AW2I5i3Y6DsRPLw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests/cgiapp_data/
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-10-08 15:17:17 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
preCheck = ''
|
|
|
|
# needs to be modified after Sat, 1 Jan 2005 12:00:00 GMT
|
|
|
|
touch tests/urlparser_data/secured.txt
|
|
|
|
'';
|
2021-10-08 15:17:17 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonNamespaces = [
|
|
|
|
"paste"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for using a Web Server Gateway Interface stack";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://pythonpaste.readthedocs.io/";
|
|
|
|
changelog = "https://github.com/cdent/paste/blob/${version}/docs/news.txt";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-10-08 15:17:17 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|