3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/kubernetes/default.nix
R. RyanTM 928b86424a python37Packages.kubernetes: 8.0.0 -> 8.0.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-kubernetes/versions
2019-01-02 17:05:42 -05:00

39 lines
1.3 KiB
Nix

{ stdenv, buildPythonPackage, fetchPypi, pythonAtLeast,
ipaddress, websocket_client, urllib3, pyyaml, requests_oauthlib, python-dateutil, google_auth, adal,
isort, pytest, coverage, mock, sphinx, autopep8, pep8, codecov, recommonmark, nose }:
buildPythonPackage rec {
pname = "kubernetes";
version = "8.0.1";
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 = "0y0aygnd7kpflwdm3zxrmsgws0frk4qwq3lnq92zsiyxcxh8r4i5";
};
checkInputs = [ isort coverage pytest mock sphinx autopep8 pep8 codecov recommonmark nose ];
propagatedBuildInputs = [ ipaddress websocket_client urllib3 pyyaml requests_oauthlib python-dateutil google_auth adal ];
meta = with stdenv.lib; {
description = "Kubernetes python client";
homepage = https://github.com/kubernetes-client/python;
license = licenses.asl20;
maintainers = with maintainers; [ lsix ];
};
}