mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-23 01:41:05 +03:00
pythonPackages.github3_py: refactor move to python-modules
This commit is contained in:
parent
c26dd4138b
commit
dc56c8faf9
2 changed files with 46 additions and 29 deletions
45
pkgs/development/python-modules/github3_py/default.nix
Normal file
45
pkgs/development/python-modules/github3_py/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, unittest2
|
||||
, pytest
|
||||
, mock
|
||||
, betamax
|
||||
, betamax-matchers
|
||||
, dateutil
|
||||
, requests
|
||||
, pyopenssl
|
||||
, uritemplate_py
|
||||
, ndg-httpsclient
|
||||
, requests_toolbelt
|
||||
, pyasn1
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "github3.py";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1cxaqdqmz9w2afc0cw2jyv783fp0grydbik0frzj79azzkhyg4gf";
|
||||
};
|
||||
|
||||
buildInputs = [ unittest2 pytest mock betamax betamax-matchers dateutil ];
|
||||
propagatedBuildInputs = [ requests pyopenssl uritemplate_py ndg-httpsclient requests_toolbelt pyasn1 ];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
# TODO: only disable the tests that require network
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github3py.readthedocs.org/en/master/;
|
||||
description = "A wrapper for the GitHub API written in python";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue