diff options
Diffstat (limited to 'pkgs/development/python-modules/envs/default.nix')
-rw-r--r-- | pkgs/development/python-modules/envs/default.nix | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/envs/default.nix b/pkgs/development/python-modules/envs/default.nix index 3d113a4f2dfde..10fc95fbb13b4 100644 --- a/pkgs/development/python-modules/envs/default.nix +++ b/pkgs/development/python-modules/envs/default.nix @@ -4,10 +4,8 @@ click, fetchPypi, jinja2, - mock, - pynose, + pytestCheckHook, poetry-core, - pythonOlder, terminaltables, }: @@ -16,41 +14,32 @@ buildPythonPackage rec { version = "1.4"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchPypi { inherit pname version; hash = "sha256-nYQ1xphdHN1oKZ4ExY4r24rmz2ayWWqAeeb5qT8qA5g="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ click jinja2 terminaltables ]; - nativeCheckInputs = [ - mock - pynose - ]; - - checkPhase = '' - runHook preCheck + nativeCheckInputs = [ pytestCheckHook ]; - nosetests --with-isolation + pytestFlagsArray = [ "envs/tests.py" ]; - runHook postCheck - ''; + disabledTests = [ "test_list_envs" ]; pythonImportsCheck = [ "envs" ]; - meta = with lib; { + meta = { description = "Easy access to environment variables from Python"; mainProgram = "envs"; homepage = "https://github.com/capless/envs"; - license = licenses.asl20; - maintainers = with maintainers; [ peterhoeg ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ peterhoeg ]; }; } |