depot/third_party/nixpkgs/pkgs/development/python-modules/ndjson/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
844 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
six,
watchdog,
}:
buildPythonPackage rec {
pname = "ndjson";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner', " ""
'';
nativeCheckInputs = [
pytestCheckHook
six
watchdog
];
pythonImportsCheck = [ "ndjson" ];
meta = with lib; {
description = "Module supports ndjson";
homepage = "https://github.com/rhgrant10/ndjson";
changelog = "https://github.com/rhgrant10/ndjson/blob/v${version}/HISTORY.rst";
license = licenses.gpl3Only;
maintainers = with maintainers; [ freezeboy ];
};
}