1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 pbr, 7 requests, 8 pytestCheckHook, 9 waitress, 10}: 11 12buildPythonPackage rec { 13 pname = "requests-unixsocket"; 14 version = "0.3.0"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-KDBCg+qTV9Rf/1itWxHkdwjPv1gGgXqlmyo2Mijulx4="; 20 }; 21 22 patches = [ 23 # https://github.com/msabramo/requests-unixsocket/pull/69 24 (fetchpatch { 25 name = "urllib3-2-compatibility.patch"; 26 url = "https://github.com/msabramo/requests-unixsocket/commit/39b9c64847a52ddc8c6d14ff414a6a7a3f6358d9.patch"; 27 hash = "sha256-DFtjhk33JLCu7FW6XI7uf2klNmwzvh2QNwxUb4W223Q="; 28 }) 29 ]; 30 31 nativeBuildInputs = [ pbr ]; 32 33 propagatedBuildInputs = [ requests ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 waitress 38 ]; 39 40 pythonImportsCheck = [ "requests_unixsocket" ]; 41 42 meta = with lib; { 43 description = "Use requests to talk HTTP via a UNIX domain socket"; 44 homepage = "https://github.com/msabramo/requests-unixsocket"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ catern ]; 47 }; 48}