Skip to content

Commit

Permalink
python3Packages.hachoir: init at 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Apr 21, 2021
1 parent 44fa00a commit 04991f2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/hachoir/default.nix
@@ -0,0 +1,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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -23471,6 +23471,8 @@ in

gxplugins-lv2 = callPackage ../applications/audio/gxplugins-lv2 { };

hachoir = with python3Packages; toPythonApplication hachoir;

hackrf = callPackage ../applications/radio/hackrf { };

hacksaw = callPackage ../tools/misc/hacksaw {};
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -3069,6 +3069,8 @@ in {

habanero = callPackage ../development/python-modules/habanero { };

hachoir = callPackage ../development/python-modules/hachoir { };

ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { };

halo = callPackage ../development/python-modules/halo { };
Expand Down

0 comments on commit 04991f2

Please sign in to comment.