at master 712 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "thttp"; 11 version = "1.3.0"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "sesh"; 18 repo = "thttp"; 19 tag = version; 20 hash = "sha256-e15QMRMpTcWo8TfH3tk23ybSlXFb8F4B/eqAp9oyK8g="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 pythonImportsCheck = [ "thttp" ]; 26 27 meta = with lib; { 28 description = "Lightweight wrapper around urllib"; 29 homepage = "https://github.com/sesh/thttp"; 30 changelog = "https://github.com/sesh/thttp/releases/tag/${version}"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ fab ]; 33 }; 34}