python310Packages.aspectlib: init at 2.0.0

This commit is contained in:
Robert Schütz 2023-01-17 16:16:26 -08:00 committed by Robert Schütz
parent 9952d6bc39
commit ef77617bc0
2 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,65 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, fetchpatch
, setuptools
, fields
, process-tests
, pytestCheckHook
, tornado
}:
buildPythonPackage rec {
pname = "aspectlib";
version = "2.0.0";
disabled = pythonOlder "3.7";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-pLRhudoLUxrry5PvzePegIpyxgIm3Y2QLEZ9E/r3zpI=";
};
patches = [
# https://github.com/ionelmc/python-aspectlib/pull/25
(fetchpatch {
name = "darwin-compat.patch";
url = "https://github.com/ionelmc/python-aspectlib/commit/ef2c12304f08723dc8e79d1c59bc32c946d758dc.patch";
hash = "sha256-gtPFtwDsGIMkHTyuoiLk+SAGgB2Wyx/Si9HIdoIsvI8=";
})
];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
fields
];
pythonImportsCheck = [
"aspectlib"
"aspectlib.contrib"
"aspectlib.debug"
"aspectlib.test"
];
checkInputs = [
process-tests
pytestCheckHook
tornado
];
__darwinAllowLocalNetworking = true;
meta = {
changelog = "https://github.com/ionelmc/python-aspectlib/blob/v${version}/CHANGELOG.rst";
description = "Aspect-oriented programming, monkey-patch and decorators library";
homepage = "https://github.com/ionelmc/python-aspectlib";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -654,6 +654,8 @@ self: super: with self; {
asn1tools = callPackage ../development/python-modules/asn1tools { };
aspectlib = callPackage ../development/python-modules/aspectlib { };
aspell-python = callPackage ../development/python-modules/aspell-python { };
aspy-refactor-imports = callPackage ../development/python-modules/aspy-refactor-imports { };