depot/third_party/nixpkgs/pkgs/development/python-modules/sure/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

48 lines
834 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;
sha256 = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "rednose = 1" ""
'';
propagatedBuildInputs = [
mock
six
];
nativeCheckInputs = [
nose
];
pythonImportsCheck = [
"sure"
];
meta = with lib; {
description = "Utility belt for automated testing";
homepage = "https://sure.readthedocs.io/";
changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
};
}