1{ lib
2, buildPythonPackage
3, enum-compat
4, fetchFromGitHub
5, pytestCheckHook
6, unicodecsv
7}:
8
9buildPythonPackage rec {
10 pname = "python-registry";
11 version = "1.4";
12
13 src = fetchFromGitHub {
14 owner = "williballenthin";
15 repo = pname;
16 rev = version;
17 sha256 = "0gwx5jcribgmmbz0ikhz8iphz7yj2d2nmk24nkdrjd3y5irly11s";
18 };
19
20 propagatedBuildInputs = [
21 enum-compat
22 unicodecsv
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 disabledTestPaths = [
30 "samples"
31 ];
32
33 pythonImportsCheck = [
34 "Registry"
35 ];
36
37 meta = with lib; {
38 description = "Pure Python parser for Windows Registry hives";
39 homepage = "https://github.com/williballenthin/python-registry";
40 license = licenses.asl20;
41 maintainers = teams.determinatesystems.members;
42 };
43}