Skip to content

Commit

Permalink
Merge pull request #330762 from pyrox0/denose/envs
Browse files Browse the repository at this point in the history
python312Packages.envs: Drop nose dependency; modernize
  • Loading branch information
emilazy authored Aug 9, 2024
2 parents b6f3032 + 5dc703c commit 64c6a82
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions pkgs/development/python-modules/envs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
click,
fetchPypi,
jinja2,
mock,
nose,
pytestCheckHook,
poetry-core,
pythonOlder,
terminaltables,
}:

Expand All @@ -16,44 +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
];

# test rely on nose
doCheck = pythonOlder "3.12";

nativeCheckInputs = [
mock
nose
];

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 ];
};
}

0 comments on commit 64c6a82

Please sign in to comment.