pythonPackages.github3_py: cleanup
This commit is contained in:
parent
0aac84e1c3
commit
7c995f1227
1 changed files with 12 additions and 10 deletions
|
@ -1,18 +1,19 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, pythonOlder
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, unittest2
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
, betamax
|
, betamax
|
||||||
|
, pytest
|
||||||
, betamax-matchers
|
, betamax-matchers
|
||||||
, dateutil
|
, unittest2
|
||||||
|
, mock
|
||||||
, requests
|
, requests
|
||||||
, pyopenssl
|
|
||||||
, uritemplate
|
, uritemplate
|
||||||
|
, dateutil
|
||||||
|
, jwcrypto
|
||||||
|
, pyopenssl
|
||||||
, ndg-httpsclient
|
, ndg-httpsclient
|
||||||
, pyasn1
|
, pyasn1
|
||||||
, jwcrypto
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -24,18 +25,19 @@ buildPythonPackage rec {
|
||||||
sha256 = "35fea5bf3567a8e88d3660686d83f96ef164e698ce6fb30f9e2b0edded7357af";
|
sha256 = "35fea5bf3567a8e88d3660686d83f96ef164e698ce6fb30f9e2b0edded7357af";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unittest2 pytest mock betamax betamax-matchers dateutil ];
|
checkInputs = [ betamax pytest betamax-matchers ]
|
||||||
|
++ lib.optional (pythonOlder "3") unittest2
|
||||||
|
++ lib.optional (pythonOlder "3.3") mock;
|
||||||
propagatedBuildInputs = [ requests uritemplate dateutil jwcrypto pyopenssl ndg-httpsclient pyasn1 ];
|
propagatedBuildInputs = [ requests uritemplate dateutil jwcrypto pyopenssl ndg-httpsclient pyasn1 ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -e 's/mock ==1.0.1/mock>=1.0.1/' setup.py
|
|
||||||
sed -i -e 's/unittest2 ==0.5.1/unittest2>=0.5.1/' setup.py
|
sed -i -e 's/unittest2 ==0.5.1/unittest2>=0.5.1/' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# TODO: only disable the tests that require network
|
# TODO: only disable the tests that require network
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = http://github3py.readthedocs.org/en/master/;
|
homepage = http://github3py.readthedocs.org/en/master/;
|
||||||
description = "A wrapper for the GitHub API written in python";
|
description = "A wrapper for the GitHub API written in python";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
|
Loading…
Reference in a new issue