depot/third_party/nixpkgs/pkgs/development/python-modules/socid-extractor/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

50 lines
1.1 KiB
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, python-dateutil
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "socid-extractor";
version = "0.0.24";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "soxoj";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-INewgfm+E2t4QfE+SRAm5a74AKsifNtnwC0WPBqPUns=";
};
propagatedBuildInputs = [
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;
pythonImportsCheck = [
"socid_extractor"
];
meta = with lib; {
description = "Python module to extract details from personal pages";
homepage = "https://github.com/soxoj/socid-extractor";
changelog = "https://github.com/soxoj/socid-extractor/blob/v${version}/CHANGELOG.md";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}