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
|
2021-12-06 16:07:01 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "paste";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "3.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cdent";
|
|
|
|
repo = "paste";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-yaOxbfQ8rdViepxhdF0UzlelC/ozdsP1lOdU5w4OPEQ=";
|
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
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# broken test
|
|
|
|
"test_file_cache"
|
|
|
|
# requires network connection
|
|
|
|
"test_proxy_to_website"
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "http://pythonpaste.org/";
|
|
|
|
license = licenses.mit;
|
2021-10-08 15:17:17 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|