Merge pull request #236710 from fabaff/ndjson-pytest-runner

python311Packages.ndjson: adjust inputs

authored by Fabian Affolter and committed by GitHub 6be5a971 d72e92bd

+28 -6
+28 -6
pkgs/development/python-modules/ndjson/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, watchdog, flake8 2 - , pytest, pytest-runner, coverage, sphinx, twine }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestCheckHook 5 + , pythonOlder 6 + , six 7 + , watchdog 8 + }: 3 9 4 10 buildPythonPackage rec { 5 11 pname = "ndjson"; 6 12 version = "0.3.1"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 7 16 8 17 src = fetchPypi { 9 18 inherit pname version; 10 - sha256 = "v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY="; 19 + hash = "sha256-v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY="; 11 20 }; 12 21 13 - nativeCheckInputs = [ pytest pytest-runner flake8 twine sphinx coverage watchdog ]; 22 + postPatch = '' 23 + substituteInPlace setup.py \ 24 + --replace "'pytest-runner', " "" 25 + ''; 26 + 27 + nativeCheckInputs = [ 28 + pytestCheckHook 29 + six 30 + watchdog 31 + ]; 32 + 33 + pythonImportsCheck = [ 34 + "ndjson" 35 + ]; 14 36 15 37 meta = with lib; { 38 + description = "Module supports ndjson"; 16 39 homepage = "https://github.com/rhgrant10/ndjson"; 17 - description = "JsonDecoder"; 18 - platforms = platforms.unix; 40 + changelog = "https://github.com/rhgrant10/ndjson/blob/v${version}/HISTORY.rst"; 19 41 license = licenses.gpl3Only; 20 42 maintainers = with maintainers; [ freezeboy ]; 21 43 };