1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pybind11,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "binary2strings";
13 version = "0.1.13";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "glmcdona";
20 repo = "binary2strings";
21 tag = "v${version}";
22 hash = "sha256-3UPT0PdnPAhOu3J2vU5NxE3f4Nb1zwuX3hJiy87nLD0=";
23 };
24
25 nativeBuildInputs = [
26 pybind11
27 setuptools
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "binary2strings" ];
33
34 enabledTestPaths = [ "tests/test.py" ];
35
36 meta = with lib; {
37 description = "Module to extract Ascii, Utf8, and Unicode strings from binary data";
38 homepage = "https://github.com/glmcdona/binary2strings";
39 changelog = "https://github.com/glmcdona/binary2strings/releases/tag/v${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}