1{ lib
2, buildPythonPackage
3, substituteAll
4, fetchPypi
5, hatch-vcs
6, hatchling
7}:
8
9buildPythonPackage rec {
10 pname = "iniconfig";
11 version = "2.0.0";
12 format = "pyproject";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM=";
17 };
18
19 nativeBuildInputs = [
20 hatchling
21 ];
22
23 patches = [
24 # Cannot use hatch-vcs, due to an inifinite recursion
25 (substituteAll {
26 src = ./version.patch;
27 inherit version;
28 })
29 ];
30
31 pythonImportsCheck = [
32 "iniconfig"
33 ];
34
35 doCheck = false; # avoid circular import with pytest
36
37 meta = with lib; {
38 description = "brain-dead simple parsing of ini files";
39 homepage = "https://github.com/pytest-dev/iniconfig";
40 license = licenses.mit;
41 maintainers = with maintainers; [ jonringer ];
42 };
43}