Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27, six 2, pytest, backports_unittest-mock, keyring, setuptools_scm, toml 3}: 4 5buildPythonPackage rec { 6 pname = "keyrings.alt"; 7 version = "4.0.2"; 8 disabled = isPy27; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "cc475635099d6edd7e475c5a479e5b4da5e811a3af04495a1e9ada488d16fe25"; 13 }; 14 15 postPatch = '' 16 substituteInPlace pytest.ini \ 17 --replace "--flake8" "" 18 ''; 19 20 nativeBuildInputs = [ setuptools_scm toml ]; 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}