depot/third_party/nixpkgs/pkgs/development/python-modules/ndjson/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

44 lines
841 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 ];
};
}