Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 attrs, 7 pytest, 8}: 9 10buildPythonPackage rec { 11 pname = "outcome"; 12 version = "1.3.0.post0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-nc8C5l8pcbgAR7N3Ro5yomjhXArzzxI45v8U9/kRQ7g="; 17 }; 18 19 nativeBuildInputs = [ setuptools ]; 20 21 nativeCheckInputs = [ pytest ]; 22 propagatedBuildInputs = [ attrs ]; 23 # Has a test dependency on trio, which depends on outcome. 24 doCheck = false; 25 26 meta = { 27 description = "Capture the outcome of Python function calls"; 28 homepage = "https://github.com/python-trio/outcome"; 29 license = with lib.licenses; [ 30 mit 31 asl20 32 ]; 33 maintainers = with lib.maintainers; [ catern ]; 34 }; 35}