Merge pull request #41140 from bhipple/u/python-keyrings-alt

pythonPackages.keyrings-alt: 2.3 -> 3.1
This commit is contained in:
Robert Schütz 2018-05-27 19:37:46 +02:00 committed by GitHub
commit 873bb9a5b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,26 @@
{ stdenv, buildPythonPackage, fetchPypi, six
, pytest, unittest2, mock, keyring
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, six
, pytest, pytest-flake8, backports_unittest-mock, keyring, setuptools_scm
}:
buildPythonPackage rec {
pname = "keyrings.alt";
version = "2.3";
version = "3.1";
src = fetchPypi {
inherit pname version;
sha256 = "5cb9b6cdb5ce5e8216533e342d3e1b418ddd210466834061966d7dc1a4736f2d";
sha256 = "0nnva8g03dv6gdhjk1ihn2qw7g15232fyj8shipah9whgfv8d75m";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ six ];
# Fails with "ImportError: cannot import name mock"
doCheck = false;
checkInputs = [ pytest unittest2 mock keyring ];
#doCheck = false;
checkInputs = [ pytest pytest-flake8 keyring ] ++ stdenv.lib.optional (pythonOlder "3.3") backports_unittest-mock;
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
license = licenses.mit;