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