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