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