python311Packages.xkcdpass: refactor

This commit is contained in:
Fabian Affolter 2024-04-02 09:04:29 +02:00 committed by GitHub
parent 0389e2c757
commit 6619849f93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,12 +5,13 @@
, pytestCheckHook , pytestCheckHook
, pythonAtLeast , pythonAtLeast
, pythonOlder , pythonOlder
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "xkcdpass"; pname = "xkcdpass";
version = "1.19.9"; version = "1.19.9";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -23,6 +24,10 @@ buildPythonPackage rec {
installShellFiles installShellFiles
]; ];
build-system = [
setuptools
];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
]; ];
@ -43,9 +48,9 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Generate secure multiword passwords/passphrases, inspired by XKCD"; description = "Generate secure multiword passwords/passphrases, inspired by XKCD";
mainProgram = "xkcdpass";
homepage = "https://github.com/redacted/XKCD-password-generator"; homepage = "https://github.com/redacted/XKCD-password-generator";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
mainProgram = "xkcdpass";
}; };
} }