depot/third_party/nixpkgs/pkgs/development/python-modules/paste/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

54 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, setuptools
, six
}:
buildPythonPackage rec {
pname = "paste";
version = "3.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cdent";
repo = "paste";
rev = "refs/tags/${version}";
hash = "sha256-vVCJn8PhLNw0fj+/tTigTEodn9SEKv0VASJf4LKJy20=";
};
postPatch = ''
patchShebangs tests/cgiapp_data/
'';
propagatedBuildInputs = [
setuptools
six
];
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
# needs to be modified after Sat, 1 Jan 2005 12:00:00 GMT
touch tests/urlparser_data/secured.txt
'';
pythonNamespaces = [
"paste"
];
meta = with lib; {
description = "Tools for using a Web Server Gateway Interface stack";
homepage = "https://pythonpaste.readthedocs.io/";
changelog = "https://github.com/cdent/paste/blob/${version}/docs/news.txt";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}