diff options
Diffstat (limited to 'pkgs/development/python-modules/sure/default.nix')
-rw-r--r-- | pkgs/development/python-modules/sure/default.nix | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/sure/default.nix b/pkgs/development/python-modules/sure/default.nix index 493f761c85119..f4ca02501d00e 100644 --- a/pkgs/development/python-modules/sure/default.nix +++ b/pkgs/development/python-modules/sure/default.nix @@ -2,47 +2,55 @@ lib, buildPythonPackage, fetchPypi, - nose, + setuptools, + pytestCheckHook, mock, six, isPyPy, - pythonOlder, }: buildPythonPackage rec { pname = "sure"; version = "2.0.1"; - format = "setuptools"; + pyproject = true; disabled = isPyPy; src = fetchPypi { inherit pname version; - sha256 = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco="; + hash = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco="; }; postPatch = '' substituteInPlace setup.cfg \ - --replace "rednose = 1" "" + --replace "rednose = 1" "" \ + --replace-fail "--cov=sure" "" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ mock six ]; - doCheck = pythonOlder "3.12"; # nose requires imp module + nativeCheckInputs = [ + pytestCheckHook + mock + ]; - nativeCheckInputs = [ nose ]; + disabledTestPaths = [ + "tests/test_old_api.py" # require nose + ]; pythonImportsCheck = [ "sure" ]; - meta = with lib; { + meta = { description = "Utility belt for automated testing"; mainProgram = "sure"; homepage = "https://sure.readthedocs.io/"; changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ ]; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ sigmanificient ]; }; } |