depot/third_party/nixpkgs/pkgs/development/python-modules/asysocks/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
776 B
Nix

{
lib,
asn1crypto,
buildPythonPackage,
fetchPypi,
pythonOlder,
}:
buildPythonPackage rec {
pname = "asysocks";
version = "0.2.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-uilvJjuZrvdC2m4zhXCkbzLjwtbC1liWEZ20Ya7FYJ0=";
};
propagatedBuildInputs = [ asn1crypto ];
# Upstream hasn't release the tests yet
doCheck = false;
pythonImportsCheck = [ "asysocks" ];
meta = with lib; {
description = "Python Socks4/5 client and server library";
homepage = "https://github.com/skelsec/asysocks";
changelog = "https://github.com/skelsec/asysocks/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}