about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/hachoir/default.nix
blob: 2c46b14a27445aea0858e19cf7f9819373c27f23 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, urwid
}:

buildPythonPackage rec {
  pname = "hachoir";
  version = "3.1.2";

  src = fetchFromGitHub {
    owner = "vstinner";
    repo = pname;
    rev = version;
    sha256 = "06544qmmimvaznwcjs8wwfih1frdd7anwcw5z07cf69l8p146p0y";
  };

  propagatedBuildInputs = [
    urwid
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "hachoir" ];

  meta = with lib; {
    description = "Python library to view and edit a binary stream";
    homepage = "https://hachoir.readthedocs.io/";
    license = with licenses; [ gpl2Only ];
    maintainers = with maintainers; [ fab ];
  };
}