diff options
Diffstat (limited to 'pkgs/development/python-modules/jsonfeed/default.nix')
-rw-r--r-- | pkgs/development/python-modules/jsonfeed/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/jsonfeed/default.nix b/pkgs/development/python-modules/jsonfeed/default.nix new file mode 100644 index 0000000000000..8cde64656acce --- /dev/null +++ b/pkgs/development/python-modules/jsonfeed/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pythonOlder, + requests, +}: + +buildPythonPackage rec { + pname = "jsonfeed"; + version = "0.0.1"; + pyproject = true; + + disabled = pythonOlder "3.9"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-Etfi59oOCrLHavLRMQo3HASFnydrBnsyEtGUgcsv1aQ="; + }; + + postPatch = '' + # Mixing of dev and runtime requirements + substituteInPlace setup.py \ + --replace-fail "install_requires=install_requires," "install_requires=[]," + ''; + + build-system = [ setuptools ]; + + dependencies = [ requests ]; + + # Module has no tests, only a placeholder + doCheck = false; + + pythonImportsCheck = [ "jsonfeed" ]; + + meta = with lib; { + description = "Module to process json feed"; + homepage = "https://pypi.org/project/jsonfeed/"; + license = licenses.bsd2; + maintainers = with maintainers; [ fab ]; + }; +} |