Unverified Commit f7b59782 authored by Sascha Grunert's avatar Sascha Grunert
Browse files

osc: 1.0.0b1 -> 1.3.0

parent c9c99c05
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4,13 +4,13 @@

buildPythonPackage rec {
  pname = "osc";
  version = "1.0.0b1";
  version = "1.3.0";

  src = fetchFromGitHub {
    owner = "openSUSE";
    repo = "osc";
    rev = version;
    sha256 = "cMltsR4Nxe0plHU5cP2Lj/qqlIqRbCXi6FXP8qx7908=";
    sha256 = "sha256-gHcPqo3AuSrVprYUGLenC0kw9hKNmjabZ1m6YVMsNPs=";
  };

  buildInputs = [ bashInteractive ]; # needed for bash-completion helper
@@ -18,8 +18,8 @@ buildPythonPackage rec {
  propagatedBuildInputs = [ urllib3 cryptography ];

  postInstall = ''
    install -D -m444 osc.fish $out/etc/fish/completions/osc.fish
    install -D -m555 dist/osc.complete $out/share/bash-completion/helpers/osc-helper
    install -D -m444 contrib/osc.fish $out/etc/fish/completions/osc.fish
    install -D -m555 contrib/osc.complete $out/share/bash-completion/helpers/osc-helper
    mkdir -p $out/share/bash-completion/completions
    cat >>$out/share/bash-completion/completions/osc <<EOF
    test -z "\$BASH_VERSION" && return