2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
unicodecsv,
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
six,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
2021-07-14 22:03:04 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-registry";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "1.4";
|
2024-10-23 06:41:50 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "williballenthin";
|
2024-10-23 06:41:50 +00:00
|
|
|
repo = "python-registry";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-OgRPcyx+NJnbtETMakUT0p8Pb0Qfzgj+qvWtmJksnT8=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
pythonRemoveDeps = [ "enum-compat" ];
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ unicodecsv ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-14 22:03:04 +00:00
|
|
|
pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
six
|
2021-07-14 22:03:04 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "samples" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "Registry" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-10-23 06:41:50 +00:00
|
|
|
description = "Module to parse the Windows Registry hives";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/williballenthin/python-registry";
|
2024-10-23 06:41:50 +00:00
|
|
|
changelog = "https://github.com/williballenthin/python-registry/releases/tag/${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|