git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.gidgethub: init at 2.5.0
commit1ba50fe163b03b4e1083c8baaa112c827f5197ab authorChris Ostrouchov <chris.ostrouchov@gmail.com> dateSun 14 Oct 2018, 10:36 (8 years ago) parent4a5c5b7
2 files changed+42
pkgs/development/python-modules/gidgethub/default.nix+40 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/gidgethub/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, pythonOlder
5+, setuptools
6+, pytestrunner
7+, pytest
8+, pytest-asyncio
9+, twisted
10+, treq
11+, tornado
12+, aiohttp
13+, uritemplate
14+}:
15+
16+buildPythonPackage rec {
17+ pname = "gidgethub";
18+ version = "2.5.0";
19+
20+ disabled = pythonOlder "3.6";
21+
22+ src = fetchPypi {
23+ inherit pname version;
24+ sha256 = "d37fdfd149bc0efa21d3899c737d9b5c7ff6348a9b3f03bf3aa0e9f8ca345483";
25+ };
26+
27+ buildInputs = [ setuptools pytestrunner ];
28+ checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
29+ propagatedBuildInputs = [ uritemplate ];
30+
31+ # requires network (reqests github.com)
32+ doCheck = false;
33+
34+ meta = with stdenv.lib; {
35+ description = "An async GitHub API library";
36+ homepage = https://github.com/brettcannon/gidgethub;
37+ license = licenses.asl20;
38+ maintainers = [ maintainers.costrouc ];
39+ };
40+}
pkgs/top-level/python-packages.nix+2
@@ -340,6 +340,8 @@ in {
340340
341341 genanki = callPackage ../development/python-modules/genanki { };
342342
343+ gidgethub = callPackage ../development/python-modules/gidgethub { };
344+
343345 globus-sdk = callPackage ../development/python-modules/globus-sdk { };
344346
345347 goocalendar = callPackage ../development/python-modules/goocalendar { };