python312Packages.socid-extractor: refactor

This commit is contained in:
Fabian Affolter 2024-12-15 10:09:42 +01:00
parent 9053a71c5a
commit 007af78414

View File

@ -5,35 +5,32 @@
fetchFromGitHub,
python-dateutil,
pythonOlder,
setuptools,
requests,
}:
buildPythonPackage rec {
pname = "socid-extractor";
version = "0.0.27";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "soxoj";
repo = pname;
repo = "socid-extractor";
tag = "v${version}";
hash = "sha256-oiXIxNvedEk+EufYzxhvRr8m+kuQRs0J62Yel5JLenQ=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
beautifulsoup4
python-dateutil
requests
];
postPatch = ''
# https://github.com/soxoj/socid-extractor/pull/150
substituteInPlace requirements.txt \
--replace "beautifulsoup4~=4.11.1" "beautifulsoup4>=4.10.0"
'';
# Test require network access
doCheck = false;
@ -41,10 +38,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module to extract details from personal pages";
mainProgram = "socid_extractor";
homepage = "https://github.com/soxoj/socid-extractor";
changelog = "https://github.com/soxoj/socid-extractor/blob/v${version}/CHANGELOG.md";
license = with licenses; [ gpl3Only ];
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "socid_extractor";
};
}