Merge pull request #251937 from saschagrunert/osc

osc: 1.0.0b1 -> 1.3.0
This commit is contained in:
Matthias Beyer 2023-08-28 12:55:43 +02:00 committed by GitHub
commit c7e51b136c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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