summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-registry/default.nix
blob: b08d82bb3e48e786c5584c0094905a32caed4be4 (plain)
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
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  unicodecsv,
  pythonOlder,
  setuptools,
  six,
}:

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

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "williballenthin";
    repo = "python-registry";
    rev = "refs/tags/${version}";
    hash = "sha256-OgRPcyx+NJnbtETMakUT0p8Pb0Qfzgj+qvWtmJksnT8=";
  };

  pythonRemoveDeps = [ "enum-compat" ];

  build-system = [ setuptools ];

  dependencies = [ unicodecsv ];

  nativeCheckInputs = [
    pytestCheckHook
    six
  ];

  disabledTestPaths = [ "samples" ];

  pythonImportsCheck = [ "Registry" ];

  meta = with lib; {
    description = "Module to parse the Windows Registry hives";
    homepage = "https://github.com/williballenthin/python-registry";
    changelog = "https://github.com/williballenthin/python-registry/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = [ ];
  };
}