depot/third_party/nixpkgs/pkgs/development/python-modules/outcome/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
722 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
attrs,
pytest,
}:
buildPythonPackage rec {
pname = "outcome";
version = "1.3.0.post0";
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
];
maintainers = with lib.maintainers; [ catern ];
};
}