hexio: 1.0-RC1 -> 1.1, remove python2 (#389883)

authored by Gaétan Lepage and committed by GitHub f44054eb 750fef2a

+15 -11
+15 -11
pkgs/by-name/he/hexio/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchFromGitHub, 4 + fetchFromGitLab, 5 5 pcsclite, 6 6 pth, 7 - python2, 7 + python3Packages, 8 8 }: 9 - 10 9 stdenv.mkDerivation rec { 11 10 pname = "hexio"; 12 - version = "1.0-RC1"; 11 + version = "1.1"; 13 12 14 - src = fetchFromGitHub { 15 - sha256 = "08jxkdi0gjsi8s793f9kdlad0a58a0xpsaayrsnpn9bpmm5cgihq"; 16 - rev = "version-${version}"; 13 + src = fetchFromGitLab { 17 14 owner = "vanrein"; 18 15 repo = "hexio"; 16 + tag = "v${version}"; 17 + hash = "sha256-jp7VHT08Rhw5nUtNpqkRHDHT0R51PCBy0cKb1sI6zkg="; 19 18 }; 20 19 21 20 strictDeps = true; 22 21 22 + nativeBuildInputs = [ python3Packages.wrapPython ]; 23 + 23 24 buildInputs = [ 24 25 pcsclite 25 26 pth 26 - python2 27 27 ]; 28 28 29 - patchPhase = '' 29 + postPatch = '' 30 30 substituteInPlace Makefile \ 31 - --replace '-I/usr/local/include/PCSC/' '-I${lib.getDev pcsclite}/include/PCSC/' \ 32 - --replace '-L/usr/local/lib/pth' '-I${pth}/lib/' 31 + --replace-fail '-I/usr/local/include/PCSC/' '-I${lib.getDev pcsclite}/include/PCSC/' \ 32 + --replace-fail '-L/usr/local/lib/pth' '-I${pth}/lib/' 33 33 ''; 34 34 35 35 installPhase = '' 36 36 mkdir -p $out/bin $out/lib $out/sbin $out/man 37 37 make DESTDIR=$out PREFIX=/ all 38 38 make DESTDIR=$out PREFIX=/ install 39 + ''; 40 + 41 + postFixup = '' 42 + wrapPythonPrograms 39 43 ''; 40 44 41 45 meta = with lib; {