2018-05-08 22:19:22 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, attrs
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "outcome";
|
2022-07-16 10:59:22 +00:00
|
|
|
version = "1.2.0";
|
2018-05-08 22:19:22 +00:00
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-16 10:59:22 +00:00
|
|
|
sha256 = "sha256-b4K9PeRdowPPH3ceyvoWM3UKNYQ2qLtg4Goc63RdJnI=";
|
2018-05-08 22:19:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ attrs ];
|
|
|
|
# Has a test dependency on trio, which depends on outcome.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Capture the outcome of Python function calls.";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/python-trio/outcome";
|
2018-05-08 22:19:22 +00:00
|
|
|
license = with lib.licenses; [ mit asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|