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