about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-registry/default.nix
blob: ef5ba5b438be6bf1bdb855f059f33041d13cdf7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, enum-compat
, fetchFromGitHub
, pytestCheckHook
, unicodecsv
, six
}:

buildPythonPackage rec {
  pname = "python-registry";
  version = "1.4";

  src = fetchFromGitHub {
    owner = "williballenthin";
    repo = pname;
    rev = version;
    sha256 = "0gwx5jcribgmmbz0ikhz8iphz7yj2d2nmk24nkdrjd3y5irly11s";
  };

  propagatedBuildInputs = [
    enum-compat
    unicodecsv
  ];

  nativeCheckInputs = [
    pytestCheckHook
    six
  ];

  disabledTestPaths = [
    "samples"
  ];

  pythonImportsCheck = [
    "Registry"
  ];

  meta = with lib; {
    description = "Pure Python parser for Windows Registry hives";
    homepage = "https://github.com/williballenthin/python-registry";
    license = licenses.asl20;
    maintainers = [ ];
  };
}