summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hachoir/default.nix
blob: 0e84f20ec5d34aac98d3bdc9aa01e169a5530a9c (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  urwid,
}:

buildPythonPackage rec {
  pname = "hachoir";
  version = "3.3.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "vstinner";
    repo = "hachoir";
    tag = version;
    hash = "sha256-sTUJx8Xyhw4Z6juRtREw/okuVjSTSVWpSLKeZ7T8IR8=";
  };

  propagatedBuildInputs = [ urwid ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "hachoir" ];

  meta = {
    description = "Python library to view and edit a binary stream";
    homepage = "https://hachoir.readthedocs.io/";
    changelog = "https://github.com/vstinner/hachoir/blob/${version}/doc/changelog.rst";
    license = with lib.licenses; [ gpl2Only ];
    maintainers = with lib.maintainers; [ fab ];
  };
}