504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
28 lines
709 B
Nix
28 lines
709 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
, attrs
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "outcome";
|
|
version = "1.2.0";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-b4K9PeRdowPPH3ceyvoWM3UKNYQ2qLtg4Goc63RdJnI=";
|
|
};
|
|
|
|
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 ];
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
};
|
|
}
|