nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 asn1crypto,
4 buildPythonPackage,
5 cryptography,
6 fetchPypi,
7 h11,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "asysocks";
13 version = "0.2.18";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-zGGW6CyK3Is84jId3fY1UAx2AxbaS3zKMhtTLLs9/fU=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 asn1crypto
25 cryptography
26 h11
27 ];
28
29 # Upstream hasn't release the tests yet
30 doCheck = false;
31
32 pythonImportsCheck = [ "asysocks" ];
33
34 meta = {
35 description = "Python Socks4/5 client and server library";
36 homepage = "https://github.com/skelsec/asysocks";
37 changelog = "https://github.com/skelsec/asysocks/releases/tag/${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}