nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 unicodecsv,
7 setuptools,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "python-registry";
13 version = "1.4";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "williballenthin";
18 repo = "python-registry";
19 tag = version;
20 hash = "sha256-OgRPcyx+NJnbtETMakUT0p8Pb0Qfzgj+qvWtmJksnT8=";
21 };
22
23 pythonRemoveDeps = [ "enum-compat" ];
24
25 build-system = [ setuptools ];
26
27 dependencies = [ unicodecsv ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 six
32 ];
33
34 disabledTestPaths = [ "samples" ];
35
36 pythonImportsCheck = [ "Registry" ];
37
38 meta = {
39 description = "Module to parse the Windows Registry hives";
40 homepage = "https://github.com/williballenthin/python-registry";
41 changelog = "https://github.com/williballenthin/python-registry/releases/tag/${version}";
42 license = lib.licenses.asl20;
43 maintainers = [ ];
44 };
45}