biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / hachoir / default.nix
blobe6c3b64f8e62d0048a397568b62a2c4adf2c95be
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   urwid,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "hachoir";
12   version = "3.3.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "vstinner";
19     repo = pname;
20     rev = "refs/tags/${version}";
21     hash = "sha256-sTUJx8Xyhw4Z6juRtREw/okuVjSTSVWpSLKeZ7T8IR8=";
22   };
24   propagatedBuildInputs = [ urwid ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "hachoir" ];
30   meta = with lib; {
31     description = "Python library to view and edit a binary stream";
32     homepage = "https://hachoir.readthedocs.io/";
33     changelog = "https://github.com/vstinner/hachoir/blob/${version}/doc/changelog.rst";
34     license = with licenses; [ gpl2Only ];
35     maintainers = with maintainers; [ fab ];
36   };