nixpkgs/pkgs/development/python-modules/aiohttp-socks/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

27 lines
659 B
Nix

{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp, python-socks, attrs }:
buildPythonPackage rec {
pname = "aiohttp-socks";
version = "0.8.0";
src = fetchPypi {
inherit version;
pname = "aiohttp_socks";
hash = "sha256-knsdOzR0SPhv9SRcnKGeQPOX65OQZoK+WSeQZ4yYLzc=";
};
propagatedBuildInputs = [ aiohttp attrs python-socks ];
# Checks needs internet access
doCheck = false;
pythonImportsCheck = [ "aiohttp_socks" ];
disabled = pythonOlder "3.5.3";
meta = {
description = "SOCKS proxy connector for aiohttp";
license = lib.licenses.asl20;
homepage = "https://github.com/romis2012/aiohttp-socks";
};
}