1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 glibcLocales,
6 pytestCheckHook,
7 pythonOlder,
8 pytz,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "feedgenerator";
14 version = "2.1.0";
15 format = "setuptools";
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-8HXyPyj9In8JfDayEhYcbPAS4cbKr3/1PV1rsCzUK50=";
21 };
22
23 postPatch = ''
24 sed -i '/cov/d' setup.cfg
25 '';
26
27 buildInputs = [ glibcLocales ];
28
29 LC_ALL = "en_US.UTF-8";
30
31 propagatedBuildInputs = [
32 pytz
33 six
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "feedgenerator" ];
39
40 meta = with lib; {
41 description = "Standalone version of Django's feedgenerator module";
42 homepage = "https://github.com/getpelican/feedgenerator";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ ];
45 };
46}