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