depot/third_party/nixpkgs/pkgs/development/python-modules/jsonfeed/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

43 lines
887 B
Nix

{
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 ];
};
}