504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
38 lines
781 B
Nix
38 lines
781 B
Nix
{ lib
|
|
, asn1crypto
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asysocks";
|
|
version = "0.2.11";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Fwm898mU7wvH5OkYVUrw3rL4VT5yyvoHxVtfcuL+4bQ=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|