aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/requests-unixsocket/default.nix
blob: 5229dd96b75a15ee6abaebfab3cf8b652601bbe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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 ];
  };
}