mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 05:19:00 +02:00
pythonPackages.kubernetes: init at 5.0.0
This commit is contained in:
parent
eaa94b29ee
commit
95d59d4233
38
pkgs/development/python-modules/kubernetes/default.nix
Normal file
38
pkgs/development/python-modules/kubernetes/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi, pythonAtLeast,
|
||||
ipaddress, websocket_client, urllib3, pyyaml, requests_oauthlib, python-dateutil, google_auth,
|
||||
isort, pytest, coverage, mock, sphinx, autopep8, pep8, codecov, recommonmark, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kubernetes";
|
||||
version = "5.0.0";
|
||||
|
||||
prePatch = ''
|
||||
sed -e 's/sphinx>=1.2.1,!=1.3b1,<1.4 # BSD/sphinx/' -i test-requirements.txt
|
||||
|
||||
# This is used to randomize tests, which is not reproducible. Drop it.
|
||||
sed -e '/randomize/d' -i test-requirements.txt
|
||||
''
|
||||
# This is a python2 and python3.2 only requiremet since it is a backport of a python-3.3 api.
|
||||
+ (if (pythonAtLeast "3.3") then ''
|
||||
sed -e '/ipaddress/d' -i requirements.txt
|
||||
'' else "");
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1z8rrlq73bzli9rg57kj8ivz09vhsydyjq1ksbcis6j7h9c187zq";
|
||||
};
|
||||
|
||||
checkInputs = [ isort coverage pytest mock sphinx autopep8 pep8 codecov recommonmark nose ];
|
||||
propagatedBuildInputs = [ ipaddress websocket_client urllib3 pyyaml requests_oauthlib python-dateutil google_auth ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Kubernetes python client";
|
||||
homepage = https://github.com/kubernetes-client/python;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ lsix ];
|
||||
};
|
||||
}
|
|
@ -9202,6 +9202,8 @@ in {
|
|||
|
||||
kitchen = callPackage ../development/python-modules/kitchen/default.nix { };
|
||||
|
||||
kubernetes = callPackage ../development/python-modules/kubernetes/default.nix { };
|
||||
|
||||
pylast = callPackage ../development/python-modules/pylast/default.nix { };
|
||||
|
||||
pylru = callPackage ../development/python-modules/pylru/default.nix { };
|
||||
|
|
Loading…
Reference in a new issue