1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 fetchFromGitHub,
6 python-dateutil,
7 pythonOlder,
8 setuptools,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "socid-extractor";
14 version = "0.0.27";
15 pyproject = true;
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "soxoj";
21 repo = "socid-extractor";
22 tag = "v${version}";
23 hash = "sha256-oiXIxNvedEk+EufYzxhvRr8m+kuQRs0J62Yel5JLenQ=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 beautifulsoup4
30 python-dateutil
31 requests
32 ];
33
34 # Test require network access
35 doCheck = false;
36
37 pythonImportsCheck = [ "socid_extractor" ];
38
39 meta = with lib; {
40 description = "Python module to extract details from personal pages";
41 homepage = "https://github.com/soxoj/socid-extractor";
42 changelog = "https://github.com/soxoj/socid-extractor/blob/v${version}/CHANGELOG.md";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ fab ];
45 mainProgram = "socid_extractor";
46 };
47}