summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-02-24 13:02:24 -0500
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2019-02-24 18:20:26 -0500
commitbbf7666674cae6eb70e93e761721994911e93923 (patch)
tree90898c8674809c8ad5cdd266499c13206087746c /pkgs
parentc0d6bd874344b62e187d89a7646ff7305923ace5 (diff)
downloadnixpkgs-bbf7666674cae6eb70e93e761721994911e93923.tar
nixpkgs-bbf7666674cae6eb70e93e761721994911e93923.tar.gz
nixpkgs-bbf7666674cae6eb70e93e761721994911e93923.tar.bz2
nixpkgs-bbf7666674cae6eb70e93e761721994911e93923.tar.lz
nixpkgs-bbf7666674cae6eb70e93e761721994911e93923.tar.xz
nixpkgs-bbf7666674cae6eb70e93e761721994911e93923.tar.zst
nixpkgs-bbf7666674cae6eb70e93e761721994911e93923.zip
pythonPackages.gidgethub: refactor build without flit
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/gidgethub/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/gidgethub/default.nix b/pkgs/development/python-modules/gidgethub/default.nix
index 4be26fe0e12..140f93f33f8 100644
--- a/pkgs/development/python-modules/gidgethub/default.nix
+++ b/pkgs/development/python-modules/gidgethub/default.nix
@@ -1,4 +1,4 @@
-{ stdenv
+{ lib
 , buildPythonPackage
 , fetchPypi
 , pythonOlder
@@ -15,24 +15,28 @@
 
 buildPythonPackage rec {
   pname = "gidgethub";
-  version = "3.0.0";
-  format = "flit";
+  version = "3.1.0";
 
   disabled = pythonOlder "3.6";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "1ebe79cf80ad64cb78c880efc7f30ac664e18b80dfd18ee201bf8685cf029628";
+    sha256 = "52119435ba73ddd5e697dae7bec8b93a048bc738720b81691ebd4b4d81d2d762";
   };
 
-  buildInputs = [ setuptools pytestrunner ];
+  nativeBuildInputs = [ setuptools pytestrunner ];
   checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
   propagatedBuildInputs = [ uritemplate ];
 
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "extras_require=extras_require," "extras_require=None,"
+  '';
+
   # requires network (reqests github.com)
   doCheck = false;
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "An async GitHub API library";
     homepage = https://github.com/brettcannon/gidgethub;
     license = licenses.asl20;