mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-28 07:43:43 +00:00
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "paste";
|
|
version = "3.10.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pasteorg";
|
|
repo = "paste";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-NY/h6hbpluEu1XAv3o4mqoG+l0LXfM1dw7+G0Rm1E4o=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs tests/cgiapp_data/
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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/pasteorg/paste/blob/${version}/docs/news.txt";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|