diff --git a/pkgs/development/python-modules/environs/default.nix b/pkgs/development/python-modules/environs/default.nix new file mode 100644 index 000000000000..bc63d577a7ef --- /dev/null +++ b/pkgs/development/python-modules/environs/default.nix @@ -0,0 +1,49 @@ +{ lib +, buildPythonPackage +, dj-database-url +, dj-email-url +, django-cache-url +, fetchFromGitHub +, marshmallow +, pytestCheckHook +, python-dotenv +, pythonOlder +}: + +buildPythonPackage rec { + pname = "environs"; + version = "9.3.4"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "sloria"; + repo = pname; + rev = version; + sha256 = "0n0l9jici2d1pck5pf1c96jj3lhw91jki9nsgxzpikvpyvsw7wga"; + }; + + propagatedBuildInputs = [ + marshmallow + python-dotenv + ]; + + checkInputs = [ + dj-database-url + dj-email-url + django-cache-url + pytestCheckHook + ]; + + pythonImportsCheck = [ + "environs" + ]; + + meta = with lib; { + description = "Python modle for environment variable parsing"; + homepage = "https://github.com/sloria/environs"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ccf8056dbdbe..c9911c9f4fbc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2418,6 +2418,8 @@ in { environmental-override = callPackage ../development/python-modules/environmental-override { }; + environs = callPackage ../development/python-modules/environs { }; + envisage = callPackage ../development/python-modules/envisage { }; envs = callPackage ../development/python-modules/envs { };