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