diff --git a/pkgs/development/python-modules/socid-extractor/default.nix b/pkgs/development/python-modules/socid-extractor/default.nix index 6ce0aecdacf9..27aca9ff9193 100644 --- a/pkgs/development/python-modules/socid-extractor/default.nix +++ b/pkgs/development/python-modules/socid-extractor/default.nix @@ -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"; }; }