biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / proxy-py / default.nix
blob4679e894e008d24f88d6b9a67f65d443e7648066
2   lib,
3   bash,
4   buildPythonPackage,
5   fetchFromGitHub,
6   gnumake,
7   h2,
8   hpack,
9   httpx,
10   hyperframe,
11   openssl,
12   paramiko,
13   pytest-asyncio,
14   pytest-cov-stub,
15   pytest-mock,
16   pytest-xdist,
17   pytestCheckHook,
18   pythonOlder,
19   requests,
20   setuptools-scm,
21   typing-extensions,
24 buildPythonPackage rec {
25   pname = "proxy-py";
26   version = "2.4.5";
27   pyproject = true;
29   disabled = pythonOlder "3.7";
31   src = fetchFromGitHub {
32     owner = "abhinavsingh";
33     repo = "proxy.py";
34     rev = "refs/tags/v${version}";
35     hash = "sha256-pn4YYGntG9C8mhECb7PYgN5wwicdlPcZu6Xn2M3iIKA=";
36   };
38   postPatch = ''
39     substituteInPlace Makefile \
40     --replace "SHELL := /bin/bash" "SHELL := ${bash}/bin/bash"
41   '';
43   build-system = [ setuptools-scm ];
45   dependencies = [
46     paramiko
47     typing-extensions
48   ];
50   nativeCheckInputs = [
51     gnumake
52     h2
53     hpack
54     httpx
55     hyperframe
56     openssl
57     pytest-asyncio
58     pytest-cov-stub
59     pytest-mock
60     pytest-xdist
61     pytestCheckHook
62     requests
63   ];
65   preCheck = ''
66     export HOME=$(mktemp -d);
67   '';
69   disabledTests = [
70     # Test requires network access
71     "http"
72     "http2"
73     "proxy"
74     "web_server"
75     # Location is not writable
76     "test_gen_csr"
77     "test_gen_public_key"
78     # Tests run into a timeout
79     "integration"
80   ];
82   pythonImportsCheck = [ "proxy" ];
84   meta = with lib; {
85     description = "Python proxy framework";
86     homepage = "https://github.com/abhinavsingh/proxy.py";
87     changelog = "https://github.com/abhinavsingh/proxy.py/releases/tag/v${version}";
88     license = with licenses; [ bsd3 ];
89     maintainers = with maintainers; [ fab ];
90   };