Skip to content

Commit

Permalink
python312Packages.pypass: Modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Jul 26, 2024
1 parent 93201c2 commit 38ba835
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pkgs/development/python-modules/pypass/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
pexpect,
pythonAtLeast,
pytestCheckHook,
setuptools,
substituteAll,
tree,
xclip,
Expand All @@ -22,11 +23,11 @@
buildPythonPackage rec {
pname = "pypass";
version = "0.2.1";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "1nm4mj7pd7gz4ghic6b3wrnd1b59hd1f0axavdabfl79wy511l7r";
hash = "sha256-+dAQiufpULdU26or4EKDqazQbOZjGRbhI/+ddo+spNo=";
};

# Set absolute nix store paths to the executables that pypass uses
Expand All @@ -46,9 +47,11 @@ buildPythonPackage rec {
substituteInPlace requirements.txt --replace "enum34" ""
'';

build-system = [ setuptools ];

nativeBuildInputs = [ pbr ];

propagatedBuildInputs = [
dependencies = [
click
colorama
pexpect
Expand All @@ -70,13 +73,13 @@ buildPythonPackage rec {
# as the test environment is non-graphical.
disabledTests = [ "test_show_clip" ];

meta = with lib; {
meta = {
broken = stdenv.isDarwin;
description = "Password manager pass in Python";
mainProgram = "pypass";
homepage = "https://github.com/aviau/python-pass";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ jluttine ];
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ jluttine ];
};
}

0 comments on commit 38ba835

Please sign in to comment.