git.iko.soy/typeable/nixpkgs
on master help sign in
github3.py: init at 1.0.0a2
commit3eab158fb8007d03e9ed295068140bbe25306bef authorPascal Wittmann <mail@pascal-wittmann.de> dateSun 13 Dec 2015, 16:27 (11 years ago) parent8443067
1 file changed+30
pkgs/top-level/python-packages.nix+30
pkgs/top-level/python-packages.nix+30
@@ -8225,6 +8225,36 @@ in modules // {
82258225 };
82268226 };
82278227
8228+ github3_py = buildPythonPackage rec {
8229+ name = "github3.py-${version}";
8230+ version = "1.0.0a2";
8231+
8232+ src = pkgs.fetchurl {
8233+ url = "https://pypi.python.org/packages/source/g/github3.py/${name}.tar.gz";
8234+ sha256 = "11xvwbzfy04vwbjnpc8wcrjjzghbrbdzffrdfk70v0zdnxqg8hc5";
8235+ };
8236+
8237+ buildInputs = with self; [ unittest2 pytest mock betamax betamax-matchers ];
8238+
8239+ propagatedBuildInputs = with self; [ requests2 pyopenssl uritemplate_py
8240+ ndg-httpsclient requests_toolbelt pyasn1 ];
8241+
8242+ postPatch = ''
8243+ sed -i -e 's/mock ==1.0.1/mock>=1.0.1/' setup.py
8244+ sed -i -e 's/unittest2 ==0.5.1/unittest2>=0.5.1/' setup.py
8245+ '';
8246+
8247+ # TODO: only disable the tests that require network
8248+ doCheck = false;
8249+
8250+ meta = with stdenv.lib; {
8251+ homepage = http://github3py.readthedocs.org/en/master/;
8252+ description = "A wrapper for the GitHub API written in python";
8253+ license = licenses.bsd3;
8254+ maintainers = with maintainers; [ pSub ];
8255+ };
8256+ };
8257+
82288258 goobook = buildPythonPackage rec {
82298259 name = "goobook-1.9";
82308260 disabled = isPy3k;