1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitLab,
5 hatchling,
6 pytestCheckHook,
7 requests,
8 urllib3,
9 waitress,
10}:
11
12buildPythonPackage rec {
13 pname = "requests-unixsocket2";
14 version = "1.0.1";
15 pyproject = true;
16
17 src = fetchFromGitLab {
18 owner = "thelabnyc";
19 repo = "requests-unixsocket2";
20 tag = "v${version}";
21 hash = "sha256-KgPIecKQibB5ZH+itw3OM9heSE3uDuodNS1R9dRkaHE=";
22 };
23
24 build-system = [ hatchling ];
25
26 dependencies = [
27 requests
28 urllib3
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 waitress
34 ];
35
36 pythonImportsCheck = [ "requests_unixsocket" ];
37
38 meta = {
39 changelog = "https://gitlab.com/thelabnyc/requests-unixsocket2/-/blob/${src.tag}/CHANGELOG.md";
40 description = "Use requests to talk HTTP via a UNIX domain socket";
41 homepage = "https://gitlab.com/thelabnyc/requests-unixsocket2";
42 license = lib.licenses.bsd0;
43 maintainers = with lib.maintainers; [ mikut ];
44 };
45}