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-03-04 12:14:45 +00:00
|
|
|
version = "3.5.2";
|
|
|
|
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}";
|
|
|
|
hash = "sha256-lpQMzrRpcG5TqWm/FJn4oo9TV8Skf0ypZVeQC4y8p1U=";
|
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
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# broken test
|
|
|
|
"test_file_cache"
|
|
|
|
# requires network connection
|
|
|
|
"test_proxy_to_website"
|
2023-03-04 12:14:45 +00:00
|
|
|
] ++ lib.optionals (pythonAtLeast "3.11") [
|
|
|
|
# https://github.com/cdent/paste/issues/72
|
|
|
|
"test_form"
|
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
|
|
|
};
|
|
|
|
}
|