pythonPackages.geventhttpclient: refactor move to pyhton-modules
This commit is contained in:
parent
5448e18d12
commit
5582de06a7
36
pkgs/development/python-modules/geventhttpclient/default.nix
Normal file
36
pkgs/development/python-modules/geventhttpclient/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, gevent
|
||||
, certifi
|
||||
, six
|
||||
, backports_ssl_match_hostname
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "geventhttpclient";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bd87af8854f5fb05738916c8973671f7035568aec69b7c842887d6faf9c0a01d";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ gevent certifi six backports_ssl_match_hostname ];
|
||||
|
||||
# Several tests fail that require network
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
py.test $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/gwik/geventhttpclient;
|
||||
description = "HTTP client library for gevent";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
};
|
||||
|
||||
}
|
@ -2364,31 +2364,7 @@ in {
|
||||
|
||||
gevent = callPackage ../development/python-modules/gevent { };
|
||||
|
||||
geventhttpclient = buildPythonPackage rec {
|
||||
name = "geventhttpclient-${version}";
|
||||
version = "1.3.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/g/geventhttpclient/${name}.tar.gz";
|
||||
sha256 = "bd87af8854f5fb05738916c8973671f7035568aec69b7c842887d6faf9c0a01d";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ pytest ];
|
||||
propagatedBuildInputs = with self; [ gevent certifi six backports_ssl_match_hostname ];
|
||||
|
||||
# Several tests fail that require network
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
py.test $out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/gwik/geventhttpclient;
|
||||
description = "HTTP client library for gevent";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ koral ];
|
||||
};
|
||||
};
|
||||
geventhttpclient = callPackage ../development/python-modules/geventhttpclient { };
|
||||
|
||||
gevent-socketio = buildPythonPackage rec {
|
||||
name = "gevent-socketio-0.3.6";
|
||||
|
Loading…
Reference in New Issue
Block a user