Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonAtLeast, 7 pythonOlder, 8 setuptools, 9 six, 10}: 11 12buildPythonPackage rec { 13 pname = "paste"; 14 version = "3.10.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "cdent"; 21 repo = "paste"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-NY/h6hbpluEu1XAv3o4mqoG+l0LXfM1dw7+G0Rm1E4o="; 24 }; 25 26 postPatch = '' 27 patchShebangs tests/cgiapp_data/ 28 ''; 29 30 propagatedBuildInputs = [ 31 setuptools 32 six 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 preCheck = '' 38 # needs to be modified after Sat, 1 Jan 2005 12:00:00 GMT 39 touch tests/urlparser_data/secured.txt 40 ''; 41 42 pythonNamespaces = [ "paste" ]; 43 44 meta = with lib; { 45 description = "Tools for using a Web Server Gateway Interface stack"; 46 homepage = "https://pythonpaste.readthedocs.io/"; 47 changelog = "https://github.com/cdent/paste/blob/${version}/docs/news.txt"; 48 license = licenses.mit; 49 maintainers = [ ]; 50 }; 51}