1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, colorama
6, pythonOlder
7, tqdm
8}:
9
10buildPythonPackage rec {
11 pname = "socialscan";
12 version = "1.4.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "iojw";
19 repo = pname;
20 rev = "v${version}";
21 sha256 = "rT+/j6UqDOzuNBdN3I74YIxS6qkhd7BjHCGX+gGjprc=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 colorama
27 tqdm
28 ];
29
30 # Tests require network access
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "socialscan"
35 ];
36
37 meta = with lib; {
38 description = "Python library and CLI for accurately querying username and email usage on online platforms";
39 homepage = "https://github.com/iojw/socialscan";
40 license = with licenses; [ mpl20 ];
41 maintainers = with maintainers; [ fab ];
42 };
43}