python312Packages.python-registry: refactor

This commit is contained in:
Fabian Affolter
2024-10-19 21:50:00 +02:00
parent 4bc8c5a1c8
commit 92da05ac54
@@ -1,29 +1,33 @@
{
lib,
buildPythonPackage,
enum-compat,
fetchFromGitHub,
pytestCheckHook,
unicodecsv,
pythonOlder,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "python-registry";
version = "1.4";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "williballenthin";
repo = pname;
rev = version;
sha256 = "0gwx5jcribgmmbz0ikhz8iphz7yj2d2nmk24nkdrjd3y5irly11s";
repo = "python-registry";
rev = "refs/tags/${version}";
hash = "sha256-OgRPcyx+NJnbtETMakUT0p8Pb0Qfzgj+qvWtmJksnT8=";
};
propagatedBuildInputs = [
enum-compat
unicodecsv
];
pythonRemoveDeps = [ "enum-compat" ];
build-system = [ setuptools ];
dependencies = [ unicodecsv ];
nativeCheckInputs = [
pytestCheckHook
@@ -35,8 +39,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "Registry" ];
meta = with lib; {
description = "Pure Python parser for Windows Registry hives";
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 = [ ];
};