depot/third_party/nixpkgs/pkgs/development/python-modules/sure/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

48 lines
898 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 = [ ];
};
}