From a032d2f2441105894c64af5c857e92a56536e369 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 3 May 2022 11:14:37 +0200 Subject: [PATCH] python310Packages.envs: 1.3 -> 1.4 --- .../python-modules/envs/default.nix | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/envs/default.nix b/pkgs/development/python-modules/envs/default.nix index 25e6d235cff3..3f095459642a 100644 --- a/pkgs/development/python-modules/envs/default.nix +++ b/pkgs/development/python-modules/envs/default.nix @@ -1,29 +1,29 @@ { lib , buildPythonPackage -, fetchPypi -, fetchpatch , click +, fetchPypi , jinja2 -, terminaltables , mock , nose +, poetry-core +, pythonOlder +, terminaltables }: buildPythonPackage rec { pname = "envs"; - version = "1.3"; + version = "1.4"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "ccf5cd85ddb8ed335e39ed8a22e0d23658f5a6d7da430f225e6f750c6f50ae42"; + hash = "sha256-nYQ1xphdHN1oKZ4ExY4r24rmz2ayWWqAeeb5qT8qA5g="; }; - patches = [ - # https://github.com/capless/envs/pull/19 - (fetchpatch { - url = "https://github.com/capless/envs/commit/6947043fa9120a7b17094fd43ee0e1edf808f42b.patch"; - sha256 = "0zswg8kp2g922mkc7x34ps37qli1d1mjwna2jfrbnsq2fg4mk818"; - }) + nativeBuildInputs = [ + poetry-core ]; propagatedBuildInputs = [ @@ -45,6 +45,10 @@ buildPythonPackage rec { runHook postCheck ''; + pythonImportsCheck = [ + "envs" + ]; + meta = with lib; { description = "Easy access to environment variables from Python"; homepage = "https://github.com/capless/envs";