1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytest-cov-stub,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "in-place";
13 version = "1.0.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "jwodder";
20 repo = "inplace";
21 tag = "v${version}";
22 hash = "sha256-PyOSuHHtftEPwL3mTwWYStZNXYX3EhptKfTu0PJjOZ8=";
23 };
24
25 build-system = [ hatchling ];
26
27 nativeCheckInputs = [
28 pytest-cov-stub
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "in_place" ];
33
34 meta = with lib; {
35 description = "In-place file processing";
36 homepage = "https://github.com/jwodder/inplace";
37 changelog = "https://github.com/jwodder/inplace/blob/${src.tag}/CHANGELOG.md";
38 license = licenses.mit;
39 maintainers = with maintainers; [ samuela ];
40 };
41}