summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/file-read-backwards/default.nix
blob: 9c309298e6c7633ff4511ee12479edbf0268e24c (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pytest-mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "file-read-backwards";
  version = "3.2.0";
  pyproject = true;

  src = fetchPypi {
    pname = "file_read_backwards";
    inherit version;
    hash = "sha256-VHjTBeuuquj+PGWFok38MmIXAiRFCsyTITmPDSbN0Qk=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [
    pytest-mock
    pytestCheckHook
  ];

  pythonImportsCheck = [ "file_read_backwards" ];

  meta = {
    description = "Memory efficient way of reading files line-by-line from the end of file";
    homepage = "https://github.com/RobinNil/file_read_backwards";
    changelog = "https://github.com/RobinNil/file_read_backwards/blob/v${version}/HISTORY.rst";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ j0hax ];
  };
}