depot/third_party/nixpkgs/pkgs/development/python-modules/asysocks/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 lines
780 B
Nix

{ lib
, asn1crypto
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "asysocks";
version = "0.2.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zg3xEveyEOisk8s4R/36Ly9JH5xDvVsjS4FZIxHOlZ8=";
};
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 ];
};
}