1{ lib 2, beautifulsoup4 3, buildPythonPackage 4, click 5, fetchFromGitHub 6, pytestCheckHook 7, pythonOlder 8, requests 9, requests-mock 10, six 11, sqlalchemy 12}: 13 14buildPythonPackage rec { 15 pname = "proxy-db"; 16 version = "0.3.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "Nekmo"; 23 repo = "proxy-db"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-NdbvK2sJKKoWNYsuBaCMWtKEvuMhgyKXcKZXQgTC4bY="; 26 }; 27 28 propagatedBuildInputs = [ 29 beautifulsoup4 30 click 31 requests 32 six 33 sqlalchemy 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 requests-mock 39 ]; 40 41 preCheck = '' 42 export HOME=$(mktemp -d) 43 ''; 44 45 pythonImportsCheck = [ 46 "proxy_db" 47 ]; 48 49 meta = with lib; { 50 description = "Module to manage proxies in a local database"; 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}