passExtensions.pass-import: 3.2 -> 3.5

Diff: https://github.com/roddhjav/pass-import/compare/v3.2...v3.5

Changelog: https://github.com/roddhjav/pass-import/blob/v3.5/CHANGELOG.rst

+10 -17
+10 -17
pkgs/tools/security/pass/extensions/import.nix
··· 1 { lib 2 - , fetchFromGitHub 3 , fetchpatch 4 , python3Packages 5 , gnupg ··· 8 9 python3Packages.buildPythonApplication rec { 10 pname = "pass-import"; 11 - version = "3.2"; 12 13 - src = fetchFromGitHub { 14 - owner = "roddhjav"; 15 - repo = "pass-import"; 16 - rev = "v${version}"; 17 - sha256 = "0hrpg7yiv50xmbajfy0zdilsyhbj5iv0qnlrgkfv99q1dvd5qy56"; 18 }; 19 20 - patches = [ 21 - (fetchpatch { 22 - name = "support-for-pykeepass-4.0.3.patch"; 23 - url = "https://github.com/roddhjav/pass-import/commit/f1b167578916d971ee4f99be99ba0e86ef49015e.patch"; 24 - hash = "sha256-u6bJbV3/QTfRaPauKSyCWNodpy6CKsreMXUZWKRbee0="; 25 - }) 26 - ]; 27 - 28 propagatedBuildInputs = with python3Packages; [ 29 cryptography 30 defusedxml 31 pyaml 32 pykeepass 33 python-magic # similar API to "file-magic", but already in nixpkgs. 34 secretstorage 35 ]; 36 37 nativeCheckInputs = [ ··· 46 47 postInstall = '' 48 mkdir -p $out/lib/password-store/extensions 49 - cp ${src}/import.bash $out/lib/password-store/extensions/import.bash 50 wrapProgram $out/lib/password-store/extensions/import.bash \ 51 --prefix PATH : "${python3Packages.python.withPackages (_: propagatedBuildInputs)}/bin" \ 52 --prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}" \ 53 --run "export PREFIX" 54 - cp -r ${src}/share $out/ 55 ''; 56 57 postCheck = ''
··· 1 { lib 2 + , fetchurl 3 , fetchpatch 4 , python3Packages 5 , gnupg ··· 8 9 python3Packages.buildPythonApplication rec { 10 pname = "pass-import"; 11 + version = "3.5"; 12 13 + src = fetchurl { 14 + url = "https://github.com/roddhjav/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; 15 + hash = "sha256-+wrff3OxPkAGu1Mn4Kl0KN4FmvIAb+MnaERcD5ScDNc="; 16 }; 17 18 propagatedBuildInputs = with python3Packages; [ 19 cryptography 20 defusedxml 21 + jsonpath-ng 22 pyaml 23 pykeepass 24 python-magic # similar API to "file-magic", but already in nixpkgs. 25 + requests 26 secretstorage 27 + zxcvbn 28 ]; 29 30 nativeCheckInputs = [ ··· 39 40 postInstall = '' 41 mkdir -p $out/lib/password-store/extensions 42 + cp import.bash $out/lib/password-store/extensions/import.bash 43 wrapProgram $out/lib/password-store/extensions/import.bash \ 44 --prefix PATH : "${python3Packages.python.withPackages (_: propagatedBuildInputs)}/bin" \ 45 --prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}" \ 46 --run "export PREFIX" 47 + cp -r share $out/ 48 ''; 49 50 postCheck = ''