3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/hachoir/default.nix
2022-04-05 10:52:02 +02:00

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 ];
};
}