1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "in-place"; 9 version = "0.5.0"; 10 format = "pyproject"; 11 12 src = fetchFromGitHub { 13 owner = "jwodder"; 14 repo = "inplace"; 15 rev = "v${version}"; 16 sha256 = "1w6q3d0gqz4mxvspd08l1nhsrw6rpzv1gnyj4ckx61b24f84p5gk"; 17 }; 18 19 postPatch = '' 20 substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" "" 21 ''; 22 23 checkInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "in_place" ]; 26 27 meta = with lib; { 28 description = "In-place file processing"; 29 homepage = "https://github.com/jwodder/inplace"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ samuela ]; 32 }; 33}