Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 41 lines 1.0 kB view raw
1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, isPy27, six 2, pytest, backports_unittest-mock, keyring, setuptools_scm 3}: 4 5buildPythonPackage rec { 6 pname = "keyrings.alt"; 7 version = "3.4.0"; 8 disabled = isPy27; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "91328ac4229e70b1d0061d21bf61d36b031a6b4828f2682e38c741812f6eb23d"; 13 }; 14 15 postPatch = '' 16 substituteInPlace pytest.ini \ 17 --replace "--flake8" "" 18 ''; 19 20 nativeBuildInputs = [ setuptools_scm ]; 21 propagatedBuildInputs = [ six ]; 22 23 checkInputs = [ pytest keyring ] ++ stdenv.lib.optional (pythonOlder "3.3") backports_unittest-mock; 24 25 # heavily relies on importing tests from keyring package 26 doCheck = false; 27 checkPhase = '' 28 py.test 29 ''; 30 31 pythonImportsCheck = [ 32 "keyrings.alt" 33 ]; 34 35 meta = with stdenv.lib; { 36 license = licenses.mit; 37 description = "Alternate keyring implementations"; 38 homepage = "https://github.com/jaraco/keyrings.alt"; 39 maintainers = with maintainers; [ nyarly ]; 40 }; 41}