summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/iniconfig/default.nix
blob: 29aa32c174165e028003d2cf2622d9745acc0d2b (plain)
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
{
  lib,
  buildPythonPackage,
  replaceVars,
  fetchPypi,
  hatchling,
}:

buildPythonPackage rec {
  pname = "iniconfig";
  version = "2.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-OrvS4ws2cz/uePnH9zCPLQBQ6I8Ah/0lwmRfY8dz4cc=";
  };

  build-system = [ hatchling ];

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

  pythonImportsCheck = [ "iniconfig" ];

  # Requires pytest, which in turn requires this package - causes infinite
  # recursion. See also: https://github.com/NixOS/nixpkgs/issues/63168
  doCheck = false;

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