nixpkgs/pkgs/development/python-modules/python-socks/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

63 lines
1.1 KiB
Nix

{ lib
, async-timeout
, buildPythonPackage
, curio
, fetchFromGitHub
, anyio
, flask
, pytest-asyncio
, pytest-trio
, pythonOlder
, pytestCheckHook
, trio
, trustme
, yarl
}:
buildPythonPackage rec {
pname = "python-socks";
version = "2.1.1";
format = "setuptools";
disabled = pythonOlder "3.6.2";
__darwinAllowLocalNetworking = true;
src = fetchFromGitHub {
owner = "romis2012";
repo = "python-socks";
rev = "refs/tags/v${version}";
hash = "sha256-QvUuCS8B/6+dgzWrflizLfNlAUeOPpUPtmFaE6LGYGc=";
};
propagatedBuildInputs = [
trio
curio
async-timeout
];
doCheck = false; # requires tiny_proxy module
nativeCheckInputs = [
anyio
flask
pytest-asyncio
pytest-trio
pytestCheckHook
trustme
yarl
];
pythonImportsCheck = [
"python_socks"
];
meta = with lib; {
changelog = "https://github.com/romis2012/python-socks/releases/tag/v${version}";
description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python";
homepage = "https://github.com/romis2012/python-socks";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}