depot/third_party/nixpkgs/pkgs/development/python-modules/requests-unixsocket2/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

46 lines
819 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pbr,
requests,
poetry-core,
pytestCheckHook,
waitress,
}:
buildPythonPackage rec {
pname = "requests-unixsocket2";
version = "0.4.2";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "requests_unixsocket2";
hash = "sha256-kpxY7MWYHz0SdmHOueyMduDwjTHFLkSrFGKsDc1VtfU=";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [
requests
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
waitress
];
pythonImportsCheck = [ "requests_unixsocket" ];
meta = with lib; {
description = "Use requests to talk HTTP via a UNIX domain socket";
homepage = "https://gitlab.com/thelabnyc/requests-unixsocket2";
license = licenses.bsd0;
maintainers = with maintainers; [ mikut ];
};
}