1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 poetry-core,
6 django,
7 pytestCheckHook,
8 pytest-cov-stub,
9}:
10
11buildPythonPackage rec {
12 pname = "django-split-settings";
13 version = "1.3.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "wemake-services";
18 repo = "django-split-settings";
19 rev = version;
20 hash = "sha256-Bk2/DU+K524mCUvteWT0fIQH5ZgeMHiufMTF+dJYVtc=";
21 };
22
23 postPatch = ''
24 substituteInPlace pyproject.toml \
25 --replace-fail "poetry.masonry" "poetry.core.masonry"
26 '';
27
28 build-system = [ poetry-core ];
29
30 dependencies = [ django ];
31
32 pythonImportsCheck = [ "split_settings" ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 pytest-cov-stub
37 ];
38
39 meta = {
40 description = "Organize Django settings into multiple files and directories";
41 homepage = "https://github.com/wemake-services/django-split-settings";
42 maintainers = with lib.maintainers; [ sikmir ];
43 license = lib.licenses.bsd3;
44 };
45}