about summary refs log tree commit diff
path: root/pkgs/development/python-modules/iterable-io/default.nix
blob: 81799c7aec4fa5c86723b27ce603d288ea48a90c (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
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "iterable-io";
  version = "1.0.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "pR0Ps";
    repo = "iterable-io";
    rev = "refs/tags/v${version}";
    hash = "sha256-+PSINKS7/FeGHYvkOASA5m+1pBpKfURfylZ8CwKijgA=";
  };

  nativeBuildInputs = [ setuptools ];

  pythonImportsCheck = [ "iterableio" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Library to adapt iterables to a file-like interface";
    homepage = "https://github.com/pR0Ps/iterable-io";
    changelog = "https://github.com/pR0Ps/iterable-io/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.lgpl3Only;
    maintainers = [ lib.maintainers.mjoerg ];
  };
}