depot/third_party/nixpkgs/pkgs/development/python-modules/outcome/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

36 lines
752 B
Nix

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