depot/third_party/nixpkgs/pkgs/development/python-modules/wurlitzer/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

39 lines
758 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "wurlitzer";
version = "3.0.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Ik9f5wYYvjhywF393IxFcZHsGHBlRZYnn8we2t6+Pls=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"wurlitzer"
];
pytestFlagsArray = [
"test.py"
];
meta = with lib; {
description = "Capture C-level output in context managers";
homepage = "https://github.com/minrk/wurlitzer";
changelog = "https://github.com/minrk/wurlitzer/blob/{version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}