2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
six,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paste";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.10.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}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-NY/h6hbpluEu1XAv3o4mqoG+l0LXfM1dw7+G0Rm1E4o=";
|
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
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|