Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.python-registry: refactor #349849

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions pkgs/development/python-modules/python-registry/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:/williballenthin/python-registry";
changelog = "https:/williballenthin/python-registry/releases/tag/${version}";
license = licenses.asl20;
maintainers = [ ];
};
Expand Down