1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 fetchFromGitHub, 6 python-dateutil, 7 pythonOlder, 8 requests, 9}: 10 11buildPythonPackage rec { 12 pname = "socid-extractor"; 13 version = "0.0.26"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "soxoj"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-3ht/wlxB40k4n0DTBGAvAl7yPiUIZqAe+ECbtkyMTzk="; 23 }; 24 25 propagatedBuildInputs = [ 26 beautifulsoup4 27 python-dateutil 28 requests 29 ]; 30 31 postPatch = '' 32 # https://github.com/soxoj/socid-extractor/pull/150 33 substituteInPlace requirements.txt \ 34 --replace "beautifulsoup4~=4.11.1" "beautifulsoup4>=4.10.0" 35 ''; 36 37 # Test require network access 38 doCheck = false; 39 40 pythonImportsCheck = [ "socid_extractor" ]; 41 42 meta = with lib; { 43 description = "Python module to extract details from personal pages"; 44 mainProgram = "socid_extractor"; 45 homepage = "https://github.com/soxoj/socid-extractor"; 46 changelog = "https://github.com/soxoj/socid-extractor/blob/v${version}/CHANGELOG.md"; 47 license = with licenses; [ gpl3Only ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}