Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / hachoir / default.nix
blob4480dd89327585ff561bbb577bab3ae6c6e5133f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , urwid
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "hachoir";
11   version = "3.3.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "vstinner";
18     repo = pname;
19     rev = "refs/tags/${version}";
20     hash = "sha256-sTUJx8Xyhw4Z6juRtREw/okuVjSTSVWpSLKeZ7T8IR8=";
21   };
23   propagatedBuildInputs = [
24     urwid
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "hachoir"
33   ];
35   meta = with lib; {
36     description = "Python library to view and edit a binary stream";
37     homepage = "https://hachoir.readthedocs.io/";
38     changelog = "https://github.com/vstinner/hachoir/blob/${version}/doc/changelog.rst";
39     license = with licenses; [ gpl2Only ];
40     maintainers = with maintainers; [ fab ];
41   };