e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
50 lines
894 B
Nix
50 lines
894 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
|
|
];
|
|
|
|
doCheck = pythonOlder "3.12"; # nose requires imp module
|
|
|
|
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; [ ];
|
|
};
|
|
}
|