Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 27 lines 691 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, attrs 3, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "outcome"; 8 version = "1.0.1"; 9 disabled = pythonOlder "3.4"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "fc7822068ba7dd0fc2532743611e8a73246708d3564e29a39f93d6ab3701b66f"; 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}