Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 41 lines 999 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27, six 2, pytest, backports_unittest-mock, keyring, setuptools-scm 3}: 4 5buildPythonPackage rec { 6 pname = "keyrings.alt"; 7 version = "4.1.0"; 8 disabled = isPy27; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "52ccb61d6f16c10f32f30d38cceef7811ed48e086d73e3bae86f0854352c4ab2"; 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 ] ++ 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 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}