1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pythonOlder,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "jsonfeed";
12 version = "0.0.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-Etfi59oOCrLHavLRMQo3HASFnydrBnsyEtGUgcsv1aQ=";
20 };
21
22 postPatch = ''
23 # Mixing of dev and runtime requirements
24 substituteInPlace setup.py \
25 --replace-fail "install_requires=install_requires," "install_requires=[],"
26 '';
27
28 build-system = [ setuptools ];
29
30 dependencies = [ requests ];
31
32 # Module has no tests, only a placeholder
33 doCheck = false;
34
35 pythonImportsCheck = [ "jsonfeed" ];
36
37 meta = with lib; {
38 description = "Module to process json feed";
39 homepage = "https://pypi.org/project/jsonfeed/";
40 license = licenses.bsd2;
41 maintainers = with maintainers; [ fab ];
42 };
43}