nixpkgs/pkgs/development/python-modules/contextlib2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
792 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, python
2023-05-19 02:55:41 +00:00
, pythonAtLeast
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "contextlib2";
version = "21.6.0";
format = "setuptools";
2023-05-19 02:55:41 +00:00
# Python 3.11 not currently supported
# https://github.com/jazzband/contextlib2/issues/43
disabled = pythonOlder "3.6" || pythonAtLeast "3.11";
2019-08-13 21:52:01 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-qx4r/h0B2Wjht+jZAjvFHvNQm7ohe7cwzuOCfh7oKGk=";
};
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"contextlib2"
];
2017-12-05 19:34:20 +00:00
meta = with lib; {
description = "Backports and enhancements for the contextlib module";
homepage = "https://contextlib2.readthedocs.org/";
license = licenses.psfl;
maintainers = with maintainers; [ ];
};
2017-12-05 19:34:20 +00:00
}