1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 pytestCheckHook,
8 pythonOlder,
9 requests,
10 requests-mock,
11 six,
12 sqlalchemy,
13}:
14
15buildPythonPackage rec {
16 pname = "proxy-db";
17 version = "0.3.1";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "Nekmo";
24 repo = "proxy-db";
25 tag = "v${version}";
26 hash = "sha256-NdbvK2sJKKoWNYsuBaCMWtKEvuMhgyKXcKZXQgTC4bY=";
27 };
28
29 propagatedBuildInputs = [
30 beautifulsoup4
31 click
32 requests
33 six
34 sqlalchemy
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 requests-mock
40 ];
41
42 preCheck = ''
43 export HOME=$(mktemp -d)
44 '';
45
46 pythonImportsCheck = [ "proxy_db" ];
47
48 meta = with lib; {
49 description = "Module to manage proxies in a local database";
50 mainProgram = "proxy-db";
51 homepage = "https://github.com/Nekmo/proxy-db/";
52 changelog = "https://github.com/Nekmo/proxy-db/blob/v${version}/HISTORY.rst";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ fab ];
55 };
56}