587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
43 lines
887 B
Nix
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 ];
|
|
};
|
|
}
|