mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
python312Packages.socid-extractor: refactor
This commit is contained in:
parent
9053a71c5a
commit
007af78414
@ -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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user