python311Packages.thttp: init at 1.3.0

A lightweight wrapper around urllib

https://github.com/sesh/thttp
This commit is contained in:
Fabian Affolter
2024-03-02 15:52:22 +01:00
parent 33a869955a
commit 4361e1f948
2 changed files with 39 additions and 0 deletions
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "thttp";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sesh";
repo = "thttp";
rev = "refs/tags/${version}";
hash = "sha256-e15QMRMpTcWo8TfH3tk23ybSlXFb8F4B/eqAp9oyK8g=";
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"thttp"
];
meta = with lib; {
description = "A lightweight wrapper around urllib";
homepage = "https://github.com/sesh/thttp";
changelog = "https://github.com/sesh/thttp/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -14641,6 +14641,8 @@ self: super: with self; {
throttler = callPackage ../development/python-modules/throttler { };
thttp = callPackage ../development/python-modules/thttp { };
tkinter = callPackage ../development/python-modules/tkinter {
py = python.override { x11Support=true; };
};