summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/iteration-utilities/default.nix
blob: 74cb922387d5bae34b6b604bfc7b48360a0ec557 (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
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "iteration-utilities";
  version = "0.13.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "MSeifert04";
    repo = "iteration_utilities";
    tag = "v${version}";
    hash = "sha256-SiqNUyuvsD5m5qz5ByYyVln3SSa4/D4EHpmM+pf8ngM=";
  };

  patches = [
    (fetchpatch {
      name = "python314-compat.patch";
      url = "https://github.com/MSeifert04/iteration_utilities/pull/347.patch";
      hash = "sha256-1BzUTbzxIw4kExdrAlS4Pbh1zPweyU78ln2qGL7XL58=";
    })
  ];

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "iteration_utilities" ];

  meta = {
    description = "Utilities based on Pythons iterators and generators";
    homepage = "https://github.com/MSeifert04/iteration_utilities";
    changelog = "https://github.com/MSeifert04/iteration_utilities/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}