depot/third_party/nixpkgs/pkgs/development/python-modules/python-socks/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

53 lines
932 B
Nix

{ lib
, async-timeout
, buildPythonPackage
, curio
, fetchFromGitHub
, flask
, pytest-asyncio
, pytest-trio
, pythonOlder
, pytestCheckHook
, trio
, yarl
}:
buildPythonPackage rec {
pname = "python-socks";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.6.1";
src = fetchFromGitHub {
owner = "romis2012";
repo = pname;
rev = "v${version}";
sha256 = "sha256-iTwlUyfTD2ZhOvBX3IDqjkeW4Z2tfKxvQjIV7GGBVJA=";
};
propagatedBuildInputs = [
trio
curio
async-timeout
];
checkInputs = [
flask
pytest-asyncio
pytest-trio
pytestCheckHook
yarl
];
pythonImportsCheck = [
"python_socks"
];
meta = with lib; {
description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python";
homepage = "https://github.com/romis2012/python-socks";
license = licenses.asl20;
maintainers = with maintainers; [ mjlbach ];
};
}