1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 requests,
7 setuptools-scm,
8 setuptools,
9 waitress,
10}:
11
12buildPythonPackage rec {
13 pname = "requests-unixsocket";
14 version = "0.4.1";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "requests_unixsocket";
19 inherit version;
20 hash = "sha256-sllhWMNW7O5o0nukaaUiESMKxvsM3otmr7GfDtR6GZU=";
21 };
22
23 build-system = [
24 setuptools
25 setuptools-scm
26 ];
27
28 dependencies = [ requests ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 waitress
33 ];
34
35 pythonImportsCheck = [ "requests_unixsocket" ];
36
37 meta = with lib; {
38 description = "Use requests to talk HTTP via a UNIX domain socket";
39 homepage = "https://github.com/msabramo/requests-unixsocket";
40 changelog = "https://github.com/msabramo/requests-unixsocket/releases/tag/v${version}";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ catern ];
43 };
44}