python3Packages.jaraco-context: init at 4.1.1

This commit is contained in:
Fabian Affolter
2021-11-30 18:52:55 -08:00
committed by Jonathan Ringer
parent 307559ca0f
commit aa0dcc60e0
2 changed files with 46 additions and 0 deletions
@@ -0,0 +1,44 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "jaraco-context";
version = "4.1.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jaraco";
repo = "jaraco.context";
rev = "v${version}";
sha256 = "O9Lwv2d/qbiXxIVCp6FLmVKaz0MzAUkoUd0jAyIvgJc=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
pythonNamespaces = [
"jaraco"
];
nativeBuildInputs = [
setuptools-scm
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "jaraco.context" ];
meta = with lib; {
description = "Python module for context management";
homepage = "https://github.com/jaraco/jaraco.context";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
+2
View File
@@ -3962,6 +3962,8 @@ in {
jaraco_collections = callPackage ../development/python-modules/jaraco_collections { };
jaraco-context = callPackage ../development/python-modules/jaraco-context { };
jaraco_functools = callPackage ../development/python-modules/jaraco_functools { };
jaraco_itertools = callPackage ../development/python-modules/jaraco_itertools { };