blob: 6cbbac920c55968aa2b03e6e9f7783b668f67be1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
setuptools,
fields,
process-tests,
pytestCheckHook,
tornado,
}:
buildPythonPackage rec {
pname = "aspectlib";
version = "2.0.0";
pyproject = true;
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"
];
nativeCheckInputs = [
process-tests
pytestCheckHook
tornado
];
pytestFlags = [ "-Wignore::DeprecationWarning" ];
__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 ];
};
}
|