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

33 lines
658 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "contextlib2";
version = "21.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-qx4r/h0B2Wjht+jZAjvFHvNQm7ohe7cwzuOCfh7oKGk=";
};
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"contextlib2"
];
meta = with lib; {
description = "Backports and enhancements for the contextlib module";
homepage = "https://contextlib2.readthedocs.org/";
license = licenses.psfl;
maintainers = with maintainers; [ ];
};
}