1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "iteration-utilities";
10 version = "0.12.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "MSeifert04";
17 repo = "iteration_utilities";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-KdL0lwlmBEG++JRociR92HdYxzArTeL5uEyUjvvwi1Y=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "iteration_utilities"
28 ];
29
30 meta = with lib; {
31 description = "Utilities based on Pythons iterators and generators";
32 homepage = "https://github.com/MSeifert04/iteration_utilities";
33 changelog = "https://github.com/MSeifert04/iteration_utilities/releases/tag/v${version}";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ jonringer ];
36 };
37}