mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
29 lines
683 B
Nix
29 lines
683 B
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, pbr, requests
|
|
, pytest, pytestpep8, waitress }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests-unixsocket";
|
|
version = "0.1.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0k19knydh0fzd7w12lfy18arl1ndwa0zln33vsb37yv1iw9w06x9";
|
|
};
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
checkInputs = [ pytest pytestpep8 waitress ];
|
|
checkPhase = ''
|
|
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 ];
|
|
};
|
|
}
|