diff --git a/pkgs/development/python-modules/osc/default.nix b/pkgs/development/python-modules/osc/default.nix index 25d2d9caa316..8a5812bcf28f 100644 --- a/pkgs/development/python-modules/osc/default.nix +++ b/pkgs/development/python-modules/osc/default.nix @@ -1,24 +1,23 @@ -{ stdenv, lib, buildPythonPackage, fetchFromGitHub, bashInteractive, urlgrabber -, m2crypto, rpm, chardet +{ stdenv, lib, buildPythonPackage, fetchFromGitHub, bashInteractive +, rpm, urllib3, cryptography, diffstat }: buildPythonPackage rec { pname = "osc"; - version = "0.170.0"; + version = "1.0.0b1"; src = fetchFromGitHub { owner = "openSUSE"; repo = "osc"; rev = version; - sha256 = "10dj9kscz59qm8rw5084gf0m8ail2rl7r8rg66ij92x88wvi9mbz"; + sha256 = "cMltsR4Nxe0plHU5cP2Lj/qqlIqRbCXi6FXP8qx7908="; }; buildInputs = [ bashInteractive ]; # needed for bash-completion helper - checkInputs = [ rpm ]; - propagatedBuildInputs = [ urlgrabber m2crypto chardet ]; + checkInputs = [ rpm diffstat ]; + propagatedBuildInputs = [ urllib3 cryptography ]; postInstall = '' - ln -s $out/bin/osc-wrapper.py $out/bin/osc install -D -m444 osc.fish $out/etc/fish/completions/osc.fish install -D -m555 dist/osc.complete $out/share/bash-completion/helpers/osc-helper mkdir -p $out/share/bash-completion/completions @@ -30,6 +29,8 @@ buildPythonPackage rec { EOF ''; + preCheck = "HOME=$TOP/tmp"; + meta = with lib; { broken = stdenv.isDarwin; homepage = "https://github.com/openSUSE/osc";