summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/outcome/default.nix
blob: a8c2ff9d07240ff0f2a031c6fb38ce5b42e59bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  attrs,
  pytest,
}:

buildPythonPackage rec {
  pname = "outcome";
  version = "1.3.0.post0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-nc8C5l8pcbgAR7N3Ro5yomjhXArzzxI45v8U9/kRQ7g=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [ pytest ];
  propagatedBuildInputs = [ attrs ];
  # Has a test dependency on trio, which depends on outcome.
  doCheck = false;

  meta = {
    description = "Capture the outcome of Python function calls";
    homepage = "https://github.com/python-trio/outcome";
    license = with lib.licenses; [
      mit
      asl20
    ];
  };
}