1{
2 lib,
3 buildPythonPackage,
4 enum-compat,
5 fetchFromGitHub,
6 pytestCheckHook,
7 unicodecsv,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "python-registry";
13 version = "1.4";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "williballenthin";
18 repo = pname;
19 rev = version;
20 sha256 = "0gwx5jcribgmmbz0ikhz8iphz7yj2d2nmk24nkdrjd3y5irly11s";
21 };
22
23 propagatedBuildInputs = [
24 enum-compat
25 unicodecsv
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 six
31 ];
32
33 disabledTestPaths = [ "samples" ];
34
35 pythonImportsCheck = [ "Registry" ];
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 = [ ];
42 };
43}