159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
44 lines
864 B
Nix
44 lines
864 B
Nix
{
|
|
lib,
|
|
asn1crypto,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchPypi,
|
|
h11,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asysocks";
|
|
version = "0.2.13";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RBhbLEceY7cpMXOWfu87D15g7VzBt2UKMKlWnkn/Jfg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
asn1crypto
|
|
cryptography
|
|
h11
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|