fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
34 lines
729 B
Nix
34 lines
729 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|