1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "python-decouple";
12 version = "3.8";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "HBNetwork";
19 repo = "python-decouple";
20 tag = "v${version}";
21 hash = "sha256-F9Gu7Y/dJhwOJi/ZaoVclF3+4U/N5JdvpXwgGB3SF3Q=";
22 };
23
24 nativeCheckInputs = [
25 mock
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "decouple" ];
30
31 meta = with lib; {
32 description = "Module to handle code and condifuration";
33 homepage = "https://github.com/HBNetwork/python-decouple";
34 changelog = "https://github.com/HBNetwork/python-decouple/blob/v${version}/CHANGELOG.md";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}