1{ lib
2, buildPythonPackage
3, dj-database-url
4, dj-email-url
5, django-cache-url
6, fetchFromGitHub
7, marshmallow
8, pytestCheckHook
9, python-dotenv
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "environs";
15 version = "9.5.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "sloria";
22 repo = pname;
23 rev = version;
24 hash = "sha256-hucApIn7ul7+MC2W811VTxZNO8Pqb6HDXz9VRcEdmIc=";
25 };
26
27 propagatedBuildInputs = [
28 marshmallow
29 python-dotenv
30 ];
31
32 nativeCheckInputs = [
33 dj-database-url
34 dj-email-url
35 django-cache-url
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "environs"
41 ];
42
43 meta = with lib; {
44 description = "Python modle for environment variable parsing";
45 homepage = "https://github.com/sloria/environs";
46 license = licenses.mit;
47 maintainers = with maintainers; [ fab ];
48 };
49}