pythonPackages.gidgethub: refactor build without flit
This commit is contained in:
parent
c0d6bd8743
commit
bbf7666674
@ -1,4 +1,4 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
@ -15,24 +15,28 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gidgethub";
|
pname = "gidgethub";
|
||||||
version = "3.0.0";
|
version = "3.1.0";
|
||||||
format = "flit";
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1ebe79cf80ad64cb78c880efc7f30ac664e18b80dfd18ee201bf8685cf029628";
|
sha256 = "52119435ba73ddd5e697dae7bec8b93a048bc738720b81691ebd4b4d81d2d762";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools pytestrunner ];
|
nativeBuildInputs = [ setuptools pytestrunner ];
|
||||||
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
||||||
propagatedBuildInputs = [ uritemplate ];
|
propagatedBuildInputs = [ uritemplate ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "extras_require=extras_require," "extras_require=None,"
|
||||||
|
'';
|
||||||
|
|
||||||
# requires network (reqests github.com)
|
# requires network (reqests github.com)
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "An async GitHub API library";
|
description = "An async GitHub API library";
|
||||||
homepage = https://github.com/brettcannon/gidgethub;
|
homepage = https://github.com/brettcannon/gidgethub;
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user