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 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-nc8C5l8pcbgAR7N3Ro5yomjhXArzzxI45v8U9/kRQ7g=";
18 };
19
20 nativeBuildInputs = [ setuptools ];
21
22 nativeCheckInputs = [ pytest ];
23 propagatedBuildInputs = [ attrs ];
24 # Has a test dependency on trio, which depends on outcome.
25 doCheck = false;
26
27 meta = {
28 description = "Capture the outcome of Python function calls";
29 homepage = "https://github.com/python-trio/outcome";
30 license = with lib.licenses; [
31 mit
32 asl20
33 ];
34 maintainers = with lib.maintainers; [ catern ];
35 };
36}