depot/third_party/nixpkgs/pkgs/development/python-modules/sure/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

48 lines
916 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
nose,
mock,
six,
isPyPy,
pythonOlder,
}:
buildPythonPackage rec {
pname = "sure";
version = "2.0.1";
format = "setuptools";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
hash = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "rednose = 1" ""
'';
propagatedBuildInputs = [
mock
six
];
doCheck = pythonOlder "3.12"; # nose requires imp module
nativeCheckInputs = [ nose ];
pythonImportsCheck = [ "sure" ];
meta = with lib; {
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; [ ];
};
}