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 }: 3 4 buildPythonPackage rec { 5 pname = "ndjson"; 6 version = "0.3.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 - sha256 = "v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY="; 11 }; 12 13 - nativeCheckInputs = [ pytest pytest-runner flake8 twine sphinx coverage watchdog ]; 14 15 meta = with lib; { 16 homepage = "https://github.com/rhgrant10/ndjson"; 17 - description = "JsonDecoder"; 18 - platforms = platforms.unix; 19 license = licenses.gpl3Only; 20 maintainers = with maintainers; [ freezeboy ]; 21 };
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytestCheckHook 5 + , pythonOlder 6 + , six 7 + , watchdog 8 + }: 9 10 buildPythonPackage rec { 11 pname = "ndjson"; 12 version = "0.3.1"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + hash = "sha256-v5dGy2uxy1PRcs2n8VTAfHhtZl/yg0Hk5om3lrIp5dY="; 20 }; 21 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 + ]; 36 37 meta = with lib; { 38 + description = "Module supports ndjson"; 39 homepage = "https://github.com/rhgrant10/ndjson"; 40 + changelog = "https://github.com/rhgrant10/ndjson/blob/v${version}/HISTORY.rst"; 41 license = licenses.gpl3Only; 42 maintainers = with maintainers; [ freezeboy ]; 43 };