nixpkgs/pkgs/development/python-modules/ndjson/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
841 B
Nix
Raw Normal View History

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