2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
fetchpatch,
|
|
|
|
setuptools,
|
|
|
|
fields,
|
|
|
|
process-tests,
|
|
|
|
pytestCheckHook,
|
|
|
|
tornado,
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aspectlib";
|
|
|
|
version = "2.0.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ fields ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aspectlib"
|
|
|
|
"aspectlib.contrib"
|
|
|
|
"aspectlib.debug"
|
|
|
|
"aspectlib.test"
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
process-tests
|
|
|
|
pytestCheckHook
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "-W ignore::DeprecationWarning" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
__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 ];
|
|
|
|
};
|
|
|
|
}
|