blob: 54c9966c09fb43fb24da0b1d8fd48060778ce8f2 (
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
62
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
poetry-core,
django,
sly,
mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "scim2-filter-parser";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "15five";
repo = "scim2-filter-parser";
tag = version;
hash = "sha256-KmtOtI/5HT0lVwvXQFTlEwMeptoa4cA5hTSgSULxhIc=";
};
patches = [
# https://github.com/15five/scim2-filter-parser/pull/43
(fetchpatch {
name = "replace-poetry-with-poetry-core.patch";
url = "https://github.com/15five/scim2-filter-parser/commit/675d85f3a3ff338e96a408827d64d9e893fa5255.patch";
hash = "sha256-PjJH1S5CDe/BMI0+mB34KdpNNcHfexBFYBmHolsWH4o=";
})
];
build-system = [ poetry-core ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
dependencies = [ sly ];
optional-dependencies = {
django-query = [ django ];
};
pythonImportsCheck = [ "scim2_filter_parser" ];
nativeCheckInputs = [
mock
pytestCheckHook
]
++ optional-dependencies.django-query;
meta = {
description = "Customizable parser/transpiler for SCIM2.0 filters";
homepage = "https://github.com/15five/scim2-filter-parser";
changelog = "https://github.com/15five/scim2-filter-parser/blob/${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ s1341 ];
};
}
|