python312Packages.python-registry: refactor (#349849)

This commit is contained in:
Fabian Affolter 2024-10-20 00:21:44 +02:00 committed by GitHub
commit a8d5e23e4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [ ];
};