From e940b154e2ec95174f53c9f4fed9338d09a6449e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 May 2024 09:30:06 +0200 Subject: [PATCH 1/3] python312Packages.aiowinreg: refactor --- pkgs/development/python-modules/aiowinreg/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aiowinreg/default.nix b/pkgs/development/python-modules/aiowinreg/default.nix index a24384e3c51e..2955220392bc 100644 --- a/pkgs/development/python-modules/aiowinreg/default.nix +++ b/pkgs/development/python-modules/aiowinreg/default.nix @@ -3,23 +3,28 @@ , fetchFromGitHub , prompt-toolkit , pythonOlder +, setuptools , winacl }: buildPythonPackage rec { pname = "aiowinreg"; version = "0.0.10"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "skelsec"; - repo = pname; + repo = "aiowinreg"; rev = "refs/tags/${version}"; hash = "sha256-PkrBjH+yeSLpwL9kH242xQKBsjv6a11k2c26qBwR6Fw="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ prompt-toolkit winacl @@ -34,10 +39,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python module to parse the registry hive"; - mainProgram = "awinreg"; homepage = "https://github.com/skelsec/aiowinreg"; changelog = "https://github.com/skelsec/aiowinreg/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; + mainProgram = "awinreg"; }; } From 376d52026dd6715f9552b43d5632cce71df4bd7e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 May 2024 09:30:46 +0200 Subject: [PATCH 2/3] python312Packages.aiowinreg: 0.0.10 -> 0.0.12 Diff: https://github.com/skelsec/aiowinreg/compare/refs/tags/0.0.10...0.0.12 Changelog: https://github.com/skelsec/aiowinreg/releases/tag/0.0.12 --- pkgs/development/python-modules/aiowinreg/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiowinreg/default.nix b/pkgs/development/python-modules/aiowinreg/default.nix index 2955220392bc..156924d33e83 100644 --- a/pkgs/development/python-modules/aiowinreg/default.nix +++ b/pkgs/development/python-modules/aiowinreg/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "aiowinreg"; - version = "0.0.10"; + version = "0.0.12"; pyproject = true; disabled = pythonOlder "3.6"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "skelsec"; repo = "aiowinreg"; rev = "refs/tags/${version}"; - hash = "sha256-PkrBjH+yeSLpwL9kH242xQKBsjv6a11k2c26qBwR6Fw="; + hash = "sha256-XQDBvBfocz5loUg9eZQz4FKGiCGCaczwhYE/vhy7mC0="; }; nativeBuildInputs = [ From 91af1971af85f35d9465e954b5c6fff99a718df3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 May 2024 09:31:07 +0200 Subject: [PATCH 3/3] python312Packages.aiowinreg: format with nixfmt --- .../python-modules/aiowinreg/default.nix | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/aiowinreg/default.nix b/pkgs/development/python-modules/aiowinreg/default.nix index 156924d33e83..bb6837c3f06f 100644 --- a/pkgs/development/python-modules/aiowinreg/default.nix +++ b/pkgs/development/python-modules/aiowinreg/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, prompt-toolkit -, pythonOlder -, setuptools -, winacl +{ + lib, + buildPythonPackage, + fetchFromGitHub, + prompt-toolkit, + pythonOlder, + setuptools, + winacl, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-XQDBvBfocz5loUg9eZQz4FKGiCGCaczwhYE/vhy7mC0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ prompt-toolkit @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project doesn't have tests doCheck = false; - pythonImportsCheck = [ - "aiowinreg" - ]; + pythonImportsCheck = [ "aiowinreg" ]; meta = with lib; { description = "Python module to parse the registry hive";