1{
2 lib,
3 buildPythonPackage,
4 substituteAll,
5 fetchPypi,
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 = [ hatchling ];
20
21 patches = [
22 # Cannot use hatch-vcs, due to an inifinite recursion
23 (substituteAll {
24 src = ./version.patch;
25 inherit version;
26 })
27 ];
28
29 pythonImportsCheck = [ "iniconfig" ];
30
31 # Requires pytest, which in turn requires this package - causes infinite
32 # recursion. See also: https://github.com/NixOS/nixpkgs/issues/63168
33 doCheck = false;
34
35 meta = with lib; {
36 description = "brain-dead simple parsing of ini files";
37 homepage = "https://github.com/pytest-dev/iniconfig";
38 license = licenses.mit;
39 maintainers = [ ];
40 };
41}