pythonPackages.github-cli: enable tests

This commit is contained in:
Rok Garbas 2016-02-22 12:27:34 +01:00
parent cd235722d3
commit 32e3475e93

View File

@ -2738,15 +2738,22 @@ in modules // {
}; };
github-cli = buildPythonPackage rec { github-cli = buildPythonPackage rec {
name = "github-cli-1.0.0"; version = "1.0.0";
name = "github-cli-${version}";
propagatedBuildInputs = with self; [ simplejson ]; src = pkgs.fetchFromGitHub {
doCheck = false; owner = "jsmits";
repo = "github-cli";
src = pkgs.fetchurl { rev = version;
url = "https://pypi.python.org/packages/source/g/github-cli/${name}.tar.gz"; sha256 = "16bwn42wqd76zs97v8p6mqk79p5i2mb06ljk67lf8gy6kvqc1x8y";
sha256 = "0csr8q208a0nixxs8mx6nbak19sylcpjcng50c2i6qldsxfbh1af";
}; };
buildInputs = with self; [ nose pkgs.git ];
propagatedBuildInputs = with self; [ simplejson ];
# skipping test_issues_cli.py since it requires access to the github.com
patchPhase = "rm tests/test_issues_cli.py";
checkPhase = "nosetests tests/";
meta.maintainers = with maintainers; [ garbas ]; meta.maintainers = with maintainers; [ garbas ];
}; };