ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / socid-extractor / default.nix
blobde552ca673c928d0e3e729db29f551afc8f5c4ef
1 { lib
2 , beautifulsoup4
3 , buildPythonPackage
4 , fetchFromGitHub
5 , python-dateutil
6 , pythonOlder
7 , requests
8 }:
10 buildPythonPackage rec {
11   pname = "socid-extractor";
12   version = "0.0.23";
13   format = "setuptools";
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "soxoj";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-tDKwYgW1vEyPzuouPGK9tdTf3vNr+UaosHtQe23srG0=";
22   };
24   propagatedBuildInputs = [
25     beautifulsoup4
26     python-dateutil
27     requests
28   ];
30   postPatch = ''
31     # https://github.com/soxoj/socid-extractor/pull/125
32     substituteInPlace requirements.txt \
33       --replace "beautifulsoup4~=4.10.0" "beautifulsoup4>=4.10.0"
34   '';
36   # Test require network access
37   doCheck = false;
39   pythonImportsCheck = [
40     "socid_extractor"
41   ];
43   meta = with lib; {
44     description = "Python module to extract details from personal pages";
45     homepage = "https://github.com/soxoj/socid-extractor";
46     license = with licenses; [ gpl3Only ];
47     maintainers = with maintainers; [ fab ];
48   };