1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, attrs 3, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "outcome"; 8 version = "1.2.0"; 9 disabled = pythonOlder "3.4"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "sha256-b4K9PeRdowPPH3ceyvoWM3UKNYQ2qLtg4Goc63RdJnI="; 14 }; 15 16 checkInputs = [ pytest ]; 17 propagatedBuildInputs = [ attrs ]; 18 # Has a test dependency on trio, which depends on outcome. 19 doCheck = false; 20 21 meta = { 22 description = "Capture the outcome of Python function calls."; 23 homepage = "https://github.com/python-trio/outcome"; 24 license = with lib.licenses; [ mit asl20 ]; 25 maintainers = with lib.maintainers; [ catern ]; 26 }; 27}