1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, urwid
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "hachoir";
11 version = "3.1.3";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "vstinner";
18 repo = pname;
19 rev = version;
20 hash = "sha256-HlxDwkU0GccO+IUzbtVpLbsAo+Mcacm4/WrXWCsmpBg=";
21 };
22
23 propagatedBuildInputs = [
24 urwid
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "hachoir"
33 ];
34
35 meta = with lib; {
36 description = "Python library to view and edit a binary stream";
37 homepage = "https://hachoir.readthedocs.io/";
38 license = with licenses; [ gpl2Only ];
39 maintainers = with maintainers; [ fab ];
40 };
41}