forked from mirrors/nixpkgs
42 lines
742 B
Nix
42 lines
742 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, urwid
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hachoir";
|
|
version = "3.1.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vstinner";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-HlxDwkU0GccO+IUzbtVpLbsAo+Mcacm4/WrXWCsmpBg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|