From cbc562a6aecb89cd69d431d38a7a2735546f73f5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Oct 2021 12:27:45 +0200 Subject: [PATCH 1/2] python3Packages.environs: init at 9.3.4 --- .../python-modules/environs/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/environs/default.nix 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 { }; From 1e838a5e5bcf655356e0d02105edaf347f28de89 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Oct 2021 12:30:14 +0200 Subject: [PATCH 2/2] python3Packages.deezer-python: 3.1.0 -> 3.2.0 --- .../python-modules/deezer-python/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/deezer-python/default.nix b/pkgs/development/python-modules/deezer-python/default.nix index 2ff5127aef2c..79460324e4da 100644 --- a/pkgs/development/python-modules/deezer-python/default.nix +++ b/pkgs/development/python-modules/deezer-python/default.nix @@ -1,5 +1,6 @@ { lib , buildPythonPackage +, environs , fetchFromGitHub , poetry-core , pytest-mock @@ -12,7 +13,7 @@ buildPythonPackage rec { pname = "deezer-python"; - version = "3.1.0"; + version = "3.2.0"; format = "pyproject"; disabled = pythonOlder "3.6"; @@ -21,7 +22,7 @@ buildPythonPackage rec { owner = "browniebroke"; repo = pname; rev = "v${version}"; - sha256 = "1ln9hlix6rbyajgvwd2lk0i7nshvrbkvj9xx1i0q1z1caly9yl0g"; + sha256 = "sha256-NwG/VbTHoQl3c//vrrhKQ//gyVIGLY2148mgDToiKks="; }; nativeBuildInputs = [ @@ -29,9 +30,10 @@ buildPythonPackage rec { ]; checkInputs = [ - pytestCheckHook - pytest-vcr + environs pytest-mock + pytest-vcr + pytestCheckHook ]; propagatedBuildInputs = [ @@ -47,7 +49,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "deezer" ]; meta = with lib; { - description = "A friendly Python wrapper around the Deezer API"; + description = "Python wrapper around the Deezer API"; homepage = "https://github.com/browniebroke/deezer-python"; license = licenses.mit; maintainers = with maintainers; [ synthetica ];