Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonAtLeast 6, pythonOlder 7, setuptools 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "paste"; 13 version = "3.5.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "cdent"; 20 repo = "paste"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-lpQMzrRpcG5TqWm/FJn4oo9TV8Skf0ypZVeQC4y8p1U="; 23 }; 24 25 postPatch = '' 26 patchShebangs tests/cgiapp_data/ 27 ''; 28 29 propagatedBuildInputs = [ 30 setuptools 31 six 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 disabledTests = [ 39 # broken test 40 "test_file_cache" 41 # requires network connection 42 "test_proxy_to_website" 43 ] ++ lib.optionals (pythonAtLeast "3.11") [ 44 # https://github.com/cdent/paste/issues/72 45 "test_form" 46 ]; 47 48 pythonNamespaces = [ 49 "paste" 50 ]; 51 52 meta = with lib; { 53 description = "Tools for using a Web Server Gateway Interface stack"; 54 homepage = "https://pythonpaste.readthedocs.io/"; 55 changelog = "https://github.com/cdent/paste/blob/${version}/docs/news.txt"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ ]; 58 }; 59}