mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #236710 from fabaff/ndjson-pytest-runner
python311Packages.ndjson: adjust inputs
This commit is contained in:
commit
6be5a971ec
@ -1,21 +1,43 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, watchdog, flake8
|
||||
, pytest, pytest-runner, coverage, sphinx, twine }:
|
||||
{ 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;
|
||||
sha256 = "v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY=";
|
||||
hash = "sha256-v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY=";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ pytest pytest-runner flake8 twine sphinx coverage watchdog ];
|
||||
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";
|
||||
description = "JsonDecoder";
|
||||
platforms = platforms.unix;
|
||||
changelog = "https://github.com/rhgrant10/ndjson/blob/v${version}/HISTORY.rst";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ freezeboy ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user