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