depot/third_party/nixpkgs/pkgs/development/python-modules/thttp/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
727 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 = "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 ];
};
}