about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/iniconfig/default.nix
blob: 04f06c013d4b8e274345f4b972e325630f4b6d96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, substituteAll
, fetchPypi
, hatch-vcs
, hatchling
}:

buildPythonPackage rec {
  pname = "iniconfig";
  version = "2.0.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM=";
  };

  nativeBuildInputs = [
    hatchling
  ];

  patches = [
    # Cannot use hatch-vcs, due to an inifinite recursion
    (substituteAll {
      src = ./version.patch;
      inherit version;
    })
  ];

  pythonImportsCheck = [
    "iniconfig"
  ];

  doCheck = false; # avoid circular import with pytest

  meta = with lib; {
    description = "brain-dead simple parsing of ini files";
    homepage = "https://github.com/pytest-dev/iniconfig";
    license = licenses.mit;
    maintainers = with maintainers; [ jonringer ];
  };
}