depot/third_party/nixpkgs/pkgs/development/python-modules/requests-unixsocket/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

29 lines
715 B
Nix

{ lib, buildPythonPackage, fetchPypi
, pbr, requests
, pytest, pytestpep8, waitress }:
buildPythonPackage rec {
pname = "requests-unixsocket";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "9e5c1a20afc3cf786197ae59c79bcdb0e7565f218f27df5f891307ee8817c1ea";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [ requests ];
checkInputs = [ pytest pytestpep8 waitress ];
checkPhase = ''
rm pytest.ini
py.test
'';
meta = with lib; {
description = "Use requests to talk HTTP via a UNIX domain socket";
homepage = "https://github.com/msabramo/requests-unixsocket";
license = licenses.asl20;
maintainers = [ maintainers.catern ];
};
}