1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, colorama
6, pythonOlder
7, tqdm
8}:
9
10buildPythonPackage rec {
11 pname = "socialscan";
12 version = "2.0.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "iojw";
19 repo = pname;
20 rev = "refs/tags/v${version}";
21 hash = "sha256-jiyTcpJ00DvfweChawj1ugdCVHHAdwDbHEp9jivH7gs=";
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 changelog = "https://github.com/iojw/socialscan/releases/tag/v${version}";
41 license = with licenses; [ mpl20 ];
42 maintainers = with maintainers; [ fab ];
43 };
44}