blob: 536d851a4099ff5e48f6ae5ac6003f5ab4f6f423 (
plain) (
blame)
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
, fetchFromGitHub
# build-system
, poetry-core
# propagates
, django
, scim2-filter-parser
# tests
, mock
, pytest-django
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "django-scim2";
version = "0.19.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "15five";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-larDh4f9/xVr11/n/WfkJ2Tx45DMQqyK3ZzkWAvzeig=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
django
scim2-filter-parser
];
pythonImportsCheck = [
"django_scim"
];
nativeCheckInputs = [
mock
pytest-django
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/15five/django-scim2/blob/${src.rev}/CHANGES.txt";
description = "A SCIM 2.0 Service Provider Implementation (for Django)";
homepage = "https://github.com/15five/django-scim2";
license = licenses.mit;
maintainers = with maintainers; [ s1341 ];
};
}
|